I executed the same command on my pc, and works fine.

See attach for details.

Luca

-----Original Message-----
From: Roberto Castro [mailto:[EMAIL PROTECTED] 
Sent: venerdì 28 ottobre 2005 17.25
To: Maven Users List
Subject: RES: M2 from behind a proxy

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]
+ Error stacktraces are turned on.
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and 
Settings\lucarasconi\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 
'C:\PROGRA~1\APACHE~1\maven-2.0\bin\..\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[DEBUG] maven-archetype-plugin: resolved to version 1.0-alpha-3 from repository 
central
[DEBUG] Retrieving parent-POM from the repository for project: 
org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:1.0-alpha-3
[INFO] 
----------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [archetype:create] (aggregator-style)
[INFO] 
----------------------------------------------------------------------------
[DEBUG] 
org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:1.0-alpha-3 
(selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: 
org.apache.maven:maven-archetype-core:jar:1.0-alpha-3
[DEBUG] Retrieving parent-POM from the repository for project: 
null:maven-archetype:pom:1.0-alpha-3
[DEBUG]   org.apache.maven:maven-archetype-core:jar:1.0-alpha-3 (selected for 
runtime)
[DEBUG] Retrieving parent-POM from the repository for project: 
plexus:plexus-utils:jar:1.0.3
[DEBUG]     plexus:plexus-utils:jar:1.0.3 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: 
plexus:plexus-container-default:jar:1.0-alpha-6
[DEBUG] Retrieving parent-POM from the repository for project: 
plexus:plexus-containers:pom:1.0.2
[DEBUG]     plexus:plexus-container-default:jar:1.0-alpha-6 (selected for 
runtime)
[DEBUG]       classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime)
[DEBUG]       junit:junit:jar:3.8.1 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: 
plexus:plexus-utils:jar:1.0.2
[DEBUG]       plexus:plexus-utils:jar:1.0.2 (removed - nearer found: 1.0.3)
[DEBUG]       plexus:plexus-utils:jar:1.0.2 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: 
org.apache.maven:maven-model:jar:2.0-beta-1
[DEBUG]     org.apache.maven:maven-model:jar:2.0-beta-1 (selected for runtime)
[DEBUG]       plexus:plexus-utils:jar:1.0.3 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: 
plexus:plexus-velocity:jar:1.0
[DEBUG] Retrieving parent-POM from the repository for project: 
plexus:plexus-components:pom:1.0
[DEBUG]     plexus:plexus-velocity:jar:1.0 (selected for runtime)
[DEBUG]       commons-logging:commons-logging:jar:1.0.2 (selected for runtime)
[DEBUG]         logkit:logkit:jar:1.0.1 (selected for runtime)
[DEBUG]         log4j:log4j:jar:1.1.3 (selected for runtime)
[DEBUG]       commons-collections:commons-collections:jar:2.0 (selected for 
runtime)
[DEBUG]       velocity:velocity:jar:1.4 (selected for runtime)
[DEBUG]         velocity:velocity-dep:jar:1.4 (selected for runtime)
[DEBUG]       log4j:log4j:jar:1.1.3 (removed - nearer found: 1.2.8)
[DEBUG]       log4j:log4j:jar:1.2.8 (selected for runtime)
[DEBUG]       plexus:plexus-container-default:jar:1.0-alpha-2 (removed - nearer 
found: 1.0-alpha-6)
[DEBUG]       plexus:plexus-container-default:jar:1.0-alpha-2 (selected for 
runtime)
[DEBUG] Retrieving parent-POM from the repository for project: 
org.apache.maven:maven-artifact:jar:2.0-beta-1
[DEBUG]     org.apache.maven:maven-artifact:jar:2.0-beta-1 (selected for 
runtime)
[DEBUG]       plexus:plexus-utils:jar:1.0.3 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: 
org.apache.maven:maven-plugin-api:jar:2.0-beta-1
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0-beta-1 (selected for 
runtime)
[INFO] Setting property: classpath.resource.loader.class => 
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] ************************************************************** 
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File: 
org\apache\velocity\runtime\defaults\velocity.properties
[INFO] Default ResourceManager initializing. (class 
org.apache.velocity.runtime.resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated: 
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class 
org.apache.velocity.runtime.resource.ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any 
resource loader.
[INFO] Velocimacro : error using  VM library template VM_global_library.vm : 
org.apache.velocity.exception.ResourceNotFoundException: Unable to find 
resource 'VM_global_library.vm'
[INFO] Velocimacro :  VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT 
replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be  
global in scope if allowed.
[INFO] Velocimacro : messages on  : VM system will output logging messages
[INFO] Velocimacro : autoload off  : VM system will not automatically reload 
global library macros
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[DEBUG] Configuring mojo 
'org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-3:create' -->
[DEBUG]   (f) archetypeArtifactId = maven-archetype-quickstart
[DEBUG]   (f) archetypeGroupId = org.apache.maven.archetypes
[DEBUG]   (f) archetypeVersion = RELEASE
[DEBUG]   (f) artifactId = my-app
[DEBUG]   (f) groupId = com.mycompany.app
[DEBUG]   (f) localRepository = [local] -> file://C:\Documents and 
Settings\lucarasconi\.m2\repository
[DEBUG]   (f) remoteRepositories = [[central] -> http://repo1.maven.org/maven2]
[DEBUG]   (f) version = 1.0-SNAPSHOT
[DEBUG] -- end configuration --
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: com.mycompany.app
[DEBUG] maven-archetype-quickstart: resolved to version 1.0-alpha-3 from 
repository central
[INFO] 
----------------------------------------------------------------------------
[INFO] Using following parameters for creating Archetype: 
maven-archetype-quickstart:RELEASE
[INFO] 
----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.mycompany.app
[INFO] Parameter: outputDirectory, Value: C:\Documents and 
Settings\lucarasconi\workspace\my-app
[INFO] Parameter: packageName, Value: com.mycompany.app
[INFO] Parameter: package, Value: com.mycompany.app
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: artifactId, Value: my-app
[INFO] ResourceManager : found archetype-resources/pom.xml with loader 
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[DEBUG] ********************* Debug info for resources created from generated 
Model ***********************
[DEBUG] Was build element found in generated POM?: false
[INFO] ********************* End of debug info from resources from generated 
POM ***********************
[INFO] ResourceManager : found archetype-resources/src/main/java/App.java with 
loader org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] ResourceManager : found archetype-resources/src/test/java/AppTest.java 
with loader org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] Archetype created in dir: C:\Documents and 
Settings\lucarasconi\workspace\my-app
[INFO] 
----------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] 
----------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Fri Oct 28 17:39:34 CEST 2005
[INFO] Final Memory: 3M/7M
[INFO] 
----------------------------------------------------------------------------

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

Reply via email to