« Return to Thread: Proper Dependency Management - HowTo?

RE: Proper Dependency Management - HowTo?

by Jörg Schaible :: Rate this Message:

Reply to Author | View in Thread

Peter Horlock wrote:

>> Neither Michael nor I did propose properties for the version. Simply
>> define the version in the version depMgmnt itself and you're done.
>
>
> No, I don't think so, my point is:
>
> parent pom:
> <submoulde-version>
> <dependency-management>
> [...]
> <version>1.2.3</version>
> [...]
> <submoulde-version>
>
> submodule:
> [...]
> <version>1.2.3</version>
> [...]
>
> So you will have to change it in two places (=duplicate code) where
> as if you are using a property, you can do it in
> one singular place.

There are two different scenarios to consider:
1/ all submodules share the same development cycle and are released together: In this case the release plugin will happily adjust all the version numbers automatically.
2/ individual artifacts that are referenced with the version in the global POM: In this case I might keep the older version in the global POM while I already modify and restructure the other one without affecting all dependent artifacts immediately.

Last point: The release plugin will fail to update the version of your current project if it is defined by a property.

- Jörg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

 « Return to Thread: Proper Dependency Management - HowTo?