[prev in list] [next in list] [prev in thread] [next in thread]
List: maven-user
Subject: Re: Maven Release Plugin Unexpected Behaviour
From: Stephen Connolly <stephen.alan.connolly () gmail ! com>
Date: 2014-10-23 12:06:34
Message-ID: CA+nPnMzJva8aTrwpH0DoCLWaUn7wiOKFQEF+ynMyxXq_Uzdwpw () mail ! gmail ! com
[Download RAW message or body]
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.1</version>
</plugin>
does the job
as does
mvn org.apache.maven.plugins:maven-release-plugin:2.5.1:prepare
org.apache.maven.plugins:maven-release-plugin:2.5.1:perform
On 23 October 2014 09:51, Vlad Slepukhin <slp.vld@gmail.com> wrote:
> Hello!
>
> I has already posted this question to StackOverflow, though I didn't get
> much help (expect warning about git requirements for 2.5.x version).
>
> The thing is that I'm trying to set up our project deployment to Nexus
> process via release-plugin. My script is:
>
> git checkout -b release-${RELEASE_VERSION}
> mvn org.apache.maven.plugins:maven-release-plugin:2.4.2:prepare
> -DautoVersionSubmodules=true
> -DdevelopmentVersion=${RELEASE_VERSION}.1-SNAPSHOT -DpushChanges=true
> -DreleaseVersion=${RELEASE_VERSION}.0 -Dtag=v${RELEASE_VERSION}.0
> mvn org.apache.maven.plugins:maven-release-plugin:2.4.2:perform
>
> The problem is: if this plugin (and its SCM dependency) is not added to
> the main project pom, it is going to push your artifact to snapshot
> repository with wrong name and WONT'T push updates to your branch.
>
> It seems to repeat this problem:
> https://jira.codehaus.org/browse/MRELEASE-812
>
> However, it was closed in 1.9.1 of maven-scm-provider-gitexe, which I'm
> using right now.
>
> Any ideas on solving this issue without adding next lines to main pom:
>
> <plugin>
> <artifactId>maven-release-plugin</artifactId>
> <version>2.4.2</version>
> <dependencies>
> <dependency>
> <groupId>org.apache.maven.scm</groupId>
> <artifactId>maven-scm-provider-gitexe</artifactId>
> <version>1.9.2</version>
> </dependency>
> </dependencies>
> </plugin>
>
> --
> Kind Regards,
> Vlad Slepukhin
>
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic