-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You might want to see the FAQ entry on proxy setup on the Maven website.
You need an entry in ~/.m2/settings.xml to tell what the proxy settings
are...

http://maven.apache.org/guides/mini/guide-proxies.html

HTH,

john

Roberto Castro wrote:
| Hi, Luca!
| I've entered this line but it didn't work yet:
| mvn -X archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
| -Dproxies.proxy.host=copacabana.cetipnet -Dproxies.proxy.port=3128
|
| Here is the error message I've been facing:
|
| + Error stacktraces are turned on.
| [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
and Settin
| gs\roberto\.m2\plugin-registry.xml'
| [DEBUG] Building Maven global-level plugin registry from:
'G:\Maven\Apache Softw
| are Foundation\maven-2.0\conf\plugin-registry.xml'
| [INFO] Scanning for projects...
| [INFO] Searching repository for plugin with prefix: 'archetype'.
| [DEBUG] maven-archetype-plugin: using locally installed snapshot
| [DEBUG] Artifact not found - using stub model: Unable to determine the
latest ve
| rsion
|   org.apache.maven.plugins:maven-archetype-plugin:LATEST:pom
|
|
| [DEBUG] Using defaults for missing POM
org.apache.maven.plugins:maven-archetype-
| plugin:pom:LATEST
| [DEBUG] maven-archetype-plugin: using locally installed snapshot
| [DEBUG] Artifact not found - using stub model: Unable to determine the
release v
| ersion
|   org.apache.maven.plugins:maven-archetype-plugin:RELEASE:pom
|
|
| [DEBUG] Using defaults for missing POM
org.apache.maven.plugins:maven-archetype-
| plugin:pom:RELEASE
| [INFO]
- -------------------------------------------------------------------------
| ---
| [ERROR] BUILD ERROR
| [INFO]
- -------------------------------------------------------------------------
| ---
| [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin'
does not exi
| st or no valid version could be found
| [INFO]
- -------------------------------------------------------------------------
| ---
| [DEBUG] Trace
| org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.apache.m
| aven.plugins:maven-archetype-plugin' does not exist or no valid
version could be
|  found
|         at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
| ultLifecycleExecutor.java:1124)
|         at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
| (DefaultLifecycleExecutor.java:1356)
|         at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
| AggregationNeeds(DefaultLifecycleExecutor.java:376)
|         at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
| fecycleExecutor.java:132)
|         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
|         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
|         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
|         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
| java:39)
|         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
|         at java.lang.reflect.Method.invoke(Method.java:585)
|         at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
|         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
|         at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
|
|         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
| Caused by:
org.apache.maven.plugin.version.PluginVersionNotFoundException: The p
| lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist
or no val
| id version could be found
|         at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
| uginVersion(DefaultPluginVersionManager.java:225)
|         at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
| uginVersion(DefaultPluginVersionManager.java:87)
|         at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
| inManager.java:158)
|         at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
| ultLifecycleExecutor.java:1095)
|         ... 14 more
| [INFO]
- -------------------------------------------------------------------------
| ---
| [INFO] Total time: 1 second
| [INFO] Finished at: Fri Oct 28 13:22:39 BRST 2005
| [INFO] Final Memory: 1M/2M
| [INFO]
- -------------------------------------------------------------------------
| ---
|
|       Regards,
|
|      Roberto de Castro
|      Analista de Suporte
|      Cetip - Desus Rio de Janeiro
|      +55 21 2276-7439
|      mailto:[EMAIL PROTECTED]
|
|
|
|
| -----Mensagem original-----
| De: luca rasconi [mailto:[EMAIL PROTECTED]
| Enviada em: sexta-feira, 28 de outubro de 2005 12:07
| Para: Maven Users List
| Assunto: Re: M2 from behind a proxy
|
|
| http://maven.apache.org/guides/mini/guide-proxies.html
|
| Luca
|
| On 10/28/05, Roberto Castro <[EMAIL PROTECTED]> wrote:
|
|>Hi all, how I can configure M2 to access ibiblio from behind a proxy?
|>I'd like to create my first M2 project using a command line like this:
|>mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
|>Thanks in advance,
|>
|>Roberto de Castro
|>Analista de Suporte
|>Cetip - Desus Rio de Janeiro
|>+55 21 2276-7439
|>mailto:[EMAIL PROTECTED]
|>
|>
|>
|>Atenção: Esta mensagem foi enviada para uso exclusivo do(s)
|>destinatários(s) acima
|>identificado(s), podendo conter informações e/ou documentos
|>confidencias/privilegiados e seu sigilo é protegido por lei.
|>Caso você tenha recebido por engano, por favor, informe o remetente e
|>apague-a de
|>seu sistema.
|>Notificamos que é proibido por lei a sua retenção, disseminação,
|>distribuição, cópia ou
|>uso sem expressa autorização do remetente.
|>Opiniões pessoais do remetente não refletem, necessariamente, o ponto de
|>vista da
|>CETIP, o qual é divulgado somente por pessoas autorizadas.
|>
|>
|>Attention: This message was sent for exclusive use of the addressees above
|>identified, being able to contain information and or
|>privileged/confidential documents
|>and law protects its secrecies.
|>In case that you it has received for deceit, please, it informs the
|>shipper and erases it
|>of your system.
|>We notify that law forbids its retention, dissemination, distribution,
|>copy or use without
|>express authorization.
|>Personal opinions of the shipper do not reflect, necessarily, the point of
|>view of the
|>CETIP, which is only divulged by authorized people.
|>
|>
|>---------------------------------------------------------------------
|>To unsubscribe, e-mail: [EMAIL PROTECTED]
|>For additional commands, e-mail: [EMAIL PROTECTED]
|>
|>
|
|
|
| Atenção: Esta mensagem foi enviada para uso exclusivo do(s)
destinatários(s) acima
| identificado(s), podendo conter informações e/ou documentos
| confidencias/privilegiados e seu sigilo é protegido por lei.
| Caso você tenha recebido por engano, por favor, informe o remetente e
apague-a de
| seu sistema.
| Notificamos que é proibido por lei a sua retenção, disseminação,
distribuição, cópia ou
| uso sem expressa autorização do remetente.
| Opiniões pessoais do remetente não refletem, necessariamente, o ponto
de vista da
| CETIP, o qual é divulgado somente por pessoas autorizadas.
|
|
| Attention:  This message was sent for exclusive use of the addressees
above
| identified, being able to contain information and or
privileged/confidential documents
| and law protects its secrecies.
| In case that you it has received for deceit, please, it informs the
shipper and erases it
| of your system.
| We notify that law forbids its retention, dissemination, distribution,
copy or use without
| express authorization.
| Personal opinions of the shipper do not reflect, necessarily, the
point of view of the
| CETIP, which is only divulged by authorized people.
|
|
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
|
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFDYkfZK3h2CZwO/4URAgCJAJ9VbGJk+jYeJ1kLVzaNhMo5wO5KEgCgntp0
QHh811Ky18cG+L+ZYBHuki4=
=1L5k
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to