getting a plugin's own version?

2006-10-14 Thread pjungwir
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

Re: getting a plugin's own version?

2006-10-14 Thread pjungwir
By the way, what are the get/setPluginContext methods on AbstractMojo for? When I look in the Map, it is empty. Is this a way to pass information to your plugin from the plugin's pom? Maybe I could use this for what I want. -- View this message in context:

Re: getting a plugin's own version?

2006-10-14 Thread pjungwir
Hi Dan, you're coding on a Saturday, too? dan tran wrote: use project to browse the user pom which for sure has your plugin. I was hoping nobody would suggest this! :-) But I'm giving it a try. I get all the artifacts via project.getPluginArtifacts(). But when I find my own, I can only

Re: getting a plugin's own version?

2006-10-14 Thread pjungwir
pjungwir wrote: I see that ArtifactVersion (from getSelectedVersion()) has the major/minor numbers. Do I have to patch these together myself? Actually, these are all set to zero -- View this message in context:

Re: getting a plugin's own version?

2006-10-14 Thread Dan Tran
since your plugin is defined in project--build--plugins, I would suggest to use that browse it thru a api as well. On 10/14/06, pjungwir [EMAIL PROTECTED] wrote: pjungwir wrote: I see that ArtifactVersion (from getSelectedVersion()) has the major/minor numbers. Do I have to patch these

Re: getting a plugin's own version?

2006-10-14 Thread pjungwir
Oh, that is much better! Thank you. -- View this message in context: http://www.nabble.com/getting-a-plugin%27s-own-version--tf2443270.html#a6813179 Sent from the Maven - Users mailing list archive at Nabble.com. - To