Have a look at dependency management
(http://maven.apache.org/guides/introduction/introduction-to-dependency-
mechanism.html).

Cheers
 

-----Original Message-----
From: hamdard [mailto:[EMAIL PROTECTED] 
Sent: 17 August 2006 11:12
To: users@maven.apache.org
Subject: [M2] How to softcode 'version' in dependency declaration


Hi

Is it possible to softcode the version in the dependency declaration?

For example, the pom could be like this:

<dependency>
        <groupId>com.mycompany.ixaf</groupId>
        <artifactId>gw-plugin</artifactId>
        <version>${myversion}</version>
</dependency>

And the myversion parameter is controllable from the settings.xml file.

The motivation is that if we have a multi-module build in maven with all
the different modules using the same 'one' version, we could
control/update the version of the entire project from one place
(settings.xml), instead of updating it in several places. 

Thanks
--
View this message in context:
http://www.nabble.com/-M2--How-to-softcode-%27version%27-in-dependency-d
eclaration-tf2120609.html#a5848660
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to