[Gvsig_desarrolladores] Dependencia no resuelta en el repositorio de Maven.
Francisco José Peñarrubia
fpenarru en gmail.com
Jue Nov 12 09:52:57 CET 2009
Ok, perfecto. Me lo apunto para la siguiente.
Gracias Cèsar.
Fran.
Cèsar Ordiñana escribió:
> Hola Fran,
>
> Francisco José Peñarrubia escribió:
>> Hola.
>>
>> He intentado compilar la 2.0 con el nuevo repositorio, y creo que falta
>> una dependencia. Os copio y pego el mensaje de error:
>>
>> [INFO] Unable to find resource
>> 'org.gvsig:org.gvsig.app.daltransform:jar:tests:2.0-SNAPSHOT' in
>> repository osgeo (http://download.osgeo.org/webdav/geotools)
>> [artifact:mvn] [INFO]
>> ------------------------------------------------------------------------
>> [artifact:mvn] [ERROR] BUILD ERROR
>> [artifact:mvn] [INFO]
>> ------------------------------------------------------------------------
>> [artifact:mvn] [INFO] Failed to resolve artifact.
>> [artifact:mvn] Missing:
>> [artifact:mvn] ----------
>> [artifact:mvn] 1)
>> org.gvsig:org.gvsig.app.daltransform:jar:tests:2.0-SNAPSHOT
>> [artifact:mvn] Try downloading the file manually from the project website.
>> [artifact:mvn] Then, install it using the command:
>> [artifact:mvn] mvn install:install-file -DgroupId=org.gvsig
>> -DartifactId=org.gvsig.app.daltransform -Dversion=2.0-SNAPSHOT
>> -Dclassifier=tests -Dpackaging=jar -Dfile=/path/to/file
>> [artifact:mvn] Alternatively, if you host your own repository you can
>> deploy the file there:
>> [artifact:mvn] mvn deploy:deploy-file -DgroupId=org.gvsig
>> -DartifactId=org.gvsig.app.daltransform -Dversion=2.0-SNAPSHOT
>> -Dclassifier=tests -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
>> -DrepositoryId=[id]
>> [artifact:mvn] Path to dependency:
>> [artifact:mvn] 1) org.gvsig:org.gvsig.app.eventtheme:jar:2.0-SNAPSHOT
>> [artifact:mvn] 2)
>> org.gvsig:org.gvsig.app.daltransform:jar:tests:2.0-SNAPSHOT
>> [artifact:mvn] ----------
>> [artifact:mvn] 1 required artifact is missing.
>> [artifact:mvn] for artifact:
>> [artifact:mvn] org.gvsig:org.gvsig.app.eventtheme:jar:2.0-SNAPSHOT
>> [artifact:mvn] from the specified remote repositories:
>> [artifact:mvn] central (http://repo1.maven.org/maven2),
>> [artifact:mvn] osgeo (http://download.osgeo.org/webdav/geotools),
>> [artifact:mvn] gvsig-public-http-repository
>> (http://gvsig-desktop.forge.osor.eu/downloads/pub/projects/gvSIG-desktop/maven-repository)
>> [artifact:mvn] [INFO]
>> ------------------------------------------------------------------------
>> [artifact:mvn] [INFO] For more information, run Maven with the -e switch
>> [artifact:mvn] [INFO]
>> ------------------------------------------------------------------------
>> [artifact:mvn] [INFO] Total time: 17 minutes 39 seconds
>> [artifact:mvn] [INFO] Finished at: Wed Nov 11 22:18:59 CET 2009
>> [artifact:mvn] [INFO] Final Memory: 31M/56M
>> [artifact:mvn] [INFO]
>> ------------------------------------------------------------------------
>>
>> BUILD FAILED
>>
>
> Vale, eso es porque hay proyectos de cuyas clases de tests heredan
> otros proyectos, por lo que habría que lanzar, al menos una vez, el
> install sin desactivar los tests, para que maven compile las clases de
> tests y genere los jars correspondientes.
>
> Sin embargo, como estamos haciendo algunos cambios que han invalidado
> algunos tests, maven terminará en el momento que en algún proyecto no
> pasen los tests. Para evitar esto, hay una opción que permite que
> maven compile y lance los tests, pero que continúe aunque estos
> fallen. En la configuración de ant es el task:
>
> mvn-install-ignore-tests
>
> (Ojo, no confundir con el mvn-install-without-tests, que ni los lanza
> ni los compila)
>
> Desde consola, usaremos la siguiente orden:
>
> mvn -Dmaven.test.failure.ignore install
>
> En cualquier caso, revisaré los tests a ver si los dejamos funcionando
> de nuevo.
>
> Saludos,
>
> --
> Cèsar Ordiñana Navarro
> Arquitecto Software gvSIG
> DiSiD Technologies SL http://www.disid.com
> ------------------------------------------------------------------------
>
> _______________________________________________
> gvSIG_desarrolladores mailing list
> gvSIG_desarrolladores en listserv.gva.es
> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_desarrolladores
>
More information about the gvSIG_desarrolladores
mailing list