Re: Get the scm settings from plugin

2007-02-22 Thread Dan Tran
all you need is to have access to 'project' instance and use it to get pom's info. put the below fragment in your mojo /** * [EMAIL PROTECTED] expression=${project} * [EMAIL PROTECTED] * */ *protected* MavenProject project; On 2/22/07, Paul Gier [EMAIL PROTECTED] wrote: I would like

RE: Get the scm settings from plugin

2007-02-22 Thread David Jackman
It seems project.properties will always be empty (I've been working on that issue in the Mojo accessing project properties thread in this forum). However, what you want isn't in the properties anyway. What you want is the project.scm value. Declare your plugin field like this: /** *

Re: Get the scm settings from plugin

2007-02-22 Thread Paul Gier
Thanks, it works! Does that work for the other objects in the model? For example if I also want to get the license information can I use ${project.license} to get a License object from model? Is that functionality documented anywhere? David Jackman wrote: It seems project.properties will

RE: Get the scm settings from plugin

2007-02-22 Thread David Jackman
Message- From: Paul Gier [mailto:[EMAIL PROTECTED] Sent: Thursday, February 22, 2007 11:04 AM To: Maven Users List Subject: Re: Get the scm settings from plugin Thanks, it works! Does that work for the other objects in the model? For example if I also want to get the license information can I use