Unsubscribe
On Mar 31, 2015 3:09 PM, "Nick Hristov" <[email protected]> wrote:

> Hello,
>
> In my company we have a really large codebase, and it is structured in
> over 100 modules.
>
> All modules are released together: they have the same version.
>
> Historically, we have had the version embedded in every pom at least
> twice: once for the module itself, and once for the parent version
> reference. I believe with a recent upgrade, the number of versions goes in
> half: child modules can inherit the version.
>
> The problem is that we still must put the parent's version in every
> module. This leaves us with still over 100 repetitions of version string in
> the project.
>
> Obviously we have tools to automate the switching of versions, but this is
> still causing us pain.
>
> Will maven at any point support omitting the <version> from the <parent>
> xml element? If <relativePath> is specified, why does a version have to be
> present? Wouldn't specifying a version when a <relativePath> is present
> lead to two sources of information (i.e. child specifying version, yet
> pointing to a parent pom which may have conflicting version)?
>
> Furthermore, I was able to get to a solution to this problem, but it
> appears brittle. A sample project is attached.
>
> The attached sample project also breaks if the version is a constant in
> the parent pom.xml. (i.e. <version>1.0-SNAPSHOT</version>) Can't figure
> why that is. I am using the following maven version:
>
> mvn --version
>
> Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1;
> 2014-12-14T09:29:23-08:00)
>
> Maven home: /Development/vendor/apache-maven-3.2.5
>
> Java version: 1.7.0_71, vendor: Oracle Corporation
>
> Java home:
> /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre
>
> Default locale: en_US, platform encoding: UTF-8
>
> OS name: "mac os x", version: "10.10.2", arch: "x86_64", family: "mac"
>
> Thank you for your help,
>
> Nick
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

Reply via email to