I had a similar problem (trying to access the artifact timestamp, which
includes the build number). The following is from my Mojo:

        /**
         * The project artifact.
         * 
         * @parameter expression="${project.artifact}"
     * @required
     * @readonly
         */
        private Artifact artifact;


and then artifact.getVersion(). Perhaps you can do it also from POM via
${project.artifact.version}.

-- 
View this message in context: 
http://www.nabble.com/Accessing-the-build-number-tf1908562.html#a5361395
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to