G. B. wrote:
Hi,
How can I, inside my class that extends AbstractMojo, print my own version.
(This applies to all Maven-built JAR artifacts)
Maven will add a properties file containing a few very useful bits from
the POM into a properties file that you can load like this:
InputStream is =
this.getClass().getResource("/META-INF/maven/groupid/artifactid/pom.properties")
Properties properties = new Properties();
properties.load()
System.out.println("My version is: " + properties.getProperty("version") );
--
Trygve
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]