[Gvsig_desarrolladores] Dependencia no resuelta en el repositorio de Maven.

Francisco José Peñarrubia fpenarru en gmail.com
Mie Nov 11 22:33:56 CET 2009


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

Lo que he intentado compilar ha sido gvsig-standard. He modificado un 
poquito algunas tareas de ant porque en Vista no se activa el Profile 
correcto (no sé todavía porqué, sorry :-( ). La  modificación que he 
hecho (por si a alguno le pasa lo mismo) ha sido cambiar:

- En ant-tasks.xml , el fichero eclipse-tasks.xml =>    
<target name="eclipse.eclipse">
        <maven arg="-Dnative-classifier=win-nt-vs8-i386-dynamic 
eclipse:eclipse" />
    </target>

- En maven-goals.xml:
    <target name="mvn-install-without-tests"
        description="Compiles and installs without launching tests">
        <maven arg="-Dnative-classifier=win-nt-vs8-i386-dynamic 
-Dmaven.test.skip=true install " />
    </target>

Es decir, he fijado a mano la variable "native-classifier". Supongo que 
puedo compilar a mano eventtheme.jar, y subirlo a mi repositorio local, 
pero lo dejo aquí por si encontrais tiempo para subirlo.

Saludos, y bona nit!

Fran.



More information about the gvSIG_desarrolladores mailing list