On 31/01/2008, amidrunk <[EMAIL PROTECTED]> wrote:
> Is there any good way to manage versions of dependencies in maven? In maven1
> it was possible to define the version in a properties file in a root
> project. Is there something similiar in maven2? Right now we define the
> versions in settings.xml, but that is not a feasible long-term solution.


Have a look at dependencyManagement :
http://maven.apache.org/pom#Dependency_Management


> We would either like to leave the version in a dependency and have e.g.
>
> <dependency>
>    <groupId>com.mycompany</groupId>
>    <artifactId>myArtifact</groupId>
> </dependency>
>
> Or we would like to have:
>
> <dependency>
>    <groupId>com.mycompany</groupId>
>    <artifactId>myArtifact</groupId>
>    <version>${com.mycompany.version}</version>
> </dependency>
>
> Thanks in advance,
> Nille
> --
> View this message in context: 
> http://www.nabble.com/Maven2-and-artifact-versions-tp15199790s177p15199790.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Jabber : [EMAIL PROTECTED]
Skype : Guillaume.Lederrey
Projects :
* http://rwanda.wordpress.com/

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

Reply via email to