Define this in your mojo
/**
* The POM
*
* [EMAIL PROTECTED] expression="${project}
* [EMAIL PROTECTED]
*
* [EMAIL PROTECTED]
*
*/
*private *MavenProject project;
then use project to browse the user pom which for sure has your plugin.
-D
On 10/14/06, pjungwir <[EMAIL PROTECTED]> wrote:
Hello,
Is there an easy way for a plugin to get its own version? I can't just do
a
property set to ${project.version}, because that will get the version of
the
user's project. So far, the easiest thing I've come up with is to write
${project.version} to a filtered resource file, but that seems very
circuitous. Can I just get it in java?
Thanks,
Paul
--
View this message in context:
http://www.nabble.com/getting-a-plugin%27s-own-version--tf2443270.html#a6812276
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]