Maven Versioning Submodules Dependencies -


we run multiple sites , build code maven.

each site has own pom.xml, several have submodules.

site b has dependency on submodule site a.

site b finds dependency in .m2/repository.

currently, site b's pom.xml specifies dependency name , version.

we're wondering how handle versioning of submodules in terms of our development , release process, in relation site depends on submodule site b site a.

for main site, should increment version of submodules every snapshot , release (keeping same version number), or change submodule version if submodule changes?

is there way, other communicating new version, , editing pom.xml of site b, updating dependency version, tell site b there new version of submodule for?

we tried removing version dependency specification in site b pom.xml, saw looked dependency/submodule have same version site b's code.

i'm guessing setup in jenkins update pom.xml dependencies when versions change ... maybe there better way?

i saw this, helpful (e.g. "release" , "latest") ...

how tell maven use latest version of dependency?

if read whole q&a linked, you'll see there can lot of issues latest , release, first of no longer supported in maven 3. answers given mention versions-maven-plugin , maven-scm-plugin, might useful automatic updates if that's want.

if want aware when changes, versions plugin has reports may run part of site phase produce info want, may update dependencies when time right.

<reporting>     <plugins>         <plugin>             <groupid>org.codehaus.mojo</groupid>             <artifactid>versions-maven-plugin</artifactid>             <version>1.3.1</version>             <reportsets>                 <reportset>                     <reports>                         <report>dependency-updates-report</report>                         <report>plugin-updates-report</report>                         <report>property-updates-report</report>                     </reports>                 </reportset>             </reportsets>         </plugin>     </plugins> </reporting> 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -