Hello Maven Users. In my MOJO I have:
/**
* The project version.
* @parameter name="version" required="true" readonly="true"
expression="${project.version}"
*/
private String version;
..
..
getLog().info("The project.basedir is "+basedir.getAbsolutePath());
getLog().info("The project.artifactId "+artifactId);
getLog().info("The project.version "+version);
[INFO] The project.basedir is
E:\development\workspace\deloitte-ecm-cm-core
[INFO] The project.artifactId deloitte-ecm-cm-core
[INFO] The project.version null
Above, the ${project.basedir} and ${project.artifactId} resolve
correctly. However, ${project.version} does not. I tried setting the
type of version to Integer, but that did not work either. Could you
please help identify how I can correct this? Thanks.
This message (including any attachments) contains confidential information
intended for a specific individual and purpose, and is protected by law. If
you are not the intended recipient, you should delete this message.
Any disclosure, copying, or distribution of this message, or the taking of any
action based on it, is strictly prohibited. [v.E.1]