You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Frank Wilson <fa...@gmail.com> on 2008/05/01 15:33:18 UTC
archetype generate, goal not found
Online documentation seems to say we can use archetype:generate to
select archetypes from a list of known archetypes.
My problem is that maven complains it cant find the generate goal for
the archetype plugin.
This is an example of the error I got. I cleared out my archetype
plugins under ~/.m2 to be sure it was using the newest version.
Any ideas what might be causing this?
:$ mvn archetype:generate
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype/1.0-alpha-7/maven-archetype-1.0-alpha-7.pom
3K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-parent/2/maven-archetype-parent-2.pom
2K downloaded
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Required goal not found: archetype:generate in
org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu May 01 14:28:32 BST 2008
[INFO] Final Memory: 2M/53M
[INFO] ------------------------------------------------------------------------
Thanks,
Frank
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: archetype generate, goal not found
Posted by Benjamin Buffereau <be...@region-bretagne.fr>.
I had the same problem, because of an outdated .m2 directory. Make sure you
actually deleted the .m2 directory pointed to by the <localRepository>
variable of your settings.xml.
--
View this message in context: http://www.nabble.com/archetype-generate%2C-goal-not-found-tp17001546p17251047.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org