I am using Maven 3.5. I have a multimodule project structure: Module A is parent and has two children Module B and Module C.
My requirement is: I would like to have latest release from Nexus for certain third party jars. These are basically the jars from the Test Unit. Please note I dont want to have Snapshot versions.
I read that specifying RELEASE in pom.xml in does not work with maven 3.x versions. But I tried it and it is working fine. (using IntelliJ just for info) 1) So why is it working for me ?
2) Should I be using RELEASE with Maven 3.5 ?
I also read that one can use Maven "versions-maven-plugin" with goal "use-latest-releases" with Maven 3.x. I am not sure how to use it exactly. I have tried following:
in my parent pom.xml from Module A:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<goals>
<goal>use-latest-releases</goal>
</goals>
</execution>
</executions>
</plugin>
Now 3) how and what should I specify in version tag of my dependency in sub module say C ? I wrote like following:
<properties>
<!-- V dependencies -->
<version.vvv.iii.piiii></version.vvv.iii.piiii>
</properties>
<dependency>
<groupId>c.b.ttt</groupId>
<artifactId>V-RApi</artifactId>
<version>version.vvv.iii.piiii</version>
</dependency>
Basically I want to know how one can use this particular maven plugin and goal practically. I read Maven documentation for it but could not apply it.