<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hola Fran,<br>
<br>
Francisco José Peñarrubia escribió:
<blockquote cite="mid:4AFB2DC4.2020001@gmail.com" type="cite">
<pre wrap="">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 (<a class="moz-txt-link-freetext" href="http://download.osgeo.org/webdav/geotools">http://download.osgeo.org/webdav/geotools</a>)
[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 (<a class="moz-txt-link-freetext" href="http://repo1.maven.org/maven2">http://repo1.maven.org/maven2</a>),
[artifact:mvn] osgeo (<a class="moz-txt-link-freetext" href="http://download.osgeo.org/webdav/geotools">http://download.osgeo.org/webdav/geotools</a>),
[artifact:mvn] gvsig-public-http-repository
(<a class="moz-txt-link-freetext" href="http://gvsig-desktop.forge.osor.eu/downloads/pub/projects/gvSIG-desktop/maven-repository">http://gvsig-desktop.forge.osor.eu/downloads/pub/projects/gvSIG-desktop/maven-repository</a>)
[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
</pre>
</blockquote>
<br>
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. <br>
<br>
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:<br>
<br>
mvn-install-ignore-tests<br>
<br>
(Ojo, no confundir con el mvn-install-without-tests, que ni los lanza
ni los compila)<br>
<br>
Desde consola, usaremos la siguiente orden:<br>
<br>
mvn -Dmaven.test.failure.ignore install<br>
<br>
En cualquier caso, revisaré los tests a ver si los dejamos funcionando
de nuevo.<br>
<br>
Saludos,<br>
<p style="margin: 0px; text-indent: 0px;"><!--EndFragment--></p>
<pre class="moz-signature" cols="72">--
Cèsar Ordiñana Navarro
Arquitecto Software gvSIG
DiSiD Technologies SL <a class="moz-txt-link-freetext" href="http://www.disid.com">http://www.disid.com</a></pre>
</body>
</html>