AndreAndrade 12 de dez. de 2011
O erro é esse por não estar conectado à internet:
Downloading : http : // repo1 . maven . org / maven2 / org / apache / maven / archetypes / maven - arc
hetype - webapp / maven - metadata . xml
[ WARNING ] Could not transfer metadata org . apache . maven . archetypes : maven - archetyp
e - webapp / maven - metadata . xml from / to central ( http : // repo1 . maven . org / maven2 ) : Err
or transferring file : repo1 . maven . org
[ INFO ] ------------------------------------------------------------------------
[ INFO ] BUILD FAILURE
[ INFO ] ------------------------------------------------------------------------
[ INFO ] Total time : 6.483 s
[ INFO ] Finished at : Sat Dec 10 16 : 58 : 47 BRST 2011
[ INFO ] Final Memory : 12 M / 107 M
[ INFO ] ------------------------------------------------------------------------
[ ERROR ] Failed to execute goal org . apache . maven . plugins : maven - archetype - plugin : 2
.2 : generate ( default - cli ) on project standalone - pom : The desired archetype does
not exist ( org . apache . maven . archetypes : maven - archetype - webapp : RELEASE ) -> [ Help
1 ]
[ ERROR ]
[ ERROR ] To see the full stack trace of the errors , re - run Maven with the - e swit
ch .
[ ERROR ] Re - run Maven using the - X switch to enable full debug logging .
[ ERROR ]
[ ERROR ] For more information about the errors and possible solutions , please rea
d the following articles :
[ ERROR ] [ Help 1 ] http : // cwiki . apache . org / confluence / display / MAVEN / MojoFailureExc
eption
Alguma sugestão para fazer o archetype:generate funcionar offline?
André.
AndreAndrade 14 de dez. de 2011
Mais uma informação: Esse código funcionou offline!
Aí eu pergunto, por quê?
André.