Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
As a user I would like to be able to override SNAPSHOT dependencies from the command line so that the build would not be aborted if I have SNAPSHOT dependencies in my pom.xml.
For example let's consider I have a pom.xml which declares the following dependency:
<dependency> <groupId>com.mycompany</groupId> <artifactId>test</artifactId</artifactId> <version>1.0-SNAPSHOT</version> </dependency>
or this parent:
<parent> <groupId>com.mycompany</groupId> <artifactId>test</artifactId</artifactId> <version>1.0-SNAPSHOT</version> </parent>
When I start the build it would fail, because I have unresolved SNAPSHOT dependencies. However, it would be really useful if I can specify the following:
mvn release:prepare --batch-mode -DdependencyVersion.com.mycompany:test=1.1.RELEASE -DdevelopmentVersion.com.mycompany:test=1.2.BUILD-SNAPSHOT