So I currently have 2 projects, lets call them ProjectA, and ProjectB. ProjectA and ProjectB should be released independently of each other. They both use a shared project called ProjectCommon.
<groupId>group</groupId>
<artifactId>ProjectA</artifactId>
<version>0.0.10-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>group</groupId>
<artifactId>ProjectCommon</artifactId>
<version>0.0.2-SNAPSHOT</version>
</dependency>
</dependencies>
Currently If I want to realease ProjectA, I first have to release ProjectCommon, and update the version in ProjectA pom.xml.
Is there a way to automate this? I have been looking at versions:use-latest-releases plugin but I cant get it to work if ProjectCommon is currently using a snapshot. I just get "cant release project due to unreleased dependencies"
Thanks