So I just ran 'mvn archetype:generate' and it's not finding that goal.  So I
download version 2.0-alpha5 from here:
http://mvnrepository.com/artifact/org.apache.maven.plugins/maven-archetype-plugin/2.0-alpha-5
by simply adding the following POM snippet in a pom.xml and running 'mvn
clean install'.

<dependency>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-archetype-plugin</artifactId>
    <version>2.0-alpha-5</version>
</dependency>

Now when I run this cmd: 

C:\Documents and Settings\asookazian\My
Documents\ubuntu_projects.tar\projects>m
vn help:describe -DgroupId=org.apache.maven.plugins
-DartifactId=maven-archetype
-plugin -Dversion=2.0-alpha-5 -Dmedium=true

the generate goal is listed.

But when I run 'mvn archetype:generate' again, it can't find the generate
goal.  This means Maven is using a different version of the plugin in my
local repo (I have three).

How does Maven know which version to use when you exec 'mvn
archetype:generate' or any other goal for a plugin?

I would imagine it should be the latest version.  How would I change which
version I want it to use when I issue the cmd?  thx.
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/which-version-of-a-plugin-will-Maven-use-tp1044797p1044797.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to