gvSIG2.0 - Error al ejecutar "create extension"

5 messages Options
Embed this post
Permalink
Gustavo-2

gvSIG2.0 - Error al ejecutar "create extension"

Reply Threaded More More options
Print post
Permalink
Hola.
Me proponía probar la creación de una extensión.
Fui por las "external tools" de eclipse y ejecuté el "create extension".
Pero me da BUILD FAILED.
Por lo que veo es porque intenta descargar un jar que no existe. Fui a la url y en efecto me encontré con que no existe ese jar.
Pero no se que hacer, cómo seguir para poder crear una extensión.
 
Agradezco si me pueden ayudar.
Un saludo,
Gustavo.
 
Pego abajo la salida con el error:
 

Buildfile:

G:\facultad\proyecto\eclipse-workspaces\wk-gvsig2.0(ganymede)\build\ant-tasks\maven-archetypes.xml

mvn-create-extension.getparams

:

mvn-create-extension

:

[echo]

[

echo] groupId: org.gvsig

[

echo] artifactId: org.gvsig.extSigneo2

[

echo] version: 2.0-SNAPSHOT

[echo]

[

echo] mvn archetype:generate -B -DarchetypeGroupId=org.gvsig -DarchetypeArtifactId=org.gvsig.maven-archetype.extension -DgroupId=org.gvsig -DartifactId=org.gvsig.extSigneo2 -Dversion=2.0-SNAPSHOT -Dpackage=org.gvsig.extSigneo2

[

artifact:mvn] [INFO] Scanning for projects...

[

artifact:mvn] [INFO] Searching repository for plugin with prefix: 'archetype'.

[

artifact:mvn] [INFO] ------------------------------------------------------------------------

[

artifact:mvn] [INFO] Building Maven Default Project

[

artifact:mvn] [INFO] task-segment: [archetype:generate] (aggregator-style)

[

artifact:mvn] [INFO] ------------------------------------------------------------------------

[

artifact:mvn] [INFO] Preparing archetype:generate

[

artifact:mvn] [INFO] No goals needed for project - skipping

[

artifact:mvn] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.

[

artifact:mvn] [INFO] Setting property: velocimacro.messages.on => 'false'.

[

artifact:mvn] [INFO] Setting property: resource.loader => 'classpath'.

[

artifact:mvn] [INFO] Setting property: resource.manager.logwhenfound => 'false'.

[

artifact:mvn] [INFO] [archetype:generate]

[

artifact:mvn] [INFO] Generating project in Batch mode

[

artifact:mvn] [WARNING] Specified archetype not found.

[

artifact:mvn] Downloading: http://repo1.maven.org/maven2/org/gvsig/org.gvsig.maven-archetype.extension/1.0/org.gvsig.maven-archetype.extension-1.0.jar

[

artifact:mvn] [INFO] ------------------------------------------------------------------------

[

artifact:mvn] [ERROR] BUILD FAILURE

[

artifact:mvn] [INFO] ------------------------------------------------------------------------

[

artifact:mvn] [INFO] The desired archetype does not exist (org.gvsig:org.gvsig.maven-archetype.extension:1.0)

[

artifact:mvn] [INFO] ------------------------------------------------------------------------

[

artifact:mvn] [INFO] For more information, run Maven with the -e switch

[

artifact:mvn] [INFO] ------------------------------------------------------------------------

[

artifact:mvn] [INFO] Total time: 4 seconds

[

artifact:mvn] [INFO] Finished at: Fri Sep 11 20:42:02 ACT 2009

[

artifact:mvn] [INFO] Final Memory: 8M/14M

[

artifact:mvn] [INFO] ------------------------------------------------------------------------

BUILD FAILED

G:\facultad\proyecto\eclipse-workspaces\wk-gvsig2.0(ganymede)\build\ant-tasks\maven-archetypes.xml:64: The following error occurred while executing this line:

G:\facultad\proyecto\eclipse-workspaces\wk-gvsig2.0(ganymede)\build\ant-tasks\ant-tasks-config.xml:71: Java returned: 1

Total time: 15 seconds


_______________________________________________
gvSIG_desarrolladores mailing list
[hidden email]
http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_desarrolladores
Jorge Piera

Re: gvSIG2.0 - Error al ejecutar "create extension"

Reply Threaded More More options
Print post
Permalink
Hola Gustavo.

El error es debido a que no hemos hecho un "deploy" de la librería para
crear una extensión. Descarga el proyecto [1], haz un "mvn install" del
proyecto y vuelve a ejecutar el "create extension".

Un saludo,
Jorge

[1]
https://gvsig.org/svn/gvSIG/branches/v2_0_0_prep/templates/maven-archetype-extension

Gustavo wrote:

> Hola.
> Me proponía probar la creación de una extensión.
> Fui por las "external tools" de eclipse y ejecuté el "create extension".
> Pero me da BUILD FAILED.
> Por lo que veo es porque intenta descargar un jar que no existe. Fui a
> la url y en efecto me encontré con que no existe ese jar.
> Pero no se que hacer, cómo seguir para poder crear una extensión.
>  
> Agradezco si me pueden ayudar.
> Un saludo,
> Gustavo.
>  
> Pego abajo la salida con el error:
>  
>
> Buildfile:
>
> _G:\facultad\proyecto\eclipse-workspaces\wk-gvsig2.0(ganymede)\build\ant-tasks\maven-archetypes.xml
>
>
> mvn-create-extension.getparams
>
> _:_
>
> mvn-create-extension
>
> _:
>
> [echo]
>
> [
>
> _echo_] groupId: org.gvsig
>
> [
>
> _echo_] artifactId: org.gvsig.extSigneo2
>
> [
>
> _echo_] version: 2.0-SNAPSHOT
>
> [echo]
>
> [
>
> _echo_] mvn archetype:generate -B -DarchetypeGroupId=org.gvsig
> -DarchetypeArtifactId=org.gvsig.maven-archetype.extension
> -DgroupId=org.gvsig -DartifactId=org.gvsig.extSigneo2
> -Dversion=2.0-SNAPSHOT -Dpackage=org.gvsig.extSigneo2
>
> [
>
> _artifact:mvn_] [INFO] Scanning for projects...
>
> [
>
> _artifact:mvn_] [INFO] Searching repository for plugin with prefix:
> 'archetype'.
>
> [
>
> _artifact:mvn_] [INFO]
> ------------------------------------------------------------------------
>
> [
>
> _artifact:mvn_] [INFO] Building Maven Default Project
>
> [
>
> _artifact:mvn_] [INFO] task-segment: [archetype:generate]
> (aggregator-style)
>
> [
>
> _artifact:mvn_] [INFO]
> ------------------------------------------------------------------------
>
> [
>
> _artifact:mvn_] [INFO] Preparing archetype:generate
>
> [
>
> _artifact:mvn_] [INFO] No goals needed for project - skipping
>
> [
>
> _artifact:mvn_] [INFO] Setting property:
> classpath.resource.loader.class =>
> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
>
> [
>
> _artifact:mvn_] [INFO] Setting property: velocimacro.messages.on =>
> 'false'.
>
> [
>
> _artifact:mvn_] [INFO] Setting property: resource.loader => 'classpath'.
>
> [
>
> _artifact:mvn_] [INFO] Setting property: resource.manager.logwhenfound
> => 'false'.
>
> [
>
> _artifact:mvn_] [INFO] [archetype:generate]
>
> [
>
> _artifact:mvn_] [INFO] Generating project in Batch mode
>
> [
>
> _artifact:mvn_] [WARNING] Specified archetype not found.
>
> [
>
> _artifact:mvn_] Downloading:
> http://repo1.maven.org/maven2/org/gvsig/org.gvsig.maven-archetype.extension/1.0/org.gvsig.maven-archetype.extension-1.0.jar 
>
>
> [
>
> _artifact:mvn_] [INFO]
> ------------------------------------------------------------------------
>
> [
>
> _artifact:mvn_] [ERROR] BUILD FAILURE
>
> [
>
> _artifact:mvn_] [INFO]
> ------------------------------------------------------------------------
>
> [
>
> _artifact:mvn_] [INFO] The desired archetype does not exist
> (org.gvsig:org.gvsig.maven-archetype.extension:1.0)
>
> [
>
> _artifact:mvn_] [INFO]
> ------------------------------------------------------------------------
>
> [
>
> _artifact:mvn_] [INFO] For more information, run Maven with the -e switch
>
> [
>
> _artifact:mvn_] [INFO]
> ------------------------------------------------------------------------
>
> [
>
> _artifact:mvn_] [INFO] Total time: 4 seconds
>
> [
>
> _artifact:mvn_] [INFO] Finished at: Fri Sep 11 20:42:02 ACT 2009
>
> [
>
> _artifact:mvn_] [INFO] Final Memory: 8M/14M
>
> [
>
> _artifact:mvn_] [INFO]
> ------------------------------------------------------------------------
>
> BUILD FAILED
>
> _
>
> G:\facultad\proyecto\eclipse-workspaces\wk-gvsig2.0(ganymede)\build\ant-tasks\maven-archetypes.xml:64:
> The following error occurred while executing this line:
>
> G:\facultad\proyecto\eclipse-workspaces\wk-gvsig2.0(ganymede)\build\ant-tasks\ant-tasks-config.xml:71:
> Java returned: 1
>
> _
>
> Total time: 15 seconds
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> gvSIG_desarrolladores mailing list
> [hidden email]
> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_desarrolladores
>  


--
Jorge Piera Llodrá
Especialista en Servicios OGC
Equipo de desarrollo gvSIG
IVER TI S.A.
C/ Lérida, 20
46009-Valencia (Spain)
Tlf.+34902252540
www.iver.es
www.gvsig.com  

_______________________________________________
gvSIG_desarrolladores mailing list
[hidden email]
http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_desarrolladores
Gustavo-2

Re: gvSIG2.0 - Error al ejecutar "create extension"

Reply Threaded More More options
Print post
Permalink
Hola.
Hice un checkout del proyecto que me indicaste, y luego hice un mvn-install-without-tests (ya que el mvn-install no me funciona porque me falla algún test).
Sin embargo siguo sin poder crear una extensión, me da el mismo error de antes.
 
La verdad que estoy perdido, agradezco cualquier ayuda.
 
Saludos.

El 14 de septiembre de 2009 04:41, Jorge Piera <[hidden email]> escribió:
Hola Gustavo.

El error es debido a que no hemos hecho un "deploy" de la librería para
crear una extensión. Descarga el proyecto [1], haz un "mvn install" del
proyecto y vuelve a ejecutar el "create extension".

Un saludo,
Jorge

[1]
https://gvsig.org/svn/gvSIG/branches/v2_0_0_prep/templates/maven-archetype-extension

Gustavo wrote:
> Hola.
> Me proponía probar la creación de una extensión.
> Fui por las "external tools" de eclipse y ejecuté el "create extension".
> Pero me da BUILD FAILED.
> Por lo que veo es porque intenta descargar un jar que no existe. Fui a
> la url y en efecto me encontré con que no existe ese jar.
> Pero no se que hacer, cómo seguir para poder crear una extensión.
>
> Agradezco si me pueden ayudar.
> Un saludo,
> Gustavo.
>
> Pego abajo la salida con el error:
>
>
> Buildfile:
>
> _G:\facultad\proyecto\eclipse-workspaces\wk-gvsig2.0(ganymede)\build\ant-tasks\maven-archetypes.xml
>

>
> mvn-create-extension.getparams
>
> _:_
>
> mvn-create-extension
>
> _:
>
> [echo]
>
> [
>
> _echo_] groupId: org.gvsig
>
> [

>
> _echo_] artifactId: org.gvsig.extSigneo2
>
> [
>
> _echo_] version: 2.0-SNAPSHOT
>
> [echo]
>
> [
>
> _echo_] mvn archetype:generate -B -DarchetypeGroupId=org.gvsig
> -DarchetypeArtifactId=org.gvsig.maven-archetype.extension
> -DgroupId=org.gvsig -DartifactId=org.gvsig.extSigneo2
> -Dversion=2.0-SNAPSHOT -Dpackage=org.gvsig.extSigneo2
>
> [
>
> _artifact:mvn_] [INFO] Scanning for projects...
>
> [
>
> _artifact:mvn_] [INFO] Searching repository for plugin with prefix:
> 'archetype'.
>
> [
>
> _artifact:mvn_] [INFO]
> ------------------------------------------------------------------------
>

> [
>
> _artifact:mvn_] [INFO] Building Maven Default Project
>
> [
>
> _artifact:mvn_] [INFO] task-segment: [archetype:generate]
> (aggregator-style)
>
> [
>
> _artifact:mvn_] [INFO]
> ------------------------------------------------------------------------
>
> [
>
> _artifact:mvn_] [INFO] Preparing archetype:generate
>
> [
>
> _artifact:mvn_] [INFO] No goals needed for project - skipping
>
> [
>
> _artifact:mvn_] [INFO] Setting property:
> classpath.resource.loader.class =>
> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
>
> [
>
> _artifact:mvn_] [INFO] Setting property: velocimacro.messages.on =>
> 'false'.
>
> [
>
> _artifact:mvn_] [INFO] Setting property: resource.loader => 'classpath'.
>
> [
>
> _artifact:mvn_] [INFO] Setting property: resource.manager.logwhenfound
> => 'false'.
>
> [
>
> _artifact:mvn_] [INFO] [archetype:generate]
>
> [

>
> _artifact:mvn_] [INFO] Generating project in Batch mode
>
> [
>
> _artifact:mvn_] [WARNING] Specified archetype not found.
>
> [
>
> _artifact:mvn_] Downloading:
> http://repo1.maven.org/maven2/org/gvsig/org.gvsig.maven-archetype.extension/1.0/org.gvsig.maven-archetype.extension-1.0.jar
>

>
> [
>
> _artifact:mvn_] [INFO]
> ------------------------------------------------------------------------
>
> [
>
> _artifact:mvn_] [ERROR] BUILD FAILURE
>
> [
>
> _artifact:mvn_] [INFO]
> ------------------------------------------------------------------------
>
> [
>
> _artifact:mvn_] [INFO] The desired archetype does not exist
> (org.gvsig:org.gvsig.maven-archetype.extension:1.0)
>
> [
>
> _artifact:mvn_] [INFO]
> ------------------------------------------------------------------------
>
> [
>
> _artifact:mvn_] [INFO] For more information, run Maven with the -e switch
>
> [
>
> _artifact:mvn_] [INFO]
> ------------------------------------------------------------------------
>
> [

>
> _artifact:mvn_] [INFO] Total time: 4 seconds
>
> [
>
> _artifact:mvn_] [INFO] Finished at: Fri Sep 11 20:42:02 ACT 2009
>
> [
>
> _artifact:mvn_] [INFO] Final Memory: 8M/14M
>

> [
>
> _artifact:mvn_] [INFO]
> ------------------------------------------------------------------------
>
> BUILD FAILED
>
> _
>
> G:\facultad\proyecto\eclipse-workspaces\wk-gvsig2.0(ganymede)\build\ant-tasks\maven-archetypes.xml:64:
> The following error occurred while executing this line:
>
> G:\facultad\proyecto\eclipse-workspaces\wk-gvsig2.0(ganymede)\build\ant-tasks\ant-tasks-config.xml:71:
> Java returned: 1
>
> _
>
> Total time: 15 seconds
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> gvSIG_desarrolladores mailing list
> [hidden email]
> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_desarrolladores
>


--
Jorge Piera Llodrá
Especialista en Servicios OGC
Equipo de desarrollo gvSIG
IVER TI S.A.
C/ Lérida, 20
46009-Valencia (Spain)
Tlf.+34902252540
www.iver.es
www.gvsig.com

_______________________________________________
gvSIG_desarrolladores mailing list
[hidden email]
http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_desarrolladores


_______________________________________________
gvSIG_desarrolladores mailing list
[hidden email]
http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_desarrolladores
Gustavo-2

Re: gvSIG2.0 - Error al ejecutar "create extension"

Reply Threaded More More options
Print post
Permalink
Solucionado.
 
Hice un mvn clean install desde linea de comandos (estando dentro del directorio de maven-archetype-extension), luego un mvn-install-without-tests. Ahora sí me funciona la creación de extensiones.
 
Saludos y gracias.


 
El 26 de septiembre de 2009 22:41, Gustavo <[hidden email]> escribió:
Hola.
Hice un checkout del proyecto que me indicaste, y luego hice un mvn-install-without-tests (ya que el mvn-install no me funciona porque me falla algún test).
Sin embargo siguo sin poder crear una extensión, me da el mismo error de antes.
 
La verdad que estoy perdido, agradezco cualquier ayuda.
 
Saludos.

El 14 de septiembre de 2009 04:41, Jorge Piera <[hidden email]> escribió:

Hola Gustavo.

El error es debido a que no hemos hecho un "deploy" de la librería para
crear una extensión. Descarga el proyecto [1], haz un "mvn install" del
proyecto y vuelve a ejecutar el "create extension".

Un saludo,
Jorge

[1]
https://gvsig.org/svn/gvSIG/branches/v2_0_0_prep/templates/maven-archetype-extension

Gustavo wrote:
> Hola.
> Me proponía probar la creación de una extensión.
> Fui por las "external tools" de eclipse y ejecuté el "create extension".
> Pero me da BUILD FAILED.
> Por lo que veo es porque intenta descargar un jar que no existe. Fui a
> la url y en efecto me encontré con que no existe ese jar.
> Pero no se que hacer, cómo seguir para poder crear una extensión.
>
> Agradezco si me pueden ayudar.
> Un saludo,
> Gustavo.
>
> Pego abajo la salida con el error:
>
>
> Buildfile:
>
> _G:\facultad\proyecto\eclipse-workspaces\wk-gvsig2.0(ganymede)\build\ant-tasks\maven-archetypes.xml
>

>
> mvn-create-extension.getparams
>
> _:_
>
> mvn-create-extension
>
> _:
>
> [echo]
>
> [
>
> _echo_] groupId: org.gvsig
>
> [

>
> _echo_] artifactId: org.gvsig.extSigneo2
>
> [
>
> _echo_] version: 2.0-SNAPSHOT
>
> [echo]
>
> [
>
> _echo_] mvn archetype:generate -B -DarchetypeGroupId=org.gvsig
> -DarchetypeArtifactId=org.gvsig.maven-archetype.extension
> -DgroupId=org.gvsig -DartifactId=org.gvsig.extSigneo2
> -Dversion=2.0-SNAPSHOT -Dpackage=org.gvsig.extSigneo2
>
> [
>
> _artifact:mvn_] [INFO] Scanning for projects...
>
> [
>
> _artifact:mvn_] [INFO] Searching repository for plugin with prefix:
> 'archetype'.
>
> [
>
> _artifact:mvn_] [INFO]
> ------------------------------------------------------------------------
>

> [
>
> _artifact:mvn_] [INFO] Building Maven Default Project
>
> [
>
> _artifact:mvn_] [INFO] task-segment: [archetype:generate]
> (aggregator-style)
>
> [
>
> _artifact:mvn_] [INFO]
> ------------------------------------------------------------------------
>
> [
>
> _artifact:mvn_] [INFO] Preparing archetype:generate
>
> [
>
> _artifact:mvn_] [INFO] No goals needed for project - skipping
>
> [
>
> _artifact:mvn_] [INFO] Setting property:
> classpath.resource.loader.class =>
> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
>
> [
>
> _artifact:mvn_] [INFO] Setting property: velocimacro.messages.on =>
> 'false'.
>
> [
>
> _artifact:mvn_] [INFO] Setting property: resource.loader => 'classpath'.
>
> [
>
> _artifact:mvn_] [INFO] Setting property: resource.manager.logwhenfound
> => 'false'.
>
> [
>
> _artifact:mvn_] [INFO] [archetype:generate]
>
> [

>
> _artifact:mvn_] [INFO] Generating project in Batch mode
>
> [
>
> _artifact:mvn_] [WARNING] Specified archetype not found.
>
> [
>
> _artifact:mvn_] Downloading:
> http://repo1.maven.org/maven2/org/gvsig/org.gvsig.maven-archetype.extension/1.0/org.gvsig.maven-archetype.extension-1.0.jar
>

>
> [
>
> _artifact:mvn_] [INFO]
> ------------------------------------------------------------------------
>
> [
>
> _artifact:mvn_] [ERROR] BUILD FAILURE
>
> [
>
> _artifact:mvn_] [INFO]
> ------------------------------------------------------------------------
>
> [
>
> _artifact:mvn_] [INFO] The desired archetype does not exist
> (org.gvsig:org.gvsig.maven-archetype.extension:1.0)
>
> [
>
> _artifact:mvn_] [INFO]
> ------------------------------------------------------------------------
>
> [
>
> _artifact:mvn_] [INFO] For more information, run Maven with the -e switch
>
> [
>
> _artifact:mvn_] [INFO]
> ------------------------------------------------------------------------
>
> [

>
> _artifact:mvn_] [INFO] Total time: 4 seconds
>
> [
>
> _artifact:mvn_] [INFO] Finished at: Fri Sep 11 20:42:02 ACT 2009
>
> [
>
> _artifact:mvn_] [INFO] Final Memory: 8M/14M
>

> [
>
> _artifact:mvn_] [INFO]
> ------------------------------------------------------------------------
>
> BUILD FAILED
>
> _
>
> G:\facultad\proyecto\eclipse-workspaces\wk-gvsig2.0(ganymede)\build\ant-tasks\maven-archetypes.xml:64:
> The following error occurred while executing this line:
>
> G:\facultad\proyecto\eclipse-workspaces\wk-gvsig2.0(ganymede)\build\ant-tasks\ant-tasks-config.xml:71:
> Java returned: 1
>
> _
>
> Total time: 15 seconds
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> gvSIG_desarrolladores mailing list
> [hidden email]
> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_desarrolladores
>


--
Jorge Piera Llodrá
Especialista en Servicios OGC
Equipo de desarrollo gvSIG
IVER TI S.A.
C/ Lérida, 20
46009-Valencia (Spain)
Tlf.+34902252540
www.iver.es
www.gvsig.com

_______________________________________________
gvSIG_desarrolladores mailing list
[hidden email]
http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_desarrolladores



_______________________________________________
gvSIG_desarrolladores mailing list
[hidden email]
http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_desarrolladores
JesNabble

Re: gvSIG2.0 - Error al ejecutar "create extension"

Reply Threaded More More options
Print post
Permalink

Hola Gustavo,

    he tenido exactamente el mismo error que tú al crear la extensión. ¿Me podrías detallar cómo has solucionado el problema? Me refiero a cómo accedes al directorio desde el que ejecutas el mvn-clean. Perdona si te resulta de novato la pregunta pero es que ando un poco perdidillo.

Gracias de antemano.