Am Wed, 14 May 2014 07:41:27 -0700 (PDT) schrieb DenisDasKind <[email protected]>:
> Hi, > > i'm new to maven, and now i have the following problem. I have a > custom Mojo, and the Mojo should print the own version stored in the > pom.xml of this mojo. And now i have trouble to get this version. I > have tried the project.version, but this is always the version of the > pom, that calls my Mojo. A easy way, will be when the version is > hardcoded, but this is not the best way, becausae each time when the > version is changed (release) i must change it manually. > Is there a better way to get this version? There are also some useful hints on StackOverflow: http://stackoverflow.com/questions/2712970/how-to-get-maven-artifact-version-at-runtime/12571330 hth, - martin
signature.asc
Description: PGP signature
