You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Amene Mahboobi <ma...@yahoo.com> on 2007/08/13 20:56:17 UTC
The plugin archetype does not exist
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 cant 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!
Re: The plugin archetype does not exist
Posted by Wayne Fay <wa...@gmail.com>.
This is not an uncommon problem/question on this list. I've seen it
myself too when I've had a poorly configured settings.xml.
Wayne
On 8/13/07, Amene Mahboobi <ma...@yahoo.com> wrote:
> you were right! (how did u realize this?)
> Thanks, so much, now it is working!
> Wayne Fay <wa...@gmail.com> wrote: 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\
> here>\.m2\repository.
>
> Wayne
>
> On 8/13/07, Amene Mahboobi 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
>
>
>
>
> ---------------------------------
> Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How can I use a project.xml
Posted by Amene Mahboobi <ma...@yahoo.com>.
thanks for your patience, I just realized it.
Wayne Fay <wa...@gmail.com> wrote: project.xml = maven1
pom.xml = maven2
Wayne
On 8/13/07, Amene Mahboobi wrote:
> I want to deploy a project, what the destination is providing me, is only the project.xml and a project.properties file, can anyone tell me how I am supposed to use these? and what is the difference between project.xml with pom.xml.
>
> thanks in advance
> --Amene
>
>
> ---------------------------------
> Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------
Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.
Re: How can I use a project.xml
Posted by Wayne Fay <wa...@gmail.com>.
project.xml = maven1
pom.xml = maven2
Wayne
On 8/13/07, Amene Mahboobi <ma...@yahoo.com> wrote:
> I want to deploy a project, what the destination is providing me, is only the project.xml and a project.properties file, can anyone tell me how I am supposed to use these? and what is the difference between project.xml with pom.xml.
>
> thanks in advance
> --Amene
>
>
> ---------------------------------
> Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
How can I use a project.xml
Posted by Amene Mahboobi <ma...@yahoo.com>.
I want to deploy a project, what the destination is providing me, is only the project.xml and a project.properties file, can anyone tell me how I am supposed to use these? and what is the difference between project.xml with pom.xml.
thanks in advance
--Amene
---------------------------------
Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.
Re: The plugin archetype does not exist
Posted by Amene Mahboobi <ma...@yahoo.com>.
you were right! (how did u realize this?)
Thanks, so much, now it is working!
Wayne Fay <wa...@gmail.com> wrote: 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\
here>\.m2\repository.
Wayne
On 8/13/07, Amene Mahboobi 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
---------------------------------
Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when.
Re: The plugin archetype does not exist
Posted by Wayne Fay <wa...@gmail.com>.
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 <ma...@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