maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wayne Fay" <wayne...@gmail.com>
Subject Re: The plugin archetype does not exist
Date Mon, 13 Aug 2007 19:39:01 GMT
It sounds like you've got some corrupted files in your local repo
cache. Delete the directory ~/.m2/repository, and try again.

On Windows, that would be C:\Documents and Settings\<your name
here>\.m2\repository.

Wayne

On 8/13/07, Amene Mahboobi <mahboobi_amene@yahoo.com> wrote:
>  Hi,
>  It is my first time using the maven, and here I am stocked with the first goal, creating
new project,
>  I am using windows xp and I am behind firewall so I created a settings.xml and put in
my user.home/m2/settings.xml
>  I am sure that this file is read by maven, because if I make a deliberate error cause
in the xml file, maven catch that, but still I can't bypass the proxy.
>
>  C:\>mvn -e -up archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
>
>  + Error stacktraces are turned on.
>  [INFO] Scanning for projects...
>  [INFO] Searching repository for plugin with prefix: 'archetype'.
>  [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] ------------------------------------------------------------------------
>  [INFO] 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:1286)
>          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
>  (DefaultLifecycleExecutor.java:1522)
>          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
>  AggregationNeeds(DefaultLifecycleExecutor.java:386)
>          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
>  fecycleExecutor.java:138)
>          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>          at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>          at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>          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:324)
>          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:228)
>          at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
>  uginVersion(DefaultPluginVersionManager.java:90)
>          at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
>  inManager.java:166)
>          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
>  ultLifecycleExecutor.java:1257)
>          ... 14 more
>  [INFO] ------------------------------------------------------------------------
>  [INFO] Total time: < 1 second
>  [INFO] Finished at: Mon Aug 13 11:53:43 PDT 2007
>  [INFO] Final Memory: 1M/2M
>  [INFO] ------------------------------------------------------------------------
>
>
>  Any help is highly appreciated.
>  Thanks,
>  -Amene
>
>
> ---------------------------------
> Shape Yahoo! in your own image.  Join our Network Research Panel today!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message