Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Maven archetypes broken?

 
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been trying to run the mvn create:archetype command, but its been failing with odd error messages. I've tried three different archetypes, including the simplest/default, and I've tried on multiple boxes, some with clean installs of maven. It has worked in the past, so I'm not sure what's changed.

Can anyone help me out?

Here's some example errors:

AppFuse Archetype



Cargo Maven Archetypes


Simplest/Default archetype:
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
even I wanna know this.
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am new to Maven , i downloaded the zip file and followed the instructions given in th website, but when i run the command
mvn archetype:generate i get the following error. Any help or advice on this


C:\Documents and Settings\cm>mvn -e archetype:generate
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [archetype:generate] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
-----------------------------------------------------
this realm = plexus.core
urls[0] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-2.0.9-uber.jar
urls[1] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/archetype-common-2.0-alph
a-3.jar
urls[2] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/archetype-common-2.0-alph
a-3-javadoc.jar
urls[3] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/archetype-common-2.0-alph
a-3-sources.jar
urls[4] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-ant-plugin-2.1.jar
urls[5] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-ant-plugin-2.1-java
doc.jar
urls[6] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-ant-plugin-2.1-sour
ces.jar
urls[7] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-archetype-creator-1
.0-alpha-7.jar
urls[8] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-archetype-creator-1
.0-alpha-7-javadoc.jar
urls[9] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-archetype-creator-1
.0-alpha-7-sources.jar
urls[10] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-archetype-plugin-2
.0-alpha-3.jar
urls[11] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-archetype-plugin-2
.0-alpha-3-javadoc.jar
urls[12] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-archetype-plugin-2
.0-alpha-3-sources.jar
urls[13] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-assembly-plugin-2.
2-beta-2.jar
urls[14] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-assembly-plugin-2.
2-beta-2-javadoc.jar
urls[15] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-assembly-plugin-2.
2-beta-2-sources.jar
urls[16] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-changelog-plugin-2
.1.jar
urls[17] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-changelog-plugin-2
.1-javadoc.jar
urls[18] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-changelog-plugin-2
.1-sources.jar
urls[19] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-changes-plugin-2.0
.jar
urls[20] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-changes-plugin-2.0
-javadoc.jar
urls[21] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-changes-plugin-2.0
-sources.jar
urls[22] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-checkstyle-plugin-
2.2.jar
urls[23] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-checkstyle-plugin-
2.2-javadoc.jar
urls[24] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-checkstyle-plugin-
2.2-sources.jar
urls[25] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-clean-plugin-2.2.j
ar
urls[26] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-clean-plugin-2.2-j
avadoc.jar
urls[27] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-clean-plugin-2.2-s
ources.jar
urls[28] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-compiler-plugin-2.
0.jar
urls[29] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-compiler-plugin-2.
0-javadoc.jar
urls[30] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-dependency-plugin-
2.0.jar
urls[31] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-dependency-plugin-
2.0-javadoc.jar
urls[32] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-dependency-plugin-
2.0-sources.jar
urls[33] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-deploy-plugin-2.3.
jar
urls[34] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-deploy-plugin-2.3-
javadoc.jar
urls[35] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-deploy-plugin-2.3-
sources.jar
urls[36] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-eclipse-plugin-2.5
.jar
urls[37] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-eclipse-plugin-2.5
-javadoc.jar
urls[38] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-eclipse-plugin-2.5
-sources.jar
urls[39] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-install-plugin-2.2
.jar
urls[40] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-install-plugin-2.2
-javadoc.jar
urls[41] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-install-plugin-2.2
-sources.jar
urls[42] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-jar-plugin-2.2.jar

urls[43] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-jar-plugin-2.2-jav
adoc.jar
urls[44] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-jar-plugin-2.2-sou
rces.jar
urls[45] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-javadoc-plugin-2.4
.jar
urls[46] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-javadoc-plugin-2.4
-javadoc.jar
urls[47] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-javadoc-plugin-2.4
-sources.jar
urls[48] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-scm-plugin-1.0.jar

urls[49] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-scm-plugin-1.0-jav
adoc.jar
urls[50] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-scm-plugin-1.0-sou
rces.jar
urls[51] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-source-plugin-2.0.
jar
urls[52] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-source-plugin-2.0-
javadoc.jar
urls[53] = file:/E:/VARSHA/Software/Maven/apache-maven-2.0.9/lib/maven-source-plugin-2.0-
sources.jar
Number of imports: 0
-----------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:mave
n-archetype-plugin:2.0-alpha-3:generate': Unable to find the mojo 'org.apache.maven.plugi
ns:maven-archetype-plugin:2.0-alpha-3:generate' in the plugin 'org.apache.maven.plugins:m
aven-archetype-plugin'
org/apache/maven/shared/invoker/MavenInvocationException
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin mana
ger executing goal 'org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-3:generate'
: Unable to find the mojo 'org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-3:ge
nerate' in the plugin 'org.apache.maven.plugins:maven-archetype-plugin'
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecy
cleExecutor.java:562)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(Defa
ultLifecycleExecutor.java:512)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecyc
leExecutor.java:482)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailur
es(DefaultLifecycleExecutor.java:330)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defaul
tLifecycleExecutor.java:227)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleEx
ecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j
ava: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.PluginManagerException: Unable to find the mojo 'org.a
pache.maven.plugins:maven-archetype-plugin:2.0-alpha-3:generate' in the plugin 'org.apach
e.maven.plugins:maven-archetype-plugin'
at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginMa
nager.java:618)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.
java:429)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecy
cleExecutor.java:558)
... 16 more
Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: U
nable to lookup component 'org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-arc
hetype-plugin:2.0-alpha-3:generate', it could not be created
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:
335)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:
312)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:
440)
at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginMa
nager.java:609)
... 18 more
Caused by: org.codehaus.plexus.component.factory.ComponentInstantiationException: Could n
ot instanciate component: role: 'null', implementation: 'org.apache.maven.archetype.mojos
.CreateProjectFromArchetypeMojo'
at org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException(
JavaComponentFactory.java:77)
at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(Ja
vaComponentFactory.java:62)
at org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlex
usContainer.java:1464)
at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponent
Instance(AbstractComponentManager.java:93)
at org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(P
erLookupComponentManager.java:48)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:
331)
... 21 more
Caused by: java.lang.NoClassDefFoundError: org/apache/maven/shared/invoker/MavenInvocatio
nException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
at java.lang.Class.getConstructor0(Class.java:2640)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(Ja
vaComponentFactory.java:44)
... 25 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 40 seconds
[INFO] Finished at: Sun May 04 02:28:10 PDT 2008
[INFO] Final Memory: 19M/52M
[INFO] ------------------------------------------------------------------------
 
I don't even know how to spell CIA. But this tiny ad does:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic