You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Sharma, Jaikumar" <ja...@barco.com> on 2006/06/26 15:28:36 UTC
How to Refer Configuration elements of the plugin in a Mojo
Hi!
I there a way to refer the username and password elements specified in
pom.xml into a mojo ? sample configuration is as follows :
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>1.0-beta-3</version>
<configuration>
<connectionUrl>scm:mks:myservername@projectname@sbxlocation</connectionUrl>
<basedir>d:/temp/sandboxes</basedir>
<username>myname</username>
<password>mypass</password>
</configuration>
</plugin>
Thanks in advance!
- - - - - - - DISCLAIMER- - - - - - - -
Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically authorized to
receive it. If you are not the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this message and/or
attachments is strictly prohibited. The company accepts no liability for any
damage caused by any virus transmitted by this email. Furthermore, the
company does not warrant a proper and complete transmission of this
information, nor does it accept liability for any delays. If you have
received this message in error, please contact the sender and delete the
message. Thank you.
Re: How to Refer Configuration elements of the plugin in a Mojo
Posted by jerome lacoste <je...@gmail.com>.
On 6/26/06, Sharma, Jaikumar <ja...@barco.com> wrote:
> Hi!
>
> I there a way to refer the username and password elements specified in
> pom.xml into a mojo ? sample configuration is as follows :
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-scm-plugin</artifactId>
> <version>1.0-beta-3</version>
> <configuration>
>
> <connectionUrl>scm:mks:myservername@projectname@sbxlocation</connectionUrl>
> <basedir>d:/temp/sandboxes</basedir>
> <username>myname</username>
> <password>mypass</password>
> </configuration>
> </plugin>
I don't know of a generic way to make a mojo know about the
configuration passed to another one.
You could always use properties and pass them to 2 different
configurations elements. That will allow you to write the shared
configuration information in a single place.
Jerome
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org