Hi,

Is there any way to use the version of an archetype in the templates
for that archetype (e.g. use the -DarchetypeVersion command line
parameter as ${archetypeVersion})?

My use case is a multi module project, where one module is the
archetype, which generates a project that has dependencies on the
other modules. All modules inherit their version number from the root
pom so I could use the archetype version to specify the version in the
dependencies on the other modules. The problem right now is that the
version number in the archetype's template for pom.xml is not updated
by the release plugin when releasing the complete project, so manual
updating is necessary which can/will lead to errors in tags/releases.

Or is this project structure bad practice and should the archetype be
a separate project? I do not really see the benefit of that since the
archetype will always have the same release cycle as the rest of the
project.

Thanks!
Niels

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to