I would like to be able to access the scm settings (connection, tag,
etc) in the pom.xml from within a plugin. Is this possible? It seems
like there should be an easy way to get access to all of the pom
configuration from within a plugin, but I haven't found it yet. I tried
looking in
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
@maven.apache.org
Subject: Get the scm settings from plugin
I would like to be able to access the scm settings (connection, tag,
etc) in the pom.xml from within a plugin. Is this possible? It seems
like there should be an easy way to get access to all of the pom
configuration from within a plugin, but I
version2.0.4/version
/dependency
That should be enough to get the scm information in your plugin.
..David..
-Original Message-
From: Paul Gier [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 22, 2007 9:01 AM
To: users@maven.apache.org
Subject: Get the scm settings
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