[
https://issues.apache.org/jira/browse/MRELEASE-985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Scholte closed MRELEASE-985.
-----------------------------------
Resolution: Fixed
Fix Version/s: 3.0.0
Fixed in
[315f60ba42c20ba8b6e6ac739f4d0a6c74c7a4c0|https://gitbox.apache.org/repos/asf?p=maven-release.git;a=commit;h=315f60ba42c20ba8b6e6ac739f4d0a6c74c7a4c0]
Thanks for the patch!
> Override SNAPSHOT dependencies from command line
> ------------------------------------------------
>
> Key: MRELEASE-985
> URL: https://issues.apache.org/jira/browse/MRELEASE-985
> Project: Maven Release Plugin
> Issue Type: New Feature
> Reporter: Petar Tahchiev
> Assignee: Robert Scholte
> Priority: Major
> Fix For: 3.0.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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:
> {code}
> <dependency>
> <groupId>com.mycompany</groupId>
> <artifactId>test</artifactId</artifactId>
> <version>1.0-SNAPSHOT</version>
> </dependency>
> {code}
> or this parent:
> {code}
> <parent>
> <groupId>com.mycompany</groupId>
> <artifactId>test</artifactId</artifactId>
> <version>1.0-SNAPSHOT</version>
> </parent>
> {code}
> 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:
> {code}
> mvn release:prepare --batch-mode
> -DdependencyVersion.com.mycompany:test=1.1.RELEASE
> -DdevelopmentVersion.com.mycompany:test=1.2.BUILD-SNAPSHOT
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)