Details
-
New Feature
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
3.0.1
-
None
-
None
Description
Hi,
Currently I'm only able to fetch a versioned archetype with the following situations:
- Not specifying an archetypeVersion at all.
- Specifying a fixed version (i.e. 1.7.3).
- Specifying the LATEST version.
I don't know if there are more choices about it, but IMHO I think it could be great to define a version range for archetypes (as it's currently done with dependencies). An example could be:
mvn -B archetype:generate -DarchetypeGroupId=com.acme.archetype -DarchetypeArtifactId=plugin-archetype-rest -DartifactId=AppRest -DgroupId=com.acme.app -Dversion=1.0 '-DarchetypeVersion=(,1.8.0)'
Thank you!