maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Petar Tahchiev (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MRELEASE-985) Override SNAPSHOT dependencies from command line
Date Mon, 26 Jun 2017 15:35:00 GMT

    [ https://issues.apache.org/jira/browse/MRELEASE-985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16063261#comment-16063261
] 

Petar Tahchiev commented on MRELEASE-985:
-----------------------------------------

I have created a pull-request here: https://github.com/apache/maven-release/pull/18/

> 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
>
> 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
(v6.4.14#64029)

Mime
View raw message