Re: Maven Release Plugin Message Format

2019-11-01 Thread Hervé BOUTEMY
looks like there is WIP on that:
https://issues.apache.org/jira/browse/MRELEASE-980
Help welcome (testing, providing feedback, ...)

Regards,

Hervé

Le jeudi 31 octobre 2019, 02:31:47 CET Scott Rossillo a écrit :
> We're using the maven-release-plugin and all our tags end up looking like:
> 
> vX.Y.Z copy for tag vX.Y.Z
> 
> With git "copy for tag" is pretty nonsensical. Preferably, the message
> would be "Release X.Y.Z". I looked at the source code and see the actual
> tagging is delegated to another package, org.apache.maven.shared.release.
> 
> Anyway, is there a way to override the commit message and if not, which
> component should a ticket be file or suggested change be recommended to?
> 
> Best,
> 
> Scott





-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven Release Plugin Message Format

2019-11-01 Thread Mark Prins
don' t recall any commits like that, generally I see that the last commit
in a tag is "[maven-release-plugin] prepare release

..."
and in my master branch I see "[maven-release-plugin] prepare release
..."
and then "[maven-release-plugin] prepare for next development iteration

"

looking at
https://maven.apache.org/maven-release/maven-release-plugin/prepare-mojo.html
there
seems to be no option to do what you want.
-M

Op do 31 okt. 2019 om 09:12 schreef Scott Rossillo :

> We're using the maven-release-plugin and all our tags end up looking like:
>
> vX.Y.Z copy for tag vX.Y.Z
>
> With git "copy for tag" is pretty nonsensical. Preferably, the message
> would be "Release X.Y.Z". I looked at the source code and see the actual
> tagging is delegated to another package, org.apache.maven.shared.release.
>
> Anyway, is there a way to override the commit message and if not, which
> component should a ticket be file or suggested change be recommended to?
>
> Best,
>
> Scott
>


-- 
Disclaimer;
This message is just a reflection of what I thought at the time of sending.
The message may contain information that is not intended for you or that
you don't understand.


Re: [maven-release-plugin] Passing additional parameters

2018-05-18 Thread Naveen Swamy
Hi Robert,

Thanks for your response. After a lot of trial-error, I figured to just
what said here:
https://github.com/nswamy/incubator-mxnet/blob/v1.2.0/Makefile#L599

-Naveen

On Fri, May 18, 2018 at 12:27 PM, Robert Scholte 
wrote:

> Hi,
>
> this is the important part of the commandline that tricked you:
> -Darguments=-DskipTests
>
> so -DskipTests is the only argument being passed. If you want to add more,
> you need to quote them, e.g
>
> -Darguments="-DskipTests -Dkey=value"
>
> I noticed -Dcxx="$(CXX)" already has quotes, so you need to escape the
> those.
>
> thanks,
> Robert
>
>
> On Thu, 17 May 2018 23:20:59 +0200, Naveen Swamy 
> wrote:
>
> Hello there,
>>
>> I have a question regarding maven release plugin. We use codehaus
>> native-plugin to build jni, I want to pass the cflags during release
>> phase.
>> However I see that I am unable to pass any of the arguments through
>> release
>> plugin. Any experience or pointers would help
>> this is mvn command which we call through a makefile similar to
>> https://github.com/apache/incubator-mxnet/blob/48d60908a1fa4
>> 2364a829ac90133d28dd0998219/Makefile#L579
>> ```
>> scalareleasedryrun:
>> (cd $(ROOTDIR)/scala-package; \
>> mvn -X release:prepare -DdryRun=true -DautoVersionSubmodules=true \
>> -P$(SCALA_PKG_PROFILE),$(SCALA_VERSION_PROFILE) \
>> -Darguments=-DskipTests -Dcxx="$(CXX)" \
>> -Drelease.cflags="$(CFLAGS)" -Dldflags="$(LDFLAGS)" \
>> -Dlddeps="$(LIB_DEP) $(ROOTDIR)/lib/libmxnet.a")
>> ```
>> The parent pom file is here
>> https://github.com/apache/incubator-mxnet/blob/master/scala-
>> package/pom.xml
>> and the pom file to compile native code is here
>> https://github.com/apache/incubator-mxnet/blob/master/scala-
>> package/init-native/osx-x86_64/pom.xml#L59
>>
>> I see that cflags variable used in the native pom.xml is coming as null
>> ```
>> [INFO] [INFO] --- native-maven-plugin:1.0-alpha-9:compile
>> (default-compile)
>> @ libmxnet-init-scala-osx-x86_64 ---
>> [INFO] [DEBUG] Configuring mojo
>> org.codehaus.mojo:native-maven-plugin:1.0-alpha-9:compile from plugin
>> realm
>> ClassRealm[extension>org.codehaus.mojo:native-maven-plugin:1.0-alpha-9,
>> parent: sun.misc.Launcher$AppClassLoader@42a57993]
>> [INFO] [DEBUG] Configuring mojo
>> 'org.codehaus.mojo:native-maven-plugin:1.0-alpha-9:compile' with basic
>> configurator -->
>> [INFO] [DEBUG]   (f) compilerEndOptions = [-I../../../include, null]
>> [INFO] [DEBUG]   (f) compilerOutputDirectory =
>> /Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/scal
>> a-package/init-native/osx-x86_64/target/objs
>> [INFO] [DEBUG]   (f) compilerProvider = generic-classic
>> [INFO] [DEBUG]   (f) compilerStartOptions = [-std=c++0x]
>> [INFO] [DEBUG]   (f) dependencyIncludeDirectory =
>> /Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/scal
>> a-package/init-native/osx-x86_64/target/native/include
>> [INFO] [DEBUG]   (f) javahOS = darwin
>> [INFO] [DEBUG]   (f) jdkIncludePath =
>> /Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/
>> Home/jre/../include
>> [INFO] [DEBUG]   (f) numberOfConcurrentCompilation = 1
>> [INFO] [DEBUG]   (f) project = MavenProject:
>> org.apache.mxnet:libmxnet-init-scala-osx-x86_64:1.2.0-SNAPSHOT @
>> /Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/scal
>> a-package/init-native/osx-x86_64/pom.xml
>> [INFO] [DEBUG]   (s) directory =
>> /Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/scal
>> a-package/init-native/src/main/native
>> [INFO] [DEBUG]   (s) fileNames = [org_apache_mxnet_init_native_c_api.cc]
>> [INFO] [DEBUG]   (f) sources =
>> [org.codehaus.mojo.natives.NativeSources@1e01b195]
>> [INFO] [DEBUG]   (f) workingDirectory =
>> /Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/scal
>> a-package/init-native/osx-x86_64
>>
>> ```
>>
>> I have already tried pass with -Darguments, create properties
>> corresponding
>> to the flags, etc.,
>>
>>
>> Appreciate pointers and advise?
>>
>> -Naveen
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: [maven-release-plugin] Passing additional parameters

2018-05-18 Thread Robert Scholte

Hi,

this is the important part of the commandline that tricked you:
-Darguments=-DskipTests

so -DskipTests is the only argument being passed. If you want to add more,  
you need to quote them, e.g


-Darguments="-DskipTests -Dkey=value"

I noticed -Dcxx="$(CXX)" already has quotes, so you need to escape the  
those.


thanks,
Robert

On Thu, 17 May 2018 23:20:59 +0200, Naveen Swamy   
wrote:



Hello there,

I have a question regarding maven release plugin. We use codehaus
native-plugin to build jni, I want to pass the cflags during release  
phase.
However I see that I am unable to pass any of the arguments through  
release

plugin. Any experience or pointers would help
this is mvn command which we call through a makefile similar to
https://github.com/apache/incubator-mxnet/blob/48d60908a1fa42364a829ac90133d28dd0998219/Makefile#L579
```
scalareleasedryrun:
(cd $(ROOTDIR)/scala-package; \
mvn -X release:prepare -DdryRun=true -DautoVersionSubmodules=true \
-P$(SCALA_PKG_PROFILE),$(SCALA_VERSION_PROFILE) \
-Darguments=-DskipTests -Dcxx="$(CXX)" \
-Drelease.cflags="$(CFLAGS)" -Dldflags="$(LDFLAGS)" \
-Dlddeps="$(LIB_DEP) $(ROOTDIR)/lib/libmxnet.a")
```
The parent pom file is here
https://github.com/apache/incubator-mxnet/blob/master/scala-package/pom.xml
and the pom file to compile native code is here
https://github.com/apache/incubator-mxnet/blob/master/scala-package/init-native/osx-x86_64/pom.xml#L59

I see that cflags variable used in the native pom.xml is coming as null
```
[INFO] [INFO] --- native-maven-plugin:1.0-alpha-9:compile  
(default-compile)

@ libmxnet-init-scala-osx-x86_64 ---
[INFO] [DEBUG] Configuring mojo
org.codehaus.mojo:native-maven-plugin:1.0-alpha-9:compile from plugin  
realm

ClassRealm[extension>org.codehaus.mojo:native-maven-plugin:1.0-alpha-9,
parent: sun.misc.Launcher$AppClassLoader@42a57993]
[INFO] [DEBUG] Configuring mojo
'org.codehaus.mojo:native-maven-plugin:1.0-alpha-9:compile' with basic
configurator -->
[INFO] [DEBUG]   (f) compilerEndOptions = [-I../../../include, null]
[INFO] [DEBUG]   (f) compilerOutputDirectory =
/Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/scala-package/init-native/osx-x86_64/target/objs
[INFO] [DEBUG]   (f) compilerProvider = generic-classic
[INFO] [DEBUG]   (f) compilerStartOptions = [-std=c++0x]
[INFO] [DEBUG]   (f) dependencyIncludeDirectory =
/Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/scala-package/init-native/osx-x86_64/target/native/include
[INFO] [DEBUG]   (f) javahOS = darwin
[INFO] [DEBUG]   (f) jdkIncludePath =
/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/jre/../include
[INFO] [DEBUG]   (f) numberOfConcurrentCompilation = 1
[INFO] [DEBUG]   (f) project = MavenProject:
org.apache.mxnet:libmxnet-init-scala-osx-x86_64:1.2.0-SNAPSHOT @
/Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/scala-package/init-native/osx-x86_64/pom.xml
[INFO] [DEBUG]   (s) directory =
/Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/scala-package/init-native/src/main/native
[INFO] [DEBUG]   (s) fileNames = [org_apache_mxnet_init_native_c_api.cc]
[INFO] [DEBUG]   (f) sources =
[org.codehaus.mojo.natives.NativeSources@1e01b195]
[INFO] [DEBUG]   (f) workingDirectory =
/Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/scala-package/init-native/osx-x86_64

```

I have already tried pass with -Darguments, create properties  
corresponding

to the flags, etc.,


Appreciate pointers and advise?

-Naveen


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release plugin

2018-03-01 Thread Mark Derricutt
On 1 Mar 2018, at 23:18, Matthew Broadhead wrote:

> Thanks Mark.  looks easy enough.  i may try a maven plugin first though as i 
> like the idea of maven controlling all the git pushes etc

I tend to NOT let maven do the git pushes, for the cases we're doing releases 
on a hot fix, or a support branch - where there is no release branch, and not 
necessarily any back merging, we've found it's easier to just let maven do the 
release on the current branch, and leave any branching/merging to an outside 
force.

On hot fix/support branches we just do a standard `mvn release:prepare 
release:perform`.

Mark


---
"The ease with which a change can be implemented has no relevance at all to 
whether it is the right change for the (Java) Platform for all time." — 
Mark Reinhold.

Mark Derricutt
http://www.theoryinpractice.net
http://www.chaliceofblood.net
http://plus.google.com/+MarkDerricutt
http://twitter.com/talios
http://facebook.com/mderricutt


signature.asc
Description: OpenPGP digital signature


Re: maven release plugin

2018-03-01 Thread Matthew Broadhead

ah i missed the  around the parameters.  it works now

On 01/03/2018 11:22, Matthew Broadhead wrote:
thanks Stephen.  i will give this one a look too.  it looks almost 
identical to jgitflow-maven-plugin.


i have had problems testing jgitflow.  it seems even if i add the 
configuration parameter 
development it still creates a 
branch "develop".  also after release-finish it doesn't delete the 
release branch.  also are these plugins only supposed to be run from 
the master branch?


On 01/03/2018 08:25, Stephen Coy wrote:
I have been using https://github.com/aleksandr-m/gitflow-maven-plugin 
 and found that 
it works quite sweetly.


… and it is being actively maintained.

Cheers,

Steve C

On 1 Mar 2018, at 12:56 am, Ben Tatham  
wrote:


Sounds like you're using gitflow (master, develop, feature/* 
branches).  If
so, we use the jgitflow-maven-plugin instead of 
maven-release-plugin, which
handles these transitions and the inherent conflicts caused by the 
maven

versioning.

Unfortunately, the maintainer is no longer working on it (and says 
he's not

even working in java anymore), but it still works well.

https://bitbucket.org/atlassian/jgit-flow/wiki/Home

On Wed, Feb 28, 2018 at 7:18 AM Matthew Broadhead <
matthew.broadh...@nbmlaw.co.uk> wrote:


hi,
not sure if this is the correct place to ask questions about the maven
release plugin
i am trying to set my snapshots and releases properly
i am using git with a master branch and a development branch
how do i work in the snapshot on development and then tag the releases
to master?
if you know any good tutorials online that would help as i tried a few
but they didn't fit my case

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

--

--
Ben Tatham
Software Architect

*Nano**metrics* *Inc.*

Ottawa * I*  Calgary  *I*  Houston  *I*  Beijing

T: +1 613 505 5065  *I*  bentat...@nanometrics.ca
www.nanometrics.ca  *I  *www.microseismicmonitoring.com

This message is intended exclusively for the individual or entity to 
which

it is addressed. This communication may contain information that is
proprietary, privileged, confidential or otherwise legally exempt from
disclosure. If you are not the named addressee, or have been 
inadvertently
and erroneously referenced in the address line, you are not 
authorized to
read, print, retain, copy or disseminate this message or any part of 
it. If

you have received this message in error, please notify the sender
immediately by e-mail and delete all copies of the message.





-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release plugin

2018-03-01 Thread Matthew Broadhead
thanks Stephen.  i will give this one a look too.  it looks almost 
identical to jgitflow-maven-plugin.


i have had problems testing jgitflow.  it seems even if i add the 
configuration parameter 
development it still creates a 
branch "develop".  also after release-finish it doesn't delete the 
release branch.  also are these plugins only supposed to be run from the 
master branch?


On 01/03/2018 08:25, Stephen Coy wrote:

I have been using https://github.com/aleksandr-m/gitflow-maven-plugin 
 and found that it works 
quite sweetly.

… and it is being actively maintained.

Cheers,

Steve C


On 1 Mar 2018, at 12:56 am, Ben Tatham  wrote:

Sounds like you're using gitflow (master, develop, feature/* branches).  If
so, we use the jgitflow-maven-plugin instead of maven-release-plugin, which
handles these transitions and the inherent conflicts caused by the maven
versioning.

Unfortunately, the maintainer is no longer working on it (and says he's not
even working in java anymore), but it still works well.

https://bitbucket.org/atlassian/jgit-flow/wiki/Home

On Wed, Feb 28, 2018 at 7:18 AM Matthew Broadhead <
matthew.broadh...@nbmlaw.co.uk> wrote:


hi,
not sure if this is the correct place to ask questions about the maven
release plugin
i am trying to set my snapshots and releases properly
i am using git with a master branch and a development branch
how do i work in the snapshot on development and then tag the releases
to master?
if you know any good tutorials online that would help as i tried a few
but they didn't fit my case

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

--

--
Ben Tatham
Software Architect

*Nano**metrics* *Inc.*

Ottawa * I*  Calgary  *I*  Houston  *I*  Beijing

T: +1 613 505 5065  *I*  bentat...@nanometrics.ca
www.nanometrics.ca  *I  *www.microseismicmonitoring.com

This message is intended exclusively for the individual or entity to which
it is addressed. This communication may contain information that is
proprietary, privileged, confidential or otherwise legally exempt from
disclosure. If you are not the named addressee, or have been inadvertently
and erroneously referenced in the address line, you are not authorized to
read, print, retain, copy or disseminate this message or any part of it. If
you have received this message in error, please notify the sender
immediately by e-mail and delete all copies of the message.





-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release plugin

2018-03-01 Thread Matthew Broadhead
Thanks Mark.  looks easy enough.  i may try a maven plugin first though 
as i like the idea of maven controlling all the git pushes etc


On 01/03/2018 05:05, Mark Derricutt wrote:


On 1 Mar 2018, at 2:56, Ben Tatham wrote:

Sounds like you're using gitflow (master, develop, feature/*
branches). If
so, we use the jgitflow-maven-plugin instead of
maven-release-plugin, which
handles these transitions and the inherent conflicts caused by the
maven
versioning.

Unfortunately, the maintainer is no longer working on it (and says
he's not
even working in java anymore), but it still works well.

For my own git-flow based releases I have the following 
|git-mvnrelease| script I have on the path:


|
#!/bin/sh
if  ! git diff-index --quiet HEAD --;then
 echo  "Git is dirty, clean up your mess!"
 exit  1
fi

VERSION=`xml sel -Nx="http://maven.apache.org/POM/4.0.0";  -t 
-v"/x:project/x:version"  pom.xml`
BASEVERSION=${VERSION%-SNAPSHOT}
ARTIFACTID=`xml sel -Nx="http://maven.apache.org/POM/4.0.0";  -t 
-v"/x:project/x:artifactId"  pom.xml`

echo  "Removing non-scm files..."
git clean -fdi

echo  "Checking master branch for updates..."
git checkout master
git pull origin master

git flow release start$BASEVERSION  &&  mvn release:prepare release:perform&&  git flow release 
finish -n$BASEVERSION  &&  git push origin&&  git push origin --tags
|

This first checks my working directory is clean, just for safety, 
extracts the pom.xml version for use in branch/tag names. Switches to 
my |master| branch and makes sure it's up to date, then does a batch 
release/push.


I don't think I've ever had any issues with maven versioning, unless 
the version number as part of the release/merge has changed to 
something unexpected.


YMMV
Mark



"The ease with which a change can be implemented has no relevance at 
all to whether it is the right change for the (Java) Platform for all 
time." — Mark Reinhold.


Mark Derricutt
http://www.theoryinpractice.net
http://www.chaliceofblood.net
http://plus.google.com/+MarkDerricutt
http://twitter.com/talios
http://facebook.com/mderricutt




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release plugin

2018-02-28 Thread Stephen Coy
I have been using https://github.com/aleksandr-m/gitflow-maven-plugin 
 and found that it works 
quite sweetly.

… and it is being actively maintained.

Cheers,

Steve C

> On 1 Mar 2018, at 12:56 am, Ben Tatham  wrote:
> 
> Sounds like you're using gitflow (master, develop, feature/* branches).  If
> so, we use the jgitflow-maven-plugin instead of maven-release-plugin, which
> handles these transitions and the inherent conflicts caused by the maven
> versioning.
> 
> Unfortunately, the maintainer is no longer working on it (and says he's not
> even working in java anymore), but it still works well.
> 
> https://bitbucket.org/atlassian/jgit-flow/wiki/Home
> 
> On Wed, Feb 28, 2018 at 7:18 AM Matthew Broadhead <
> matthew.broadh...@nbmlaw.co.uk> wrote:
> 
>> hi,
>> not sure if this is the correct place to ask questions about the maven
>> release plugin
>> i am trying to set my snapshots and releases properly
>> i am using git with a master branch and a development branch
>> how do i work in the snapshot on development and then tag the releases
>> to master?
>> if you know any good tutorials online that would help as i tried a few
>> but they didn't fit my case
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>> 
>> --
> -- 
> Ben Tatham
> Software Architect
> 
> *Nano**metrics* *Inc.*
> 
> Ottawa * I*  Calgary  *I*  Houston  *I*  Beijing
> 
> T: +1 613 505 5065  *I*  bentat...@nanometrics.ca
> www.nanometrics.ca  *I  *www.microseismicmonitoring.com
> 
> This message is intended exclusively for the individual or entity to which
> it is addressed. This communication may contain information that is
> proprietary, privileged, confidential or otherwise legally exempt from
> disclosure. If you are not the named addressee, or have been inadvertently
> and erroneously referenced in the address line, you are not authorized to
> read, print, retain, copy or disseminate this message or any part of it. If
> you have received this message in error, please notify the sender
> immediately by e-mail and delete all copies of the message.



Re: maven release plugin

2018-02-28 Thread Mark Derricutt
On 1 Mar 2018, at 2:56, Ben Tatham wrote:

> Sounds like you're using gitflow (master, develop, feature/* branches).  If
> so, we use the jgitflow-maven-plugin instead of maven-release-plugin, which
> handles these transitions and the inherent conflicts caused by the maven
> versioning.
>
> Unfortunately, the maintainer is no longer working on it (and says he's not
> even working in java anymore), but it still works well.

For my own git-flow based releases I have the following `git-mvnrelease` script 
I have on the path:

```shell
#!/bin/sh
if ! git diff-index --quiet HEAD --; then
echo "Git is dirty, clean up your mess!"
exit 1
fi

VERSION=`xml sel -N x="http://maven.apache.org/POM/4.0.0"; -t -v 
"/x:project/x:version" pom.xml`
BASEVERSION=${VERSION%-SNAPSHOT}
ARTIFACTID=`xml sel -N x="http://maven.apache.org/POM/4.0.0"; -t -v 
"/x:project/x:artifactId" pom.xml`

echo "Removing non-scm files..."
git clean -fdi

echo "Checking master branch for updates..."
git checkout master
git pull origin master

git flow release start $BASEVERSION && mvn release:prepare release:perform && 
git flow release finish -n $BASEVERSION && git push origin && git push origin 
--tags
```

This first checks my working directory is clean, just for safety, extracts the 
pom.xml version for use in branch/tag names.  Switches to my `master` branch 
and makes sure it's up to date, then does a batch release/push.

I don't think I've ever had any issues with maven versioning, unless the 
version number as part of the release/merge has changed to something unexpected.

YMMV
Mark


---
"The ease with which a change can be implemented has no relevance at all to 
whether it is the right change for the (Java) Platform for all time." — 
Mark Reinhold.

Mark Derricutt
http://www.theoryinpractice.net
http://www.chaliceofblood.net
http://plus.google.com/+MarkDerricutt
http://twitter.com/talios
http://facebook.com/mderricutt


signature.asc
Description: OpenPGP digital signature


Re: maven release plugin

2018-02-28 Thread Matthew Broadhead

thanks Ben that looks just the job

On 28/02/2018 14:56, Ben Tatham wrote:

Sounds like you're using gitflow (master, develop, feature/* branches).  If
so, we use the jgitflow-maven-plugin instead of maven-release-plugin, which
handles these transitions and the inherent conflicts caused by the maven
versioning.

Unfortunately, the maintainer is no longer working on it (and says he's not
even working in java anymore), but it still works well.

https://bitbucket.org/atlassian/jgit-flow/wiki/Home

On Wed, Feb 28, 2018 at 7:18 AM Matthew Broadhead <
matthew.broadh...@nbmlaw.co.uk> wrote:


hi,
not sure if this is the correct place to ask questions about the maven
release plugin
i am trying to set my snapshots and releases properly
i am using git with a master branch and a development branch
how do i work in the snapshot on development and then tag the releases
to master?
if you know any good tutorials online that would help as i tried a few
but they didn't fit my case

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

--



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release plugin

2018-02-28 Thread Ben Tatham
Sounds like you're using gitflow (master, develop, feature/* branches).  If
so, we use the jgitflow-maven-plugin instead of maven-release-plugin, which
handles these transitions and the inherent conflicts caused by the maven
versioning.

Unfortunately, the maintainer is no longer working on it (and says he's not
even working in java anymore), but it still works well.

https://bitbucket.org/atlassian/jgit-flow/wiki/Home

On Wed, Feb 28, 2018 at 7:18 AM Matthew Broadhead <
matthew.broadh...@nbmlaw.co.uk> wrote:

> hi,
> not sure if this is the correct place to ask questions about the maven
> release plugin
> i am trying to set my snapshots and releases properly
> i am using git with a master branch and a development branch
> how do i work in the snapshot on development and then tag the releases
> to master?
> if you know any good tutorials online that would help as i tried a few
> but they didn't fit my case
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
> --
-- 
Ben Tatham
Software Architect

*Nano**metrics* *Inc.*

Ottawa * I*  Calgary  *I*  Houston  *I*  Beijing

T: +1 613 505 5065  *I*  bentat...@nanometrics.ca
 www.nanometrics.ca  *I  *www.microseismicmonitoring.com

This message is intended exclusively for the individual or entity to which
it is addressed. This communication may contain information that is
proprietary, privileged, confidential or otherwise legally exempt from
disclosure. If you are not the named addressee, or have been inadvertently
and erroneously referenced in the address line, you are not authorized to
read, print, retain, copy or disseminate this message or any part of it. If
you have received this message in error, please notify the sender
immediately by e-mail and delete all copies of the message.


Re: maven release plugin: help page is showing a deprecated version 2.5

2015-07-31 Thread Karl Heinz Marbaise

Hi Brice,

On 7/31/15 3:56 PM, Brice Vandeputte wrote:

Hi all,

  not sure to be on the good ML but I would like to ask to one of the
maven-release-plugin leader/owner to update some help page about the plugin
version to use.


It is very good to get in contact with us to show there is something 
wrong/could be made better...and yes use the mailing list for this...


Those pages are independent documentation from the 
maven-release-plugin...but




for example, this help page is up-to-date and refers to the latest plugin
vrersion : 2.5.2

http://maven.apache.org/maven-release/maven-release-plugin/examples/prepare-release.html
(others overviews pages are ok)


Those pages are generated during the release of a version of the 
plugin...so shouldn't be a problem..but this should not mean to check if 
see issues etc. please report them...





but this one is not (refers to : 2.5)

   https://maven.apache.org/guides/mini/guide-releasing.html
   maybe this is the only one but that page was my starting point


I have fixed the page content to use the most uptodate version.

Thanks for reporting this issue..


Kind regards
Karl Heinz Marbaise




I m trying to check but I have an issue when releasing with 2.5 version :
  on "release:perform" target, maven release plugin is deploying on
snapshot repo instead of release one.
   this issue has been discussed here:

http://stackoverflow.com/questions/7332580/maven-deploys-to-snapshot-instead-of-release
and rely on this bug:
   http://jira.codehaus.org/browse/MRELEASE-875

Is it possible to update the maven site to show only to the latest version
on each page to avoid confusing (unlucky) end-users like me ;)

Regards
Thanks
Brice Vandeputte




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven-release-plugin: syntax of connectionUrl with git?

2015-05-07 Thread Mirko Friedenhagen
Hi Dan,

thanks, but this feels like a workaround as I have special profiles
defined, when performRelease is set and had defined other goals (deploy
sonar:sonar ticket:create).

Of course for a one time operation this a valid alternative. However than
we should state in the documentation of connectUrl that this is only
supported for Subversion :-) .

Regards
Mirko
-- 
Sent from my mobile
On May 7, 2015 9:30 AM, "Dan Tran"  wrote:

> try scm:bootstrap
>
> make sure to passing the required argument and profile
>
> -D
>
> On Thu, May 7, 2015 at 12:18 AM, Mirko Friedenhagen <
> mfriedenha...@gmail.com
> > wrote:
>
> > Hello,
> >
> > yesterday I already had pushed a git tag by running mvn
> > release:prepare and while I executed release:perform I remembered I
> > had the wrong settings.xml activated.
> >
> > I accidentally deleted release.properties by running release:clean.
> > Now I just wanted to run something like:
> >
> > mvn release-plugin:perform
> > -DconnectionUrl=scm:svn:
> > https://svn.mycompany.com/repos/path/to/myproject/tags/myproject-1.2.3
> >
> > as outlined at
> >
> http://maven.apache.org/maven-release/maven-release-plugin/examples/perform-release.html
> > .
> >
> > But I did not find the correct syntax for GIT. In the end, I created a
> > release.properties with the content scm.tag=myproject-1.2.3 and could
> > run
> > mvn release-plugin:perform
> > -DconnectionUrl=scm:git:git://github.com/ORG/PROJ.git
> >
> > Is there a way to specify the scm.tag on the CLI? I tried
> release.scm.tag.
> >
> >
> > Regards Mirko
> > --
> > http://illegalstateexception.blogspot.com/
> > https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen)
> > https://bitbucket.org/mfriedenhagen/
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >
>


Re: maven-release-plugin: syntax of connectionUrl with git?

2015-05-07 Thread Dan Tran
try scm:bootstrap

make sure to passing the required argument and profile

-D

On Thu, May 7, 2015 at 12:18 AM, Mirko Friedenhagen  wrote:

> Hello,
>
> yesterday I already had pushed a git tag by running mvn
> release:prepare and while I executed release:perform I remembered I
> had the wrong settings.xml activated.
>
> I accidentally deleted release.properties by running release:clean.
> Now I just wanted to run something like:
>
> mvn release-plugin:perform
> -DconnectionUrl=scm:svn:
> https://svn.mycompany.com/repos/path/to/myproject/tags/myproject-1.2.3
>
> as outlined at
> http://maven.apache.org/maven-release/maven-release-plugin/examples/perform-release.html
> .
>
> But I did not find the correct syntax for GIT. In the end, I created a
> release.properties with the content scm.tag=myproject-1.2.3 and could
> run
> mvn release-plugin:perform
> -DconnectionUrl=scm:git:git://github.com/ORG/PROJ.git
>
> Is there a way to specify the scm.tag on the CLI? I tried release.scm.tag.
>
>
> Regards Mirko
> --
> http://illegalstateexception.blogspot.com/
> https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen)
> https://bitbucket.org/mfriedenhagen/
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: maven-release-plugin / SVN credentials

2015-03-27 Thread Robert Scholte

Hi Sebastian,

since your issue has to do with svn, one needs to look at the Maven SCM  
project.[1]
That's what the maven-release-plugin is using to the commits, tags and  
checkouts.
First ensure you've locked the version of the maven-release-plugin,  
preferably the lastest (i.e. 2.5.1).
If you run the plugin with logging level set to debug (by adding the -X  
argument) you'll see the commandline
which is executed. You should be able to do the same (do strip off the  
cmdshell specific part). That should give you the same exception and might  
give you a hint how this could be fixed.


Verify if it is a knows issue in Jira[2], sometimes such issues give extra  
info.


Verify the SCM Subversion page[3], it also describes some additional  
configuration.


If this can't be solved by commandline, then there's a svnjava  
implementation which you could use[4].


thanks,
Robert

[1] http://maven.apache.org/scm/maven-scm-providers/index.html
[2] http://jira.codehaus.org/browse/SCM/component/11191
[3] http://maven.apache.org/scm/subversion.html
[4]  
https://code.google.com/a/apache-extras.org/p/maven-scm-provider-svnjava/wiki/Usage


Op Thu, 26 Mar 2015 08:20:31 +0100 schreef Sebastian Oerding  
:



Hello,

I have a problem with the maven-release-plugin using the SVN credentials  
(details below). I always get an SVN authorization error. It seems that  
the release plugin does not use the existing credentials. Unfortunately  
I'm even not sure whether it is a problem of the maven-release-plugin or  
SVN. How can I check / get a log which credentials / whether credentials  
are actually used?


Please explain me how an installed SVN is used (SlikSvn and Tortoise SVN  
installed, both with version 1.8 of the subversion protocol).


Details:
I'm in a company where we have Windows 7, 64 bit systems and an Active  
Directory for Single Sign On (This Windows Kerberos / NTLM like stuff).


The maven-release-plugin worked fine until switching from subversion 1.6  
to subversion 1.8. However I had exactly the same problem last month  
after the monthly password change. Surprisingly I was able to get this  
solved by making a single commit with Tortoise SVN providing the  
credentials (and choosing Tortoise to save them). However after my  
laptop has been renewed the same problem occurs again and I can not  
solve it using the same trick as before.


Using Google I found a lot of posts on stackoverflow and similar stuff  
where users report a problem with the maven-release-plugin and SVN  
credentials. However all of the solutions presented are unacceptable to  
me or do not solve my problem. For example I can not store my company  
wide password in some file which is checked into the SVN. Providing the  
parameters for each invocation of the maven-release-plugin adjusting  
them every month would also be somehow risky. At least it would be  
error-prone - every time when I forget to adjust the password after a  
monthly change I have to rollback the release, clean up the project,  
adjust the settings and try again.


In my previous setup where I was able to solve the problem by a Tortoise  
commit I noticed that the SVN credentials persisted under  
%USER%\AppData\Roaming\Subversion\auth changed. Before there were only  
empty directories, now there is a directory svn.simple which contains a  
text file with the SVN realm, username and so on as expected. The  
password also seems to be fine but I can not definitely say as it is  
encrypted.


Do you have any further hints on that, maybe a SVN mailing list where to  
go?


With kind regards,

Sebastian Oerding

Entwickler

Robotron Datenbank-Software GmbH
Stuttgarter Straße 29
01189 Dresden
sebastian.oerd...@robotron.de
www.robotron.de


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven Release Plugin Unexpected Behaviour

2014-10-23 Thread Stephen Connolly

maven-release-plugin
2.5.1


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  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:
>
> 
> maven-release-plugin
>2.4.2
>
>  
>org.apache.maven.scm
>maven-scm-provider-gitexe
>  1.9.2
>  
>
>  
>
> --
> Kind Regards,
> Vlad Slepukhin
>
>


Re: Maven release plugin fail during javadoc generation

2014-09-06 Thread Robert Scholte

Hi,

the plugin causing this problem must be  the maven-javadoc-plugin :)

the release:perform isn't that magic, you can do the same steps by hand:
- check out the code from tag (created by release:prepare)
- go to target/checkout
- execute "mvn deploy site-deploy" (site-deploy depends on the  
availability of a site under distributionManagement)


If you still have the target/checkout folder, run 'mvn site' and you'll  
see your project failing for the same reason as you mentioned.


There's a small difference between calling javadoc:javadoc and site. The  
first one will only get its configuration from the javadoc-plugin as  
specified in the build-section.
However, if the javadoc generation is generated as part of the site phase,  
the configuration is picked up from the reporting-section in the pom.xml.  
This can lead to different results.


Hope this helps you figuring out the real problem.

thanks,
Robert

Op Wed, 03 Sep 2014 09:22:33 +0200 schreef Sylvain Roulet  
:



Hello all,


I've a project since several years and I had not problem to build it.

I recently installed JDK1.7 on my Windows 7 and now my build fail during  
mvn

release:perform !


The build fail saying "unmappable character for encoding utf-8".

That's true as my source file are encoded in ISO-8859-1.


So I've added  ISO-8859-1 => no change

I try to use env variable : JAVA_TOOL_OPTIONS =  
-Dfile.encoding=ISO-8859-1

=> no change

true to not generate javadoc => no change...

...

and a lot of other tests


I finally realized that the option file generated in the folder
/target/checkout/target/apidocs

contains options saying that encoding is UTF-8 !


I don't think it is a maven javadoc plugin problem as if I run mvn
javadoc:javadoc, I runs successfully !


Finnaly if I use JDK 1.6 it runs perfectly... But that's not what I want  
to

do.


Does any one have any idea why options are not taking into account when
maven release:perform is executed


Thanks


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven Release Plugin and Java 8 issue

2014-09-01 Thread Robert Scholte

Hi,

I guess you configured IntelliJ to compile with Java8 instead of  
instructing Maven to do so.
Did you set the source and target in the configuration of the  
maven-compiler-plugin?[1]
It's not the maven-release-plugin which is responsible for setting the  
java source and target.


thanks,
Robert

[1]  
http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html


Op Fri, 29 Aug 2014 08:46:03 +0200 schreef Vijaysenthil Veeriah  
:



Hi
  I apologize I'm kind of new to maven and I cant figure out how  get the
Maven Release plugin to work for a Java 8 project.  I'm using  version  
2.5

(The maven compiler version is 3.1) . When i just use the compiler plugin
and do a compile it works in fact i can use most of the other plugins  
like

deploy etc but when i try to use the maven release plugin it get the
following error, I'm running this in IntelliJ and the java_home and Maven
runner are all configured to use 1.8, Also like i said if i directly
execute the maven compiler plugin, it works fine


Any help is greatly appreciated
Thanks
Vijay



The info the is spitted out Before the run

/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/bin/java
-Dmaven.home=/usr/share/apache-maven-3.2.2
-Dclassworlds.conf=/usr/share/apache-maven-3.2.2/bin/m2.conf
-Didea.launcher.port=7547  
"-Didea.launcher.bin.path=/Applications/IntelliJ

IDEA 13.app/bin" -Dfile.encoding=UTF-8 -classpath
"/usr/share/apache-maven-3.2.2/boot/plexus-classworlds-2.5.1.jar:/Applications/IntelliJ
IDEA 13.app/lib/idea_rt.jar"  
com.intellij.rt.execution.application.AppMain

org.codehaus.classworlds.Launcher -Didea.version=13.1.3 -e -X
release:prepare -DdryRun=true
Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e;
2014-06-17T06:51:42-07:00)
*Maven home: /usr/share/apache-maven-3.2.2*
*Java version: 1.8.0_05, vendor: Oracle Corporation*
*Java home:
/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre*
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.9.4", arch: "x86_64", family: "mac"



The error



 Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
(default-compile) on project : Fatal error compiling: invalid target
release: 1.8 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
(default-compile) on project : Fatal error compiling
[INFO] at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
[INFO] at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
[INFO] at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
[INFO] at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
[INFO] at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
[INFO] at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
[INFO] at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
[INFO] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
[INFO] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
[INFO] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
[INFO] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
[INFO] at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[INFO] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[INFO] at java.lang.reflect.Method.invoke(Method.java:597)
[INFO] at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
[INFO] at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
[INFO] at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
[INFO] at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[INFO] Caused by: org.apache.maven.plugin.MojoExecutionException: Fatal
error compiling
[INFO] at
org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:796)
[INFO] at
org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:129)
[INFO] at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
[INFO] at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
[INFO] ... 19 more
[INFO] Caused by: org.codehaus.plexus.compiler.CompilerException: invalid
target release: 1.8
[INFO] at
org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:191)
[INFO] at
org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(J

Re: Maven Release Plugin - release:branch: branch versions not set as expected

2014-09-01 Thread Graham Leggett
On 1 Sep 2014, at 03:21, Mark Gibson  wrote:

> Ok, thanks Robert.
> 
> Sadly this doesn't fit my expectations or needs.  I'll look to do something a 
> little more manual.

Are you perhaps mixing up tagging and branching?

What you describe sounds like what release:prepare would do.

Regards,
Graham
--


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Maven Release Plugin - release:branch: branch versions not set as expected

2014-09-01 Thread Mark Gibson
Ok, thanks Robert.

Sadly this doesn't fit my expectations or needs.  I'll look to do something a 
little more manual.

Mark

-Original Message-
From: Robert Scholte [mailto:rfscho...@apache.org] 
Sent: 29 August 2014 17:51
To: Maven Users List
Subject: Re: Maven Release Plugin - release:branch: branch versions not set as 
expected

Hi,

IMO branches are mutable, so it makes sense that this will always result in a 
-SNAPSHOT Only tags are considered immutable, so that will get a NON Snapshot.
IIRC only the versions of one of the poms will be updated, either the one 
staying on the trunk or the one moved to the branch.

thanks,
Robert

Op Fri, 29 Aug 2014 17:08:14 +0200 schreef Mark Gibson
:

> (please see bottom of email for environment/version information)
>
> I am trying to use the "release:branch" goal to create a branch, setting  
> the version in the POMs in both the new branch and the working copies.   
> No matter what properties I define on the command line, the release 
> plugin is overriding the branch version information to what it thinks 
> (incorrectly in my opinion) it should be.  It looks like the release 
> version is being set either by calculation from current project 
> version, or supplied development version.
>
> I.e.  when calling Maven with the following (snippet)
>
> -DreleaseVersion=1.0.0
> -DdevelopmentVersion=1.0.1-SNAPSHOT
> -DupdateVersionsToSnapshot=false
> -DdryRun=true
>
> The version in all the pom.xml.next files is as expected 
> (1.0.1-SNAPSHOT), but the version in all the pom.xml.branch files is 
> not as expected (1.0.1-SNAPSHOT when I would expect 1.0.0).
>
> Am I missing something that would explain why the above is correct?  
> Or am I missing something obvious in how to configure the plugin to 
> work as expected?
>
> (I've included a very simple repro in the grey breakout box below )
>
> Thanks
> Mark
>
>
>
> Very simple setup to demonstrate:
>
> Project structure
>
> |   pom.xml
> |
> +---child-one
> |   pom.xml
> |
> \---child-two
> pom.xml
>
> Root pom.xml
>
> http://maven.apache.org/POM/4.0.0";  
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";  
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd";>
>
>   4.0.0
>
>   org.gibbo
>   gibbo-pom
>   1.0-SNAPSHOT
>   pom
>   Gibbo Parent POM
>
>
>   
> child-one
> child-two
>   
>
>
>   
> UTF-8
>   
>
>
>   
> 
>   scm:git:ssh://g...@bitbucket.org/mwgibson/gibbo.git
> 
> 
>   scm:git:ssh://g...@bitbucket.org/mwgibson/gibbo.git
> 
> 
>   https://bitbucket.org/mwgibson/gibbo
> 
>   
>
>
>   
> 
>
>   
> org.apache.maven.plugins
> maven-scm-plugin
> 1.9.1
>   
>
>   
> org.apache.maven.plugins
> maven-release-plugin
> 2.5
>   
>
> 
>   
>
> 
>
> child-one pom.xml
>
> http://maven.apache.org/POM/4.0.0";  
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";  
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd";>
>
>   4.0.0
>
>   
> org.gibbo
> gibbo-pom
> 1.0-SNAPSHOT
> ../pom.xml
>   
>
>   child-one
>   pom
>   Gibbo Child One POM
>
> 
>
> child-two pom.xml
>
> http://maven.apache.org/POM/4.0.0";  
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";  
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd";>
>
>   4.0.0
>
>   
>org.gibbo
> gibbo-pom
> 1.0-SNAPSHOT
> ../pom.xml
>   
>
>   child-two
>   pom
>   Gibbo Child Two POM
>
> 
>
> Command Line
>
> mvn --batch-mode ^
> release:branch ^
> -DautoVersionSubmodules=true ^
> -DupdateBranchVersions=true ^
> -DupdateWorkingCopyVersions=true ^
> -DupdateDependencies=true ^
> -DupdateVersionsToSnapshot=false ^
> -DpushChanges=false ^
> -DremoteTagging=false ^
> -DsuppressCommitBeforeBranch=false ^
> -DbranchName=RELEASE-%1 ^
> -DreleaseVersion=%1 ^
> -DdevelopmentVersion=%2-SNAPSHOT ^
> -DdryRun=true
>
> I've tried specifying all modules independently (with the 
> -Dproject.rel.org.gibbo:child-one etc pattern), but the release 
> versions in the branch are still overridden incorrectly.
>
>
>
>
> mvn --version
> Apache Maven 3.2.2 (45f7c06d68e745d05

Re: Maven Release Plugin - release:branch: branch versions not set as expected

2014-08-29 Thread Robert Scholte

Hi,

IMO branches are mutable, so it makes sense that this will always result  
in a -SNAPSHOT

Only tags are considered immutable, so that will get a NON Snapshot.
IIRC only the versions of one of the poms will be updated, either the one  
staying on the trunk or the one moved to the branch.


thanks,
Robert

Op Fri, 29 Aug 2014 17:08:14 +0200 schreef Mark Gibson  
:



(please see bottom of email for environment/version information)

I am trying to use the "release:branch" goal to create a branch, setting  
the version in the POMs in both the new branch and the working copies.   
No matter what properties I define on the command line, the release  
plugin is overriding the branch version information to what it thinks  
(incorrectly in my opinion) it should be.  It looks like the release  
version is being set either by calculation from current project version,  
or supplied development version.


I.e.  when calling Maven with the following (snippet)

-DreleaseVersion=1.0.0
-DdevelopmentVersion=1.0.1-SNAPSHOT
-DupdateVersionsToSnapshot=false
-DdryRun=true

The version in all the pom.xml.next files is as expected  
(1.0.1-SNAPSHOT), but the version in all the pom.xml.branch files is not  
as expected (1.0.1-SNAPSHOT when I would expect 1.0.0).


Am I missing something that would explain why the above is correct?  Or  
am I missing something obvious in how to configure the plugin to work as  
expected?


(I've included a very simple repro in the grey breakout box below )

Thanks
Mark



Very simple setup to demonstrate:

Project structure

|   pom.xml
|
+---child-one
|   pom.xml
|
\---child-two
pom.xml

Root pom.xml

http://maven.apache.org/POM/4.0.0";  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";  
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0  
http://maven.apache.org/xsd/maven-4.0.0.xsd";>


  4.0.0

  org.gibbo
  gibbo-pom
  1.0-SNAPSHOT
  pom
  Gibbo Parent POM


  
child-one
child-two
  


  
UTF-8
  


  

  scm:git:ssh://g...@bitbucket.org/mwgibson/gibbo.git


  scm:git:ssh://g...@bitbucket.org/mwgibson/gibbo.git


  https://bitbucket.org/mwgibson/gibbo

  


  


  
org.apache.maven.plugins
maven-scm-plugin
1.9.1
  

  
org.apache.maven.plugins
maven-release-plugin
2.5
  


  



child-one pom.xml

http://maven.apache.org/POM/4.0.0";  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";  
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0  
http://maven.apache.org/xsd/maven-4.0.0.xsd";>


  4.0.0

  
org.gibbo
gibbo-pom
1.0-SNAPSHOT
../pom.xml
  

  child-one
  pom
  Gibbo Child One POM



child-two pom.xml

http://maven.apache.org/POM/4.0.0";  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";  
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0  
http://maven.apache.org/xsd/maven-4.0.0.xsd";>


  4.0.0

  
   org.gibbo
gibbo-pom
1.0-SNAPSHOT
../pom.xml
  

  child-two
  pom
  Gibbo Child Two POM



Command Line

mvn --batch-mode ^
release:branch ^
-DautoVersionSubmodules=true ^
-DupdateBranchVersions=true ^
-DupdateWorkingCopyVersions=true ^
-DupdateDependencies=true ^
-DupdateVersionsToSnapshot=false ^
-DpushChanges=false ^
-DremoteTagging=false ^
-DsuppressCommitBeforeBranch=false ^
-DbranchName=RELEASE-%1 ^
-DreleaseVersion=%1 ^
-DdevelopmentVersion=%2-SNAPSHOT ^
-DdryRun=true

I've tried specifying all modules independently (with the  
-Dproject.rel.org.gibbo:child-one etc pattern), but the release versions  
in the branch are still overridden incorrectly.





mvn --version
Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e;  
2014-06-17T14:51:42+01:00)

Maven home: C:\MyProgramFiles\apache-maven-3.2.2\bin\..
Java version: 1.7.0_60, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_60\jre
Default locale: en_GB, platform encoding: Cp1252
OS name: "windows 8", version: "6.2", arch: "amd64", family: "windows"

git --version
git version 1.9.4.msysgit.1

Maven-release-plugin 2.5
Maven-scm-plugin 1.9.1



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven-release-plugin: multi module project with multiple git repositories

2014-08-06 Thread Robert Scholte
Short answer: no, that's not possible. The plugin assumes that every  
svn-folder or git-repository is a complete project with its own  
release-cycle.


thanks,
Robert

Op Wed, 06 Aug 2014 18:24:42 +0200 schreef Henning Moll :


Hi,
 i wonder if it's possible to use the maven-release-plugin for a project  
where each child project is served by a different git repository:

 root - pom.xml [stored in git1]
child1 - pom.xml [stored in git2]
child2 - pom.xml [stored in git3]

I searched the web for hours because there are some promising (?)  
comments in

https://jira.codehaus.org/browse/MRELEASE-627?focusedCommentId=247308&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-247308

Unfortunately all my experiments so far failed...

I am subscribed to the list.

Best regards
Henning


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven release plugin having trouble with transformations?

2014-05-29 Thread Laird Nelson
On Thu, May 29, 2014 at 8:48 PM, Laird Nelson  wrote:

> Sure enough, I'm never seeing a git commit operation (with -X turned on).
>  How can I get commits to start working again?  Am I overlooking an option?
>

Upgrading the maven-release-plugin version to 2.5 caused commit operations
to start being issued again and I was (finally) able to perform a release
in the same way I've been performing them for years prior.

Other readers: do kindly check your own maven-release-plugin version
stanzas and make sure you're not using version 2.4.2.  When operating the
Apple git client, commits are never sent and you will release the wrong
thing with no errors.

Best,
Laird

-- 
http://about.me/lairdnelson


Re: Maven release plugin having trouble with transformations?

2014-05-29 Thread Laird Nelson
On Thu, May 29, 2014 at 8:15 PM, Laird Nelson  wrote:

> It is as though the transformation is not being committed properly.
>

Sure enough, I'm never seeing a git commit operation (with -X turned on).
 How can I get commits to start working again?  Am I overlooking an option?

[INFO] Checking in modified POMs...
[INFO] Executing: /bin/sh -c cd /Users/ljnelson/Projects/github/nomen &&
git add -- pom.xml
[INFO] Working directory: /Users/ljnelson/Projects/github/nomen
[INFO] Executing: /bin/sh -c cd /Users/ljnelson/Projects/github/nomen &&
git status
[INFO] Working directory: /Users/ljnelson/Projects/github/nomen
[DEBUG] On branch master
[DEBUG] Your branch is up-to-date with 'origin/master'.
[DEBUG]
[DEBUG] Changes to be committed:
[DEBUG]   (use "git reset HEAD ..." to unstage)
[DEBUG]
[DEBUG] modified:   pom.xml
[DEBUG]
[DEBUG] Untracked files:
[DEBUG]   (use "git add ..." to include in what will be committed)
[DEBUG]
[DEBUG] pom.xml.releaseBackup
[DEBUG] release.properties
[DEBUG]
[INFO] Tagging release with the label nomen-1.0.6...
[DEBUG] ScmTagPhase :: scmTagParameters remotingTag true
[DEBUG] ScmTagPhase :: scmTagParameters scmRevision null
[DEBUG] ScmTagPhase :: fileSet  basedir =
/Users/ljnelson/Projects/github/nomen; files = []
[INFO] Executing: /bin/sh -c cd /Users/ljnelson/Projects/github/nomen &&
git tag -F
/var/folders/6q/r_047dp54lxdh5w7zhcg8044gn/T/maven-scm-174490540.commit
nomen-1.0.6

Best,
Laird

-- 
http://about.me/lairdnelson


Re: Maven release plugin having trouble with transformations?

2014-05-29 Thread Laird Nelson
On Thu, May 29, 2014 at 7:52 PM, Laird Nelson  wrote:

> Now, on a particular project on GitHub, it is incorrectly transforming my
> pom.xml and attempting to release the project as a snapshot.
>

Whittling this down a bit, it looks like the transformation works properly,
because after transformation, the release plugin runs a build, and I can
see in that build that the version is correct (i.e. non-SNAPSHOT).

It appears to be in what is selected for tagging.  The thing that is tagged
(and then checked out later, and then released/deployed) is my original
development pom.xml.

It is as though the transformation is not being committed properly, or that
the tag is being misapplied.  All the other mysterious screwed-up behavior
descends from here.

What could account for this?  Why now?  Is there something GitHub-related
that might have changed (though that seems wrong)?

Best,
Laird

-- 
http://about.me/lairdnelson


Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-29 Thread Ron Wheeler

You don't mention Release Candidate of Milestone Releases.
It seems that some of the versions that are going through to integration 
and end-user testing might fit these categories.
These were mentioned earlier in this thread but seemed to have been 
skipped in the discussion as your process got better described.


Ron

On 29/03/2014 12:50 AM, ghostwolf59 wrote:

So if I understand correctly you want to use SNAPSHOTs because:
- you don't want the artifact to end up in the "releases"-repository yes,

correct


because QA needs to be done first

Not quite - occasionally projects (still in development state but nearing
its end) engage formal internal test teams to conduct tests against what
they delivered (these tests involve performance, integration as well as
functional tests)
All this takes place in an *non* locked down SIT env.
Our formal Archiva release repository is technically not used for other than
resources that is deemed well behaved that passed internal unit tests,
system integration and in some cases systems that have gone through formal
tests by test teams that received a signed off by the internal test team.
Once a delivery has been signed off the official release id done (into our
releases repo) - this release is then pushed out to the locked down UAT env
where the business perform functional tests and once happy and a sign off
have been received that same release is then pushed into PROD.
So in effect our "releases" repo is only used for UAT and PROD.

Releasing a snapshot is a convenient one but I think a snapshot could be
viewed in two different ways, normal & mile stone where mile stone snapshot
releases could include all the info a formal release would include.
- The ability to release snapshot still exists under the latest plugins -
what's now gone missing is the ability to release everything that would be
generated during a formal release i.e javadoc, site info, scm branch tagging
etc.
Even if a snapshot is cleaned out I think it would be very rare occasions
where this would become a problem - the scm branch could in such case be
used to rebuild the lost snapshot release.

I think our bottom line is that we only want to see properly tested and sane
releases in our "prod state" releases repo - any such release have been
formally requested and approved by our Change Management process - snapshots
is managed by individual developers and do not go through a sign off
process.

The way we integrated Archiva, project site info and Subversion works really
well - this latest issue of not being able to build full snapshot releases
would in effect force us to change our current process - either by banning
these sort of mile stones or force developers to
1. manually branch tag the source,
2. build a local site
3. push the locally built site info out to our project web site
4. push out the snapshot to archivas snapshot repo

There's a lot that can (and honestly will) go wrong here - the earlier
version of the plugin took care of most of this (only issue being that a
developer may overwrite the release and scm version at the prompt with wrong
info)
  

What you are looking for is "staging": a concept where you release your
artifacts to the QA-repository. If they accept it, they push it to the
next repository, ... until it is pushed to the company-repository, ready
to be used by everyone.

I will look into this - seem like a sensible way to go about things

Thanks for the advice given by all

cheers



-
good @ being sucked @
--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-releasing-snapshots-tp5789837p5789950.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org





--
Ron Wheeler
President
Artifact Software Inc
email: rwhee...@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread ghostwolf59
> So if I understand correctly you want to use SNAPSHOTs because:
> - you don't want the artifact to end up in the "releases"-repository yes,  

correct

> because QA needs to be done first

Not quite - occasionally projects (still in development state but nearing
its end) engage formal internal test teams to conduct tests against what
they delivered (these tests involve performance, integration as well as
functional tests)
All this takes place in an *non* locked down SIT env.
Our formal Archiva release repository is technically not used for other than
resources that is deemed well behaved that passed internal unit tests,
system integration and in some cases systems that have gone through formal
tests by test teams that received a signed off by the internal test team.
Once a delivery has been signed off the official release id done (into our
releases repo) - this release is then pushed out to the locked down UAT env
where the business perform functional tests and once happy and a sign off
have been received that same release is then pushed into PROD.
So in effect our "releases" repo is only used for UAT and PROD.

Releasing a snapshot is a convenient one but I think a snapshot could be
viewed in two different ways, normal & mile stone where mile stone snapshot
releases could include all the info a formal release would include.
- The ability to release snapshot still exists under the latest plugins -
what's now gone missing is the ability to release everything that would be
generated during a formal release i.e javadoc, site info, scm branch tagging
etc.
Even if a snapshot is cleaned out I think it would be very rare occasions
where this would become a problem - the scm branch could in such case be
used to rebuild the lost snapshot release.

I think our bottom line is that we only want to see properly tested and sane
releases in our "prod state" releases repo - any such release have been
formally requested and approved by our Change Management process - snapshots
is managed by individual developers and do not go through a sign off
process.

The way we integrated Archiva, project site info and Subversion works really
well - this latest issue of not being able to build full snapshot releases
would in effect force us to change our current process - either by banning
these sort of mile stones or force developers to 
1. manually branch tag the source, 
2. build a local site 
3. push the locally built site info out to our project web site 
4. push out the snapshot to archivas snapshot repo

There's a lot that can (and honestly will) go wrong here - the earlier
version of the plugin took care of most of this (only issue being that a
developer may overwrite the release and scm version at the prompt with wrong
info)
 
> What you are looking for is "staging": a concept where you release your  
> artifacts to the QA-repository. If they accept it, they push it to the  
> next repository, ... until it is pushed to the company-repository, ready  
> to be used by everyone. 

I will look into this - seem like a sensible way to go about things

Thanks for the advice given by all

cheers



-
good @ being sucked @
--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-releasing-snapshots-tp5789837p5789950.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread Wayne Fay
> Let me join this thread, because that "someone" is me. As said by Stephen:
> the version handling prior to 2.4 contained several issues, so you were
> relying on a bug.

Reminds me of this classic XKCD... :)
https://xkcd.com/1172/

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread Robert Scholte

Hi,
Let me join this thread, because that "someone" is me. As said by Stephen:  
the version handling prior to 2.4 contained several issues, so you were  
relying on a bug.

This has all been done as part of MRELEASE-511[1] and related issues.

There is no such thing as a "formal SNAPSHOT": it's a formal release or a  
SNAPSHOT, not both.
If you want the release to be formal, use version patterns with alpha,  
beta, milestone or release candidate as supported by Maven (through  
Aether)[2]
If you want to  upload to the SNAPSHOT repository, just "deploy" the  
development version
If you want a tag/branch, either use release:branch, scm:branch or  
scm:tag[3]
Keep in mind: the difference in behavior between a release and a SNAPSHOT.  
And versions are considered cheap nowadays.


thanks,
Robert

[1] https://jira.codehaus.org/browse/MRELEASE-511
[2]  
http://sonatype.github.io/sonatype-aether/apidocs/org/sonatype/aether/util/version/GenericVersionScheme.html

[3] http://maven.apache.org/scm/maven-scm-plugin/

Op Fri, 28 Mar 2014 15:12:54 +0100 schreef ghostwolf59  
:



Doing it as I explained did NOT allow you to do a release or refer to it
within other resources during a legic release phase

What you triggered was a release (as if legit) to go into the snapshot  
repo
- cant see any issues with that kind of behavior and have turned out to  
be

very useful when implementing formal test signoffs where exact version
tested against become critical (mind you these test phases is done before
even taken the app to UAT - technically still in a development phase).

Allowing these "formal" snapshots releases to be released into the  
snapshot

repo can hardly affect the normal behavior of releasing local builds
(without any constraint of the build was done against committed data - as
it's currently works)

From what I hear is that someone decided to plug this "feature" =  
personally

(and form an organizational point of view I think you removed useful
functionality)

Next question: if this now is a planned move - why not allow snapshots  
(that
maven does on local uncommitted data) to be processed as if it actually  
is
somewhat legit - without open up the possibility to use this as a prod  
state

resource in the dependency sections ?





-
good @ being sucked @
--
View this message in context:  
http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-releasing-snapshots-tp5789837p5789916.html

Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread Stephen Connolly
release:branch -> yes, release:prepare -> no


On 28 March 2014 13:49, James Nord (jnord)  wrote:

> shouldn't release:branch still support this still though?
>
> If not that's bad as you will end up with a release version on the head of
> either the source branch or the new branch (and both should be used for
> ongoing development so should be snapshots...)
>
> /James
>
> > -Original Message-
> > From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
> > Sent: 28 March 2014 13:32
> > To: Maven Users List
> > Subject: Re: maven release-plugin 2.5 bug - releasing snapshots...
> >
> > Let me rephrase. The release plugin is designed to make release versions.
> > It is not designed to make -SNAPSHOT versions. It was a bug that it let
> you
> > specify a -SNAPSHOT version as the release version. The bug has been
> fixed.
> >
> >
> > On 28 March 2014 13:18, ghostwolf59
> > wrote:
> >
> > > That's a way to general statement to be made  - that also is incorrect
>   !
> > >
> > > A snapshot is not allowed for final release - but could still be
> > > released into a shapshot repo for test purposes !
> > > The question really bogs down to how much control you'd like to have
> > > against a release snapshot.
> > > Anyone can in effect release a snapshot into the remote archiva
> > > snapshot repo but no scm branch tag would take place and the source
> > > this snapshot was based on would be unknown since uncommitted data
> > > could have been used.
> > >
> > > If you go down the path of controlling this (in selected cases) you'd
> > > like to have full control over the source it represent as well be able
> > > to assess the site info linked to this release.
> > >
> > > A simple mvn deploy would not do these things - it would only promote
> > > a local build into archiva's snapshot repository - with a lot of ???
> > > to follow when it comes to QA, source control etc.
> > >
> > >
> > > I am not trying to do a "*/release/*" as such - it's a legit release
> > > of a
> > > */snapshot/* to be used for test purposed in a highly controlled
> > > manner pending official signoffs - once a signoff is received a proper
> > > release for that version would be performed.
> > >
> > > The final release would never be allowed to be a snapshot - nor would
> > > any snapshot dependencies be allowed but that's a side issue and have
> > > absolutely nothing to do with what I am arguing about.
> > >
> > > The snapshot release would end up in a dedicated snapshot repository
> > > so why you go down this path I don't really understand - bogs down to
> > > how v2.2.2 vs higher versions of the release-plugin behaves.
> > >
> > > I have now done some tests going back in history and it shows that all
> > > versions after *v.2.3.2* (my initial test was on v2.2.2) fails when it
> > > comes to this...
> > >
> > > So it appear that v 2.4 onwards all fail when it comes to this
> > >
> > > Succeeds:
> > > <
> > > http://maven.40175.n5.nabble.com/file/n5789892/release-version-
> > prompt-
> > > v.2.3.2.jpg
> > > >
> > >
> > > Failures;
> > > <
> > > http://maven.40175.n5.nabble.com/file/n5789892/release-version-
> > prompt-
> > > v.2.5-w.version.jpg
> > > >
> > >
> > > <
> > > http://maven.40175.n5.nabble.com/file/n5789892/release-version-
> > prompt-
> > > v.2.4.2.jpg
> > > >
> > >
> > > <
> > > http://maven.40175.n5.nabble.com/file/n5789892/release-version-
> > prompt-
> > > v.2.4.1.jpg
> > > >
> > >
> > > <
> > > http://maven.40175.n5.nabble.com/file/n5789892/release-version-
> > prompt-
> > > v.2.4.jpg
> > > >
> > >
> > >
> > >
> > >
> > >
> > > -
> > > good @ being sucked @
> > > --
> > > View this message in context:
> > > http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-
> > releasin
> > > g-snapshots-tp5789837p5789892.html
> > > Sent from the Maven - Users mailing list archive at Nabble.com.
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > > For additional commands, e-mail: users-h...@maven.apache.org
> > >
> > >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread Robert Scholte

So if I understand correctly you want to use SNAPSHOTs because:
- you don't want the artifact to end up in the "releases"-repository yes,  
because QA needs to be done first
- SNAPSHOTs are cleaned up automatically, so if QA doesn't accept a  
release, it's cleaned up for you.


The SNAPSHOT usage here is some kind of workaround if there would only be  
exactly 1 releases-repository. (assuming you're using a repository manager  
like Nexus, Artifactory or Archiva [1]).
However, nowadays repo manager have features to be able to cope with this  
kind of problems.
What you are looking for is "staging": a concept where you release your  
artifacts to the QA-repository. If they accept it, they push it to the  
next repository, ... until it is pushed to the company-repository, ready  
to be used by everyone.
If one of the testing departments doesn't accept a version, the stage is  
destroyed and the artifact won't be available anymore.
AFAIK all these repo managers support staging, however for some you have  
to pay. (Or there are ways to fake staging, i.e. downloading from one repo  
and uploading to the other...)


The QA should never accept that they test a SNAPSHOT. If they accept it,  
they should also test the released version, just because it is a new  
distribution.


Google a bit more for "artifact repository" + "staging", which is a proven  
concept which seems to match your requirements.


regards,
Robert

[1] http://maven.apache.org/repository-management.html


Op Fri, 28 Mar 2014 17:24:10 +0100 schreef ghostwolf59  
:



Fully agree but with a snapshot not should be treated an release.

The concept of "official snapshots" along with full site info and branch
tagging don't seem wrong where I come from.
If a project going through some stringent QA where formal test teams  
want to

keep track of what they testing against, then I think some kind of "mile
stone snapshot" have a place.

If on the other hand the only way these projects can keep track of these
"mile stones" releases, then it seem that the only option would be to
release something "official" - in effect clogging the "official" prod  
state

repo with non prod state content.

I think this bogs down to convenience - maven release process provide a  
few

steps that makes is fairly simple for developers to deal with and
distinguish between snapshot's and formal releases i.e non tagged release
without the -SNAPSHOT tag

I find it somewhat difficult to understand why earlier versions of the
maven-release-plugin allow for this when at the same time the same plugin
prevent final releases to refer to -snapshot's ?
Fair enough if a line has been drawn between snapshots and formal  
release,

but the convenience factor seem get lost in the discussion.

Exactly what is the rationale behind allowing a snapshot being released
without the site info and scm branches being created? - apart from this
being a quick release - it's not complete and auditing this release  
becomes

troublesome lacking scm branch and site info to audit.
These snapshots don;t even have to be committed back to your scm, so what
happens if test teams sign off on such milestone - at the time this is
committed back, the source may have changed.

Personally I think it would be better to release a "mile stone" snapshot
with full information (such as a scm branch and site info being generated
and deployed)

If snapshots (as a concept) is problematic then why not open up for a  
"mile

stone" snapshot concept ?
A "mile stone" released into the official releases repo is still not to  
be

treated as a release so no dependencies should be allowed to exists to
snapshot or "mile stone" ref's when you perform an official release.

Another point to make is that a snapshot repo can / and will be cleaned  
on
regular basis - after all a snapshot *or if "mile stone" snapshot is  
deemed

as short lived resources never meant for prod.

Have I got this concept completely wrong or do we need to introduce yet  
more

layers on what we have at our disposal ?

cheers





-
good @ being sucked @
--
View this message in context:  
http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-releasing-snapshots-tp5789837p5789928.html

Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread ghostwolf59
Fully agree but with a snapshot not should be treated an release.

The concept of "official snapshots" along with full site info and branch
tagging don't seem wrong where I come from.
If a project going through some stringent QA where formal test teams want to
keep track of what they testing against, then I think some kind of "mile
stone snapshot" have a place.

If on the other hand the only way these projects can keep track of these
"mile stones" releases, then it seem that the only option would be to
release something "official" - in effect clogging the "official" prod state
repo with non prod state content.

I think this bogs down to convenience - maven release process provide a few
steps that makes is fairly simple for developers to deal with and
distinguish between snapshot's and formal releases i.e non tagged release
without the -SNAPSHOT tag

I find it somewhat difficult to understand why earlier versions of the
maven-release-plugin allow for this when at the same time the same plugin
prevent final releases to refer to -snapshot's ?
Fair enough if a line has been drawn between snapshots and formal release,
but the convenience factor seem get lost in the discussion.

Exactly what is the rationale behind allowing a snapshot being released
without the site info and scm branches being created? - apart from this
being a quick release - it's not complete and auditing this release becomes
troublesome lacking scm branch and site info to audit.
These snapshots don;t even have to be committed back to your scm, so what
happens if test teams sign off on such milestone - at the time this is
committed back, the source may have changed.

Personally I think it would be better to release a "mile stone" snapshot
with full information (such as a scm branch and site info being generated
and deployed)

If snapshots (as a concept) is problematic then why not open up for a "mile
stone" snapshot concept ?
A "mile stone" released into the official releases repo is still not to be
treated as a release so no dependencies should be allowed to exists to
snapshot or "mile stone" ref's when you perform an official release.

Another point to make is that a snapshot repo can / and will be cleaned on
regular basis - after all a snapshot *or if "mile stone" snapshot is deemed
as short lived resources never meant for prod.

Have I got this concept completely wrong or do we need to introduce yet more
layers on what we have at our disposal ?

cheers





-
good @ being sucked @
--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-releasing-snapshots-tp5789837p5789928.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread James Nord (jnord)
shouldn't release:branch still support this still though?

If not that's bad as you will end up with a release version on the head of 
either the source branch or the new branch (and both should be used for ongoing 
development so should be snapshots...)

/James

> -Original Message-
> From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
> Sent: 28 March 2014 13:32
> To: Maven Users List
> Subject: Re: maven release-plugin 2.5 bug - releasing snapshots...
> 
> Let me rephrase. The release plugin is designed to make release versions.
> It is not designed to make -SNAPSHOT versions. It was a bug that it let you
> specify a -SNAPSHOT version as the release version. The bug has been fixed.
> 
> 
> On 28 March 2014 13:18, ghostwolf59
> wrote:
> 
> > That's a way to general statement to be made  - that also is incorrect   !
> >
> > A snapshot is not allowed for final release - but could still be
> > released into a shapshot repo for test purposes !
> > The question really bogs down to how much control you'd like to have
> > against a release snapshot.
> > Anyone can in effect release a snapshot into the remote archiva
> > snapshot repo but no scm branch tag would take place and the source
> > this snapshot was based on would be unknown since uncommitted data
> > could have been used.
> >
> > If you go down the path of controlling this (in selected cases) you'd
> > like to have full control over the source it represent as well be able
> > to assess the site info linked to this release.
> >
> > A simple mvn deploy would not do these things - it would only promote
> > a local build into archiva's snapshot repository - with a lot of ???
> > to follow when it comes to QA, source control etc.
> >
> >
> > I am not trying to do a "*/release/*" as such - it's a legit release
> > of a
> > */snapshot/* to be used for test purposed in a highly controlled
> > manner pending official signoffs - once a signoff is received a proper
> > release for that version would be performed.
> >
> > The final release would never be allowed to be a snapshot - nor would
> > any snapshot dependencies be allowed but that's a side issue and have
> > absolutely nothing to do with what I am arguing about.
> >
> > The snapshot release would end up in a dedicated snapshot repository
> > so why you go down this path I don't really understand - bogs down to
> > how v2.2.2 vs higher versions of the release-plugin behaves.
> >
> > I have now done some tests going back in history and it shows that all
> > versions after *v.2.3.2* (my initial test was on v2.2.2) fails when it
> > comes to this...
> >
> > So it appear that v 2.4 onwards all fail when it comes to this
> >
> > Succeeds:
> > <
> > http://maven.40175.n5.nabble.com/file/n5789892/release-version-
> prompt-
> > v.2.3.2.jpg
> > >
> >
> > Failures;
> > <
> > http://maven.40175.n5.nabble.com/file/n5789892/release-version-
> prompt-
> > v.2.5-w.version.jpg
> > >
> >
> > <
> > http://maven.40175.n5.nabble.com/file/n5789892/release-version-
> prompt-
> > v.2.4.2.jpg
> > >
> >
> > <
> > http://maven.40175.n5.nabble.com/file/n5789892/release-version-
> prompt-
> > v.2.4.1.jpg
> > >
> >
> > <
> > http://maven.40175.n5.nabble.com/file/n5789892/release-version-
> prompt-
> > v.2.4.jpg
> > >
> >
> >
> >
> >
> >
> > -
> > good @ being sucked @
> > --
> > View this message in context:
> > http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-
> releasin
> > g-snapshots-tp5789837p5789892.html
> > Sent from the Maven - Users mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread ghostwolf59
Doing it as I explained did NOT allow you to do a release or refer to it
within other resources during a legic release phase

What you triggered was a release (as if legit) to go into the snapshot repo
- cant see any issues with that kind of behavior and have turned out to be
very useful when implementing formal test signoffs where exact version
tested against become critical (mind you these test phases is done before
even taken the app to UAT - technically still in a development phase).

Allowing these "formal" snapshots releases to be released into the snapshot
repo can hardly affect the normal behavior of releasing local builds
(without any constraint of the build was done against committed data - as
it's currently works) 

>From what I hear is that someone decided to plug this "feature" = personally
(and form an organizational point of view I think you removed useful
functionality)

Next question: if this now is a planned move - why not allow snapshots (that
maven does on local uncommitted data) to be processed as if it actually is
somewhat legit - without open up the possibility to use this as a prod state
resource in the dependency sections ?





-
good @ being sucked @
--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-releasing-snapshots-tp5789837p5789916.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread Stephen Connolly
Let me rephrase. The release plugin is designed to make release versions.
It is not designed to make -SNAPSHOT versions. It was a bug that it let you
specify a -SNAPSHOT version as the release version. The bug has been fixed.


On 28 March 2014 13:18, ghostwolf59 wrote:

> That's a way to general statement to be made  - that also is incorrect   !
>
> A snapshot is not allowed for final release - but could still be released
> into a shapshot repo for test purposes !
> The question really bogs down to how much control you'd like to have
> against
> a release snapshot.
> Anyone can in effect release a snapshot into the remote archiva snapshot
> repo but no scm branch tag would take place and the source this snapshot
> was
> based on would be unknown since uncommitted data could have been used.
>
> If you go down the path of controlling this (in selected cases) you'd like
> to have full control over the source it represent as well be able to assess
> the site info linked to this release.
>
> A simple mvn deploy would not do these things - it would only promote a
> local build into archiva's snapshot repository - with a lot of ??? to
> follow
> when it comes to QA, source control etc.
>
>
> I am not trying to do a "*/release/*" as such - it's a legit release of a
> */snapshot/* to be used for test purposed in a highly controlled manner
> pending official signoffs - once a signoff is received a proper release for
> that version would be performed.
>
> The final release would never be allowed to be a snapshot - nor would any
> snapshot dependencies be allowed but that's a side issue and have
> absolutely
> nothing to do with what I am arguing about.
>
> The snapshot release would end up in a dedicated snapshot repository so why
> you go down this path I don't really understand - bogs down to how v2.2.2
> vs
> higher versions of the release-plugin behaves.
>
> I have now done some tests going back in history and it shows that all
> versions after *v.2.3.2* (my initial test was on v2.2.2) fails when it
> comes
> to this...
>
> So it appear that v 2.4 onwards all fail when it comes to this
>
> Succeeds:
> <
> http://maven.40175.n5.nabble.com/file/n5789892/release-version-prompt-v.2.3.2.jpg
> >
>
> Failures;
> <
> http://maven.40175.n5.nabble.com/file/n5789892/release-version-prompt-v.2.5-w.version.jpg
> >
>
> <
> http://maven.40175.n5.nabble.com/file/n5789892/release-version-prompt-v.2.4.2.jpg
> >
>
> <
> http://maven.40175.n5.nabble.com/file/n5789892/release-version-prompt-v.2.4.1.jpg
> >
>
> <
> http://maven.40175.n5.nabble.com/file/n5789892/release-version-prompt-v.2.4.jpg
> >
>
>
>
>
>
> -
> good @ being sucked @
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-releasing-snapshots-tp5789837p5789892.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread ghostwolf59
That's a way to general statement to be made  - that also is incorrect   ! 

A snapshot is not allowed for final release - but could still be released
into a shapshot repo for test purposes !
The question really bogs down to how much control you'd like to have against
a release snapshot.
Anyone can in effect release a snapshot into the remote archiva snapshot
repo but no scm branch tag would take place and the source this snapshot was
based on would be unknown since uncommitted data could have been used.

If you go down the path of controlling this (in selected cases) you'd like
to have full control over the source it represent as well be able to assess
the site info linked to this release.

A simple mvn deploy would not do these things - it would only promote a
local build into archiva's snapshot repository - with a lot of ??? to follow
when it comes to QA, source control etc.


I am not trying to do a "*/release/*" as such - it's a legit release of a
*/snapshot/* to be used for test purposed in a highly controlled manner
pending official signoffs - once a signoff is received a proper release for
that version would be performed.

The final release would never be allowed to be a snapshot - nor would any
snapshot dependencies be allowed but that's a side issue and have absolutely
nothing to do with what I am arguing about.

The snapshot release would end up in a dedicated snapshot repository so why
you go down this path I don't really understand - bogs down to how v2.2.2 vs
higher versions of the release-plugin behaves.

I have now done some tests going back in history and it shows that all
versions after *v.2.3.2* (my initial test was on v2.2.2) fails when it comes
to this...

So it appear that v 2.4 onwards all fail when it comes to this 

Succeeds:

 

Failures;

 


 


 


 





-
good @ being sucked @
--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-releasing-snapshots-tp5789837p5789892.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread Stephen Connolly
You do know you are not allowed to release a version containing a -SNAPSHOT
don't you?


On 28 March 2014 12:23, ghostwolf59 wrote:

> Sorry for that - I was just in the process of updating this a simple
> copy/paste mistake
>
> I am using 2.5 when the problem occur - as illustrated on the image below
>
> <
> http://maven.40175.n5.nabble.com/file/n5789868/release-version-prompt-v.2.5-w.version.jpg
> >
>
> As you can see the prompt "What is the release version for " ... keep
> coming
> back - v2.5 does not accept me overwriting this.
>
> Using v.2.2.2 allow me to overwrite this with anything that then takes me
> to
> the scm prompt and so on - which ultimately allow me to do what I really
> want.
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-releasing-snapshots-tp5789837p5789868.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread ghostwolf59
Sorry for that - I was just in the process of updating this a simple
copy/paste mistake 

I am using 2.5 when the problem occur - as illustrated on the image below


 

As you can see the prompt "What is the release version for " ... keep coming
back - v2.5 does not accept me overwriting this.

Using v.2.2.2 allow me to overwrite this with anything that then takes me to
the scm prompt and so on - which ultimately allow me to do what I really
want.



--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-releasing-snapshots-tp5789837p5789868.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread Stephen Connolly
On 28 March 2014 11:12, ghostwolf59 wrote:

> 2.2.2


Then you are not using version 2.5


Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread ghostwolf59
I don't think this issue have been rectified.

The maven release plugin I use (downloaded from maven central via my plugin)
is as follows...

This fail:


org.apache.maven.plugins
maven-release-plugin
2.2.2

{my svn url and 
path}/${project.artifactId}/releases



This work:

org.apache.maven.plugins
maven-release-plugin
2.2.2

{my svn url and 
path}/${project.artifactId}/releases




The clean - as I understand it - would ensure you always have a clean
workspace derived from the remote source at release time - removing the
chance that someone committed something between now and when I perform my
release - that makes perfect sense to me and is a good safeguard







--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-releasing-snapshots-tp5789837p5789843.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread Baptiste Mathus
Weird, many users reported the 2.5 had fixed their issues.

What (version) are you actually using for:
* maven
* maven-release-plugin (triple-check you hadn't redefined maven-scm-*
dependency somewhere)
* svn ? Git ? Something else ?

On a unrelated subject : issuing a "mvn clean install deploy" command shows
a tiny misunderstanding of how Maven works. You're asking maven to install
twice (said differently "deploy" already includes the steps from "install").

Cheers


2014-03-28 10:59 GMT+01:00 ghostwolf59 
:

> Hi,Occasionally we have a need to perform a formal release on unfinished
> work
> so it can be tracked.These snapshot releases would in effect be releases
> identical to a formal release with the exception that the snapshot for a
> set
> release is tagged with a time stamp when released into archiva's snapshot
> repository.We used to get around this by issuing the mvn clean
> release:prepare release:perform where we overwrite the proposed/suggested
> release at the prompt by qualifying the release number followed by
> appending
> "-SNAPSHOT"The build would be done identical to a formal release where the
> scm branch is created for the snapshot in  our svn source repo and the
> built
> snapshot would be released into our internal "snapshot" repo (oppose to
> formal non snapshot releases that ends up in the "releases" repo)This used
> to work really well but recently I don't seem to be able to overwrite the
> version at the prompt - when I do it simple prompts me again
> <
> http://maven.40175.n5.nabble.com/file/n5789837/release-version-prompt-v.2.5.jpg
> >
> It's a weird one - this have been proven to be working previously but
> suddenly it don't seem to work any more.The release plugin i currently use
> is v2.5 - in the past I used v 2.2.2 successfully.By reverting back to
> v2.2.2 of org.apache.maven.plugins.maven.release-plugin this work perfectly
> <
> http://maven.40175.n5.nabble.com/file/n5789837/release-version-prompt-v2.2.2.jpg
> >
> Is this a known issue and is it linked to v2.5 of the maven release plugin
> ?I can do snapshot releases using mvn clean install deploy but that would
> not branch tag the source and would not generate site infoBottom line -
> does
> anyone know how this can be done using the most recent
> maven-release-plugin?
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-releasing-snapshots-tp5789837.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> --
> Baptiste  MATHUS - http://batmat.net
> Sauvez un arbre,
> Mangez un castor ! nbsp;!


Re: Maven Release Plugin throws Authentication Required error

2014-03-06 Thread Baptiste Mathus
Hi,
First try do to that without using Jenkins at all. This is a pure maven
configuration thing. You just seem to be missing the  authentication part
(see username and password parameters maybe).

When you manage to release some dummy versions of your project, then and
only then try doing it from Jenkins or any other automated system.

Cheers
Le 6 mars 2014 15:14, "D Vijay"  a écrit :

> Dear All,
>
>
> I need help in configuring the Maven Release plugin. I am trying to
> configure the plugin in Jenkins job. I am getting authentication exception.
> For invoking maven release plugin do we need to have svn client from where
> we are invoking the release? PFA the errors & the configuration that I used
> for this.
>
> My requirement is to configure maven release plugin as follows:
>
> 1. My current version is at 1.0.0-SNAPSHOT and once testing is done and
> ready for movement to production the maven release plugin will be invoked
> from Jenkins job to move the code from branch to trunk.
> 2. The configuration has to check out the source from branch, update all
> the POMs to version 1.0.0, tag the source code and check in the code at
> trunk location. The tags folder will contain the tagged version at 1.0.0
> (as best practice we need to change the version from 1.0.0-SNAPSHOT to
> 1.0.0 once the product is ready for production, right? or while moving to
> UAT itself it should be done?).
> 3. Also, the next snapshot version will be updated to 1.0.1-SNAPSHOT(which
> is configurable in release plugin) and checked in at branch level for the
> next development.
>
> I am able to configure this, but somehow it is not working. I am getting
> authentication exception.
> svn: Authentication required for 
> '
> >'.
>
>
> Thank you,
>
> Vijay.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>


Re: maven-release-plugin updates modules with wrong versioning

2014-02-03 Thread Stephen Connolly
nevermind... wrong question that this is the answer for


On 3 February 2014 15:57, Stephen Connolly
wrote:

> are you using git 1.8.5.x?
>
>
> On 3 February 2014 15:56, Simone Tripodi  wrote:
>
>> Hi all mates,
>>
>> in Apache Oltu we have a commons modules set[1] which I am trying to cut a
>> release, but I am experiencing for the first time a strange issue: when
>> installing all modules from /trunk, versions respect what it is specified
>> in project.version field in the POM, but when releasing them, all modules
>> inherit the version from the parent.
>>
>> Can I kindly ask you an extra pair of eyes that would help me detecting
>> why
>> this is happening?
>>
>> Many thanks in advance, all the best!
>> -Simo
>>
>> [1] https://svn.apache.org/repos/asf/oltu/trunk/commons/
>>
>> http://people.apache.org/~simonetripodi/
>> http://twitter.com/simonetripodi
>>
>
>


Re: maven-release-plugin updates modules with wrong versioning

2014-02-03 Thread Stephen Connolly
are you using git 1.8.5.x?


On 3 February 2014 15:56, Simone Tripodi  wrote:

> Hi all mates,
>
> in Apache Oltu we have a commons modules set[1] which I am trying to cut a
> release, but I am experiencing for the first time a strange issue: when
> installing all modules from /trunk, versions respect what it is specified
> in project.version field in the POM, but when releasing them, all modules
> inherit the version from the parent.
>
> Can I kindly ask you an extra pair of eyes that would help me detecting why
> this is happening?
>
> Many thanks in advance, all the best!
> -Simo
>
> [1] https://svn.apache.org/repos/asf/oltu/trunk/commons/
>
> http://people.apache.org/~simonetripodi/
> http://twitter.com/simonetripodi
>


Re: maven-release-plugin oddity - no git commit under mvn 3.1.1

2013-12-09 Thread Robert Scholte

Hi,

Here's a list of the maven-release-plugin and the matching SCM versions.

m-release-plugin:2.3.2 depends on scm:1.7
m-release-plugin:2.4 depends on scm:1.8 (standard upgrade, incl. SCM-686)
m-release-plugin:2.4.1 depends on scm:1.7 (back due to MRELEASE-830,  
SCM-709 )

m-release-plugin:2.4.2 depends on scm:1.7

SCM-686 introduced the porcelain option. However, suddenly all releases  
where evaluated/tagged from the root of the repository instead of the root  
of the project. This broke a lot of projects, more compared to the  
addition of porcelain, so I decided to fall back to 1.7.
SCM-709 is probably fixed by now, but I'm still missing the feedback. I've  
closed it as part of SCM 1.9, so I'll include it with the next m-release-p.


Robert

Op Mon, 09 Dec 2013 11:56:21 +0100 schreef Olivier Lamy :


On 9 December 2013 20:48, Mark Derricutt  wrote:
I was speaking with Olivier on IRC earlier, so far I've managed to work  
around the issue by adding a  on the latest  
maven-scm-providers-gitexe inside my maven-release-plugin   
block and that seems to have resolved the issue.


Simply dropping back to 2.3.2 of the release plugin didn't help as that  
still picked up the older maven-scm version which was looking for a git  
status output starting with #.




Yup correct.
I hope we avoid such issue when using jgit provider (if it's released  
one day)



Mark

On 9 Dec 2013, at 22:00, Stephen Connolly wrote:

There is a know issue with Git and release plugin 2.4.2 and something  
to do
with SCM version bundled in Maven 3.1.1? (or maybe 3.1.x) Olivier may  
know

more.


AFAIK scm is not bundled with core.




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven-release-plugin oddity - no git commit under mvn 3.1.1

2013-12-09 Thread Olivier Lamy
On 9 December 2013 20:48, Mark Derricutt  wrote:
> I was speaking with Olivier on IRC earlier, so far I've managed to work 
> around the issue by adding a  on the latest 
> maven-scm-providers-gitexe inside my maven-release-plugin  block and 
> that seems to have resolved the issue.
>
> Simply dropping back to 2.3.2 of the release plugin didn't help as that still 
> picked up the older maven-scm version which was looking for a git status 
> output starting with #.
>

Yup correct.
I hope we avoid such issue when using jgit provider (if it's released one day)

> Mark
>
> On 9 Dec 2013, at 22:00, Stephen Connolly wrote:
>
>> There is a know issue with Git and release plugin 2.4.2 and something to do
>> with SCM version bundled in Maven 3.1.1? (or maybe 3.1.x) Olivier may know
>> more.

AFAIK scm is not bundled with core.



-- 
Olivier Lamy
Ecetera: http://ecetera.com.au
http://twitter.com/olamy | http://linkedin.com/in/olamy

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven-release-plugin oddity - no git commit under mvn 3.1.1

2013-12-09 Thread Stephen Connolly
yeah your subsequent reply where you identified the change in git behaviour
would lead to that solution...


On 9 December 2013 09:48, Mark Derricutt  wrote:

> I was speaking with Olivier on IRC earlier, so far I've managed to work
> around the issue by adding a  on the latest
> maven-scm-providers-gitexe inside my maven-release-plugin  block
> and that seems to have resolved the issue.
>
> Simply dropping back to 2.3.2 of the release plugin didn't help as that
> still picked up the older maven-scm version which was looking for a git
> status output starting with #.
>
> Mark
>
> On 9 Dec 2013, at 22:00, Stephen Connolly wrote:
>
> > There is a know issue with Git and release plugin 2.4.2 and something to
> do
> > with SCM version bundled in Maven 3.1.1? (or maybe 3.1.x) Olivier may
> know
> > more.
>


Re: maven-release-plugin oddity - no git commit under mvn 3.1.1

2013-12-09 Thread Mark Derricutt
I was speaking with Olivier on IRC earlier, so far I've managed to work around 
the issue by adding a  on the latest maven-scm-providers-gitexe 
inside my maven-release-plugin  block and that seems to have resolved 
the issue.

Simply dropping back to 2.3.2 of the release plugin didn't help as that still 
picked up the older maven-scm version which was looking for a git status output 
starting with #.

Mark

On 9 Dec 2013, at 22:00, Stephen Connolly wrote:

> There is a know issue with Git and release plugin 2.4.2 and something to do
> with SCM version bundled in Maven 3.1.1? (or maybe 3.1.x) Olivier may know
> more.


signature.asc
Description: OpenPGP digital signature


Re: maven-release-plugin oddity - no git commit under mvn 3.1.1

2013-12-09 Thread Stephen Connolly
There is a know issue with Git and release plugin 2.4.2 and something to do
with SCM version bundled in Maven 3.1.1? (or maybe 3.1.x) Olivier may know
more.


On 9 December 2013 02:40, Mark Derricutt  wrote:

> Hey all,
>
> Just encountered a strange issue with the maven-release-plugin, when doing
> a release:prepare from my machine using Maven 3.1.1, and
> maven-release-plugin 2.4.2 I get the following output:
>
> [INFO] Checking in modified POMs...
> [INFO] Executing: /bin/sh -c cd
> /Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.translation && git add
> -- pom.xml
> [INFO] Working directory:
> /Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.translation
> [INFO] Executing: /bin/sh -c cd
> /Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.translation && git
> status
> [INFO] Working directory:
> /Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.translation
> [INFO] Tagging release with the label com.smxemail.translation-13.2.9...
> [INFO] Executing: /bin/sh -c cd
> /Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.translation && git tag
> -F
> /var/folders/bq/jtxn4t511xz7l_t3t4q4c634gn/T/maven-scm-596385603.commit
> com.smxemail.translation-13.2.9
> [INFO] Working directory:
> /Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.translation
> [INFO] Executing: /bin/sh -c cd
> /Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.translation && git
> ls-files
> [INFO] Working directory:
> /Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.translation
> [INFO] Transforming 'com.smxemail.translation'...
> [INFO] Not removing release POMs
> [INFO] Checking in modified POMs...
> [INFO] Executing: /bin/sh -c cd
> /Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.translation && git add
> -- pom.xml
> [INFO] Working directory:
> /Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.translation
> [INFO] Executing: /bin/sh -c cd
> /Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.translation && git
> status
> [INFO] Working directory:
> /Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.translation
> [INFO] Release preparation complete.
> [INFO]
> 
> [INFO] BUILD SUCCESS
>
> You can see here that there are no "git commit" commands being run, this
> in turn breaks the build.
>
> A coworker who is still using Maven 3.0.4 was able to prepare and release
> the artefact fine however, so I'm wondering if there's some issue at the
> SCM layer of maven that's breaking when running under 3.1.1 that isn't an
> issue when using 3.0.4.
>
> Has anyone else seen any behaviour like this?
>
> Mark
>


Re: maven-release-plugin oddity - no git commit under mvn 3.1.1

2013-12-08 Thread Mark Derricutt
Ok - so this looks to be an issue introduced in Git 1.8.5, from
https://raw.github.com/git/git/master/Documentation/RelNotes/1.8.5.txt

 * "git status" now omits the prefix to make its output a comment in a
   commit log editor, which is not necessary for human consumption.
   Scripts that parse the output of "git status" are advised to use
   "git status --porcelain" instead, as its format is stable and easier
   to parse.

>From looking at the git log of
./maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/main/java/org/apache/maven/scm/provider/git/gitexe/command/status/GitStatusConsumer.java
I see that the has been using the newer "git status --porcelain" command
for some time now, however from walking the dependencies of
maven-release-plugin, I appear to find 1.7 being resolved ( at least via
IntellliJ ).

It looks like Olivier Lamy updated the "git status" support in [1] in git
commit 5c58908896a1b82bc6ee0af005adf0d6ef326395

Up until this week this didn't appear to be a problem, until Git 1.8.5 was
released and removed the leading # from the status messages

How do we get Maven to start using the newer releases of SCM - is that just
a matter of declaring a dependency in my parent pom?

Mark



[1] [SCM-686] Maven SCM failed to parse "git status" output if git messages
are translated - Submitted by Ralf Thielow.

-- 
"Great artists are extremely selfish and arrogant things" — Steven Wilson,
Porcupine Tree


On Mon, Dec 9, 2013 at 3:40 PM, Mark Derricutt  wrote:

> Hey all,
>
> Just encountered a strange issue with the maven-release-plugin, when doing
> a release:prepare from my machine using Maven 3.1.1, and
> maven-release-plugin 2.4.2 I get the following output:
>
> [INFO] Checking in modified POMs...
> [INFO] Executing: /bin/sh -c cd
> /Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.translation && git add
> -- pom.xml
> [INFO] Working directory:
> /Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.translation
> [INFO] Executing: /bin/sh -c cd
> /Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.translation && git
> status
> [INFO] Working directory:
> /Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.translation
> [INFO] Tagging release with the label com.smxemail.translation-13.2.9...
> [INFO] Executing: /bin/sh -c cd
> /Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.translation && git tag
> -F
> /var/folders/bq/jtxn4t511xz7l_t3t4q4c634gn/T/maven-scm-596385603.commit
> com.smxemail.translation-13.2.9
> [INFO] Working directory:
> /Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.translation
> [INFO] Executing: /bin/sh -c cd
> /Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.translation && git
> ls-files
> [INFO] Working directory:
> /Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.translation
> [INFO] Transforming 'com.smxemail.translation'...
> [INFO] Not removing release POMs
> [INFO] Checking in modified POMs...
> [INFO] Executing: /bin/sh -c cd
> /Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.translation && git add
> -- pom.xml
> [INFO] Working directory:
> /Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.translation
> [INFO] Executing: /bin/sh -c cd
> /Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.translation && git
> status
> [INFO] Working directory:
> /Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.translation
> [INFO] Release preparation complete.
> [INFO]
> 
> [INFO] BUILD SUCCESS
>
> You can see here that there are no "git commit" commands being run, this
> in turn breaks the build.
>
> A coworker who is still using Maven 3.0.4 was able to prepare and release
> the artefact fine however, so I'm wondering if there's some issue at the
> SCM layer of maven that's breaking when running under 3.1.1 that isn't an
> issue when using 3.0.4.
>
> Has anyone else seen any behaviour like this?
>
> Mark
>


Re: maven-release-plugin with github project

2013-07-27 Thread Alejandro . Endo
 Ok, removing the dependency to the parent in the aggregator seemed to fix the 
problem. now the push url makes sense:
git push https://github.com/theHilikus/JRoboCom.git master:master

However, now I encounter a problem i've always had in the past when releasing 
and never bothered to troubleshoot. After running git push I am asked for the 
username and pass of github. After I enter them, the release just hangs there

This is the output using -X

...
[INFO] Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse workspace/JRoboCom" 
&& git commit --verbose -F /tmp/maven-scm-1784899634.commit 
jrobocom-parent/pom.xml jrobocom-core/pom.xml jrobocom-simple-gui/pom.xml 
jrobocom-samples/pom.xml jrobocom-samples/legends/pom.xml 
jrobocom-samples/simple/pom.xml jrobocom-samples/simple/4Lunch/pom.xml 
jrobocom-samples/simple/black-jacks/pom.xml 
jrobocom-samples/simple/bank-jumper/pom.xml pom.xml
[INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
[INFO] Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse workspace/JRoboCom" 
&& git symbolic-ref HEAD
[INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
[INFO] Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse workspace/JRoboCom" 
&& git push https://github.com/theHilikus/JRoboCom.git master:master
[INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
Username for 'https://github.com': theHilikus
Password for 'https://thehili...@github.com':
//hangs here forever after i press enter

the only way i have been able to fix this is by cancelling the release 
(ctrl-c), running "git push https://github.com/theHilikus/JRoboCom.git 
master:master" by hand (no maven) which completes without a problem, then 
undoing the manual push and then rerunning the release-plugin, which now 
doesn't block after i enter my credentials; pretty annoying and long procedure.

Any ideas what could be wrong this time?

Thanks again,

Alejandro

-"Robert Scholte"  wrote: -----
To: "Maven Users List" 
From: "Robert Scholte" 
Date: 07/27/2013 12:29PM
Subject: Re: maven-release-plugin with github project

http://stackoverflow.com/questions/17766247/maven-release-plugin-pushing-tags-to-wrong-repo/17771493#17771493
will help you.

Robert

Op Sat, 27 Jul 2013 18:13:28 +0200 schreef :

>
>
> I'm  trying to release a multimodule maven project cloned in github. My  
> project has the parent pom as a submodule of the root aggregator. if i  
> run the release in dryRun mode it works fine, however if I run it for  
> real this is what i get near the end
>
>
> ...
> [INFO] Checking in modified POMs...
> [INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse  
> workspace/JRoboCom"  && git add -- jrobocom-parent/pom.xml  
> jrobocom-core/pom.xml  jrobocom-simple-gui/pom.xml  
> jrobocom-samples/pom.xml  jrobocom-samples/legends/pom.xml  
> jrobocom-samples/simple/pom.xml  jrobocom-samples/simple/4Lunch/pom.xml  
> jrobocom-samples/simple/black-jacks/pom.xml  
> jrobocom-samples/simple/bank-jumper/pom.xml pom.xml
> [INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
> [INFO] Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse  
> workspace/JRoboCom" && git status
> [INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
> [INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse  
> workspace/JRoboCom"  && git commit --verbose -F  
> /tmp/maven-scm-646807004.commit  jrobocom-parent/pom.xml  
> jrobocom-core/pom.xml  jrobocom-simple-gui/pom.xml  
> jrobocom-samples/pom.xml  jrobocom-samples/legends/pom.xml  
> jrobocom-samples/simple/pom.xml  jrobocom-samples/simple/4Lunch/pom.xml  
> jrobocom-samples/simple/black-jacks/pom.xml  
> jrobocom-samples/simple/bank-jumper/pom.xml pom.xml
> [INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
> [INFO] Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse  
> workspace/JRoboCom" && git symbolic-ref HEAD
> [INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
> [INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse  
> workspace/JRoboCom"  && git push  
> https://github.com/theHilikus/JRoboCom.git/jrobocom-aggregator  
> master:master
> [INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
> [INFO]  
> 
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Parent POM  SKIPPED
> ...
> [INFO] Bank-jumper ... SKIPPED
> [INFO] The overall aggregator ..

[CAUTION: Suspicious URL content] Re: maven-release-plugin with github project

2013-07-27 Thread Alejandro . Endo
 There seem to be some differences to my case. The bug says "It seems to think 
for some reason that I am at the root of my scm tree". In my case i AM in the 
root of my scm tree. Also, in his problem, the build fails on the git commit. 
in my case it fails on the git push after the commit succeeds. Some comments 
also mention it happens in windows/cygwin. I'm running mine in linux


-Arnaud Héritier  wrote: -
To: Maven Users List 
From: Arnaud Héritier 
Date: 07/27/2013 04:16PM
Subject: [CAUTION: Suspicious URL content]  Re: maven-release-plugin with 
github project

The issue I was referring to was this one :
https://jira.codehaus.org/browse/MRELEASE-581

Arnaud


On Sat, Jul 27, 2013 at 9:49 PM, Robert Scholte wrote:

> Hi,
>
> From which location are you releasing, from master or from jrobocom-parent?
>
> If it's the first, then the scm section should be placed here.
> If it's the latter, I think your scm-connections are wrong(not sure) and
> you must use m-release-p 2.3.2 due to the SCM-709 issue.
>
> Robert
>
>
> Op Sat, 27 Jul 2013 21:35:48 +0200 schreef :
>
>
>   Thank you Robert
>> I tried MRP 2.3.2 and i got the exact same result. I also have the same
>> setup referenced in the OP's comment on the accepted answer (aggregator
>> inherits from parent, parent is a submodule of aggregator and actual code
>> modules depend on their sibling parent) but somehow it doesn't work for me.
>> The only difference i see is git.
>>
>> Arnaud, in the SO question referenced by Robert and in the blog post
>> referenced in it at least 2 other people managed to make it work with an
>> explicit relative path. Here is the referenced blog
>> http://warpedjavaguy.**wordpress.com/2011/08/08/how-**
>> i-defeated-the-maven-release-**plugin-in-a-flat-structured-**
>> multi-module-project/<http://warpedjavaguy.wordpress.com/2011/08/08/how-i-defeated-the-maven-release-plugin-in-a-flat-structured-multi-module-project/>
>> i'm sure adding git submodules makes everything much more complex. This
>> is why i'm surprised mine doesn't work, my setup is very vanilla so i'm
>> sure there's hundreds of people trying to do the same thing
>>
>> Thanks for your help
>>
>> Any other ideas?
>>
>> i would still like to know why the push url contains the artifactId of
>> the aggregator. I'm not sure if this is MRP or the scm plugin's doing
>>
>>
>>
>> -"Robert Scholte"  wrote: -
>> To: "Maven Users List" 
>> From: "Robert Scholte" 
>> Date: 07/27/2013 12:29PM
>> Subject: Re: maven-release-plugin with github project
>>
>> http://stackoverflow.com/**questions/17766247/maven-**
>> release-plugin-pushing-tags-**to-wrong-repo/17771493#**17771493<http://stackoverflow.com/questions/17766247/maven-release-plugin-pushing-tags-to-wrong-repo/17771493#17771493>
>> will help you.
>>
>> Robert
>>
>> Op Sat, 27 Jul 2013 18:13:28 +0200 schreef :
>>
>>
>>>
>>> I'm  trying to release a multimodule maven project cloned in github. My
>>>  project has the parent pom as a submodule of the root aggregator. if i run
>>> the release in dryRun mode it works fine, however if I run it for real this
>>> is what i get near the end
>>>
>>>
>>> ...
>>> [INFO] Checking in modified POMs...
>>> [INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse
>>> workspace/JRoboCom"  && git add -- jrobocom-parent/pom.xml
>>> jrobocom-core/pom.xml  jrobocom-simple-gui/pom.xml jrobocom-samples/pom.xml
>>>  jrobocom-samples/legends/pom.**xml jrobocom-samples/simple/pom.**xml
>>>  jrobocom-samples/simple/**4Lunch/pom.xml
>>>  jrobocom-samples/simple/black-**jacks/pom.xml
>>> jrobocom-samples/simple/bank-**jumper/pom.xml pom.xml
>>> [INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
>>> [INFO] Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse
>>> workspace/JRoboCom" && git status
>>> [INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
>>> [INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse
>>> workspace/JRoboCom"  && git commit --verbose -F /tmp/maven-scm-646807004.
>>> **commit  jrobocom-parent/pom.xml jrobocom-core/pom.xml
>>>  jrobocom-simple-gui/pom.xml jrobocom-samples/pom.xml
>>>  jrobocom-samples/legends/pom.**xml jrobocom-samples/simple/pom.**xml
>>>  jrobocom-samples/simple/**4Lunch/pom.xml
>>>  j

[CAUTION: Suspicious URL content] Re: maven-release-plugin with github project

2013-07-27 Thread Alejandro . Endo
from the root of the project, which is the same level as the aggregator pom. 
But instead of putting the scm section there like you suggest, I just made the 
aggregator inherit from its submodule (jrobocom-parent). Maybe this is what's 
confusing the release plugin. i will try duplicating the SCM section on the 
aggregator (not great, DRY principle, but i need to be able to have a defined 
SCM on the code modules so I cannot just move the scm section from 
jrobocom-parent to jrobocom-aggregator)





-"Robert Scholte"  wrote: -
To: "Maven Users List" 
From: "Robert Scholte" 
Date: 07/27/2013 03:49PM
Subject: [CAUTION: Suspicious URL content]  Re: maven-release-plugin with 
github project

Hi,

 From which location are you releasing, from master or from jrobocom-parent?

If it's the first, then the scm section should be placed here.
If it's the latter, I think your scm-connections are wrong(not sure) and  
you must use m-release-p 2.3.2 due to the SCM-709 issue.

Robert


Op Sat, 27 Jul 2013 21:35:48 +0200 schreef :

>  Thank you Robert
> I tried MRP 2.3.2 and i got the exact same result. I also have the same  
> setup referenced in the OP's comment on the accepted answer (aggregator  
> inherits from parent, parent is a submodule of aggregator and actual  
> code modules depend on their sibling parent) but somehow it doesn't work  
> for me. The only difference i see is git.
>
> Arnaud, in the SO question referenced by Robert and in the blog post  
> referenced in it at least 2 other people managed to make it work with an  
> explicit relative path. Here is the referenced blog
> http://warpedjavaguy.wordpress.com/2011/08/08/how-i-defeated-the-maven-release-plugin-in-a-flat-structured-multi-module-project/
> i'm sure adding git submodules makes everything much more complex. This  
> is why i'm surprised mine doesn't work, my setup is very vanilla so i'm  
> sure there's hundreds of people trying to do the same thing
>
> Thanks for your help
>
> Any other ideas?
>
> i would still like to know why the push url contains the artifactId of  
> the aggregator. I'm not sure if this is MRP or the scm plugin's doing
>
>
>
> -"Robert Scholte"  wrote: -
> To: "Maven Users List" 
> From: "Robert Scholte" 
> Date: 07/27/2013 12:29PM
> Subject: Re: maven-release-plugin with github project
>
> http://stackoverflow.com/questions/17766247/maven-release-plugin-pushing-tags-to-wrong-repo/17771493#17771493
> will help you.
>
> Robert
>
> Op Sat, 27 Jul 2013 18:13:28 +0200 schreef :
>
>>
>>
>> I'm  trying to release a multimodule maven project cloned in github. My  
>>  project has the parent pom as a submodule of the root aggregator. if i  
>> run the release in dryRun mode it works fine, however if I run it for  
>> real this is what i get near the end
>>
>>
>> ...
>> [INFO] Checking in modified POMs...
>> [INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse  
>> workspace/JRoboCom"  && git add -- jrobocom-parent/pom.xml  
>> jrobocom-core/pom.xml  jrobocom-simple-gui/pom.xml  
>> jrobocom-samples/pom.xml  jrobocom-samples/legends/pom.xml  
>> jrobocom-samples/simple/pom.xml  jrobocom-samples/simple/4Lunch/pom.xml  
>>  jrobocom-samples/simple/black-jacks/pom.xml  
>> jrobocom-samples/simple/bank-jumper/pom.xml pom.xml
>> [INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
>> [INFO] Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse  
>> workspace/JRoboCom" && git status
>> [INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
>> [INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse  
>> workspace/JRoboCom"  && git commit --verbose -F  
>> /tmp/maven-scm-646807004.commit  jrobocom-parent/pom.xml  
>> jrobocom-core/pom.xml  jrobocom-simple-gui/pom.xml  
>> jrobocom-samples/pom.xml  jrobocom-samples/legends/pom.xml  
>> jrobocom-samples/simple/pom.xml  jrobocom-samples/simple/4Lunch/pom.xml  
>>  jrobocom-samples/simple/black-jacks/pom.xml  
>> jrobocom-samples/simple/bank-jumper/pom.xml pom.xml
>> [INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
>> [INFO] Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse  
>> workspace/JRoboCom" && git symbolic-ref HEAD
>> [INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
>> [INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse  
>> workspace/JRoboCom"  && git push  
>> https://github.com/theHilikus/JRoboCom.git/jrobocom-aggregator  
>> ma

Re: maven-release-plugin with github project

2013-07-27 Thread Robert Scholte
I'll try to fix this with Mark for the next release. I think more and more  
people will hit this issue.


Robert

Op Sat, 27 Jul 2013 22:15:33 +0200 schreef Arnaud Héritier  
:



The issue I was referring to was this one :
https://jira.codehaus.org/browse/MRELEASE-581

Arnaud


On Sat, Jul 27, 2013 at 9:49 PM, Robert Scholte  
wrote:



Hi,

From which location are you releasing, from master or from  
jrobocom-parent?


If it's the first, then the scm section should be placed here.
If it's the latter, I think your scm-connections are wrong(not sure) and
you must use m-release-p 2.3.2 due to the SCM-709 issue.

Robert


Op Sat, 27 Jul 2013 21:35:48 +0200 schreef :


  Thank you Robert

I tried MRP 2.3.2 and i got the exact same result. I also have the same
setup referenced in the OP's comment on the accepted answer (aggregator
inherits from parent, parent is a submodule of aggregator and actual  
code
modules depend on their sibling parent) but somehow it doesn't work  
for me.

The only difference i see is git.

Arnaud, in the SO question referenced by Robert and in the blog post
referenced in it at least 2 other people managed to make it work with  
an

explicit relative path. Here is the referenced blog
http://warpedjavaguy.**wordpress.com/2011/08/08/how-**
i-defeated-the-maven-release-**plugin-in-a-flat-structured-**
multi-module-project/<http://warpedjavaguy.wordpress.com/2011/08/08/how-i-defeated-the-maven-release-plugin-in-a-flat-structured-multi-module-project/>
i'm sure adding git submodules makes everything much more complex. This
is why i'm surprised mine doesn't work, my setup is very vanilla so i'm
sure there's hundreds of people trying to do the same thing

Thanks for your help

Any other ideas?

i would still like to know why the push url contains the artifactId of
the aggregator. I'm not sure if this is MRP or the scm plugin's doing



-"Robert Scholte"  wrote: -
To: "Maven Users List" 
From: "Robert Scholte" 
Date: 07/27/2013 12:29PM
Subject: Re: maven-release-plugin with github project

http://stackoverflow.com/**questions/17766247/maven-**
release-plugin-pushing-tags-**to-wrong-repo/17771493#**17771493<http://stackoverflow.com/questions/17766247/maven-release-plugin-pushing-tags-to-wrong-repo/17771493#17771493>
will help you.

Robert

Op Sat, 27 Jul 2013 18:13:28 +0200 schreef  
:





I'm  trying to release a multimodule maven project cloned in github.  
My
 project has the parent pom as a submodule of the root aggregator. if  
i run
the release in dryRun mode it works fine, however if I run it for  
real this

is what i get near the end


...
[INFO] Checking in modified POMs...
[INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse
workspace/JRoboCom"  && git add -- jrobocom-parent/pom.xml
jrobocom-core/pom.xml  jrobocom-simple-gui/pom.xml  
jrobocom-samples/pom.xml

 jrobocom-samples/legends/pom.**xml jrobocom-samples/simple/pom.**xml
 jrobocom-samples/simple/**4Lunch/pom.xml
 jrobocom-samples/simple/black-**jacks/pom.xml
jrobocom-samples/simple/bank-**jumper/pom.xml pom.xml
[INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
[INFO] Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse
workspace/JRoboCom" && git status
[INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
[INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse
workspace/JRoboCom"  && git commit --verbose -F  
/tmp/maven-scm-646807004.

**commit  jrobocom-parent/pom.xml jrobocom-core/pom.xml
 jrobocom-simple-gui/pom.xml jrobocom-samples/pom.xml
 jrobocom-samples/legends/pom.**xml jrobocom-samples/simple/pom.**xml
 jrobocom-samples/simple/**4Lunch/pom.xml
 jrobocom-samples/simple/black-**jacks/pom.xml
jrobocom-samples/simple/bank-**jumper/pom.xml pom.xml
[INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
[INFO] Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse
workspace/JRoboCom" && git symbolic-ref HEAD
[INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
[INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse
workspace/JRoboCom"  && git push https://github.com/theHilikus/**
JRoboCom.git/jrobocom-**aggregator<https://github.com/theHilikus/JRoboCom.git/jrobocom-aggregator>master:master
[INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
[INFO]  
--**--**


[INFO] Reactor Summary:
[INFO]
[INFO] Parent POM ..**.. SKIPPED
...
[INFO] Bank-jumper ..**. SKIPPED
[INFO] The overall aggregator  FAILURE
[3:30.447s]
[INFO]  
--**--**


[INFO] BUILD FAIL

Re: maven-release-plugin with github project

2013-07-27 Thread Arnaud Héritier
The issue I was referring to was this one :
https://jira.codehaus.org/browse/MRELEASE-581

Arnaud


On Sat, Jul 27, 2013 at 9:49 PM, Robert Scholte wrote:

> Hi,
>
> From which location are you releasing, from master or from jrobocom-parent?
>
> If it's the first, then the scm section should be placed here.
> If it's the latter, I think your scm-connections are wrong(not sure) and
> you must use m-release-p 2.3.2 due to the SCM-709 issue.
>
> Robert
>
>
> Op Sat, 27 Jul 2013 21:35:48 +0200 schreef :
>
>
>   Thank you Robert
>> I tried MRP 2.3.2 and i got the exact same result. I also have the same
>> setup referenced in the OP's comment on the accepted answer (aggregator
>> inherits from parent, parent is a submodule of aggregator and actual code
>> modules depend on their sibling parent) but somehow it doesn't work for me.
>> The only difference i see is git.
>>
>> Arnaud, in the SO question referenced by Robert and in the blog post
>> referenced in it at least 2 other people managed to make it work with an
>> explicit relative path. Here is the referenced blog
>> http://warpedjavaguy.**wordpress.com/2011/08/08/how-**
>> i-defeated-the-maven-release-**plugin-in-a-flat-structured-**
>> multi-module-project/<http://warpedjavaguy.wordpress.com/2011/08/08/how-i-defeated-the-maven-release-plugin-in-a-flat-structured-multi-module-project/>
>> i'm sure adding git submodules makes everything much more complex. This
>> is why i'm surprised mine doesn't work, my setup is very vanilla so i'm
>> sure there's hundreds of people trying to do the same thing
>>
>> Thanks for your help
>>
>> Any other ideas?
>>
>> i would still like to know why the push url contains the artifactId of
>> the aggregator. I'm not sure if this is MRP or the scm plugin's doing
>>
>>
>>
>> -"Robert Scholte"  wrote: -
>> To: "Maven Users List" 
>> From: "Robert Scholte" 
>> Date: 07/27/2013 12:29PM
>> Subject: Re: maven-release-plugin with github project
>>
>> http://stackoverflow.com/**questions/17766247/maven-**
>> release-plugin-pushing-tags-**to-wrong-repo/17771493#**17771493<http://stackoverflow.com/questions/17766247/maven-release-plugin-pushing-tags-to-wrong-repo/17771493#17771493>
>> will help you.
>>
>> Robert
>>
>> Op Sat, 27 Jul 2013 18:13:28 +0200 schreef :
>>
>>
>>>
>>> I'm  trying to release a multimodule maven project cloned in github. My
>>>  project has the parent pom as a submodule of the root aggregator. if i run
>>> the release in dryRun mode it works fine, however if I run it for real this
>>> is what i get near the end
>>>
>>>
>>> ...
>>> [INFO] Checking in modified POMs...
>>> [INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse
>>> workspace/JRoboCom"  && git add -- jrobocom-parent/pom.xml
>>> jrobocom-core/pom.xml  jrobocom-simple-gui/pom.xml jrobocom-samples/pom.xml
>>>  jrobocom-samples/legends/pom.**xml jrobocom-samples/simple/pom.**xml
>>>  jrobocom-samples/simple/**4Lunch/pom.xml
>>>  jrobocom-samples/simple/black-**jacks/pom.xml
>>> jrobocom-samples/simple/bank-**jumper/pom.xml pom.xml
>>> [INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
>>> [INFO] Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse
>>> workspace/JRoboCom" && git status
>>> [INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
>>> [INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse
>>> workspace/JRoboCom"  && git commit --verbose -F /tmp/maven-scm-646807004.
>>> **commit  jrobocom-parent/pom.xml jrobocom-core/pom.xml
>>>  jrobocom-simple-gui/pom.xml jrobocom-samples/pom.xml
>>>  jrobocom-samples/legends/pom.**xml jrobocom-samples/simple/pom.**xml
>>>  jrobocom-samples/simple/**4Lunch/pom.xml
>>>  jrobocom-samples/simple/black-**jacks/pom.xml
>>> jrobocom-samples/simple/bank-**jumper/pom.xml pom.xml
>>> [INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
>>> [INFO] Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse
>>> workspace/JRoboCom" && git symbolic-ref HEAD
>>> [INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
>>> [INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse
>>> workspace/JRoboCom"  && git push https://github.com/theHilikus/**
>>> JRoboCom.gi

Re: maven-release-plugin with github project

2013-07-27 Thread Robert Scholte

Hi,

From which location are you releasing, from master or from jrobocom-parent?

If it's the first, then the scm section should be placed here.
If it's the latter, I think your scm-connections are wrong(not sure) and  
you must use m-release-p 2.3.2 due to the SCM-709 issue.


Robert


Op Sat, 27 Jul 2013 21:35:48 +0200 schreef :


 Thank you Robert
I tried MRP 2.3.2 and i got the exact same result. I also have the same  
setup referenced in the OP's comment on the accepted answer (aggregator  
inherits from parent, parent is a submodule of aggregator and actual  
code modules depend on their sibling parent) but somehow it doesn't work  
for me. The only difference i see is git.


Arnaud, in the SO question referenced by Robert and in the blog post  
referenced in it at least 2 other people managed to make it work with an  
explicit relative path. Here is the referenced blog

http://warpedjavaguy.wordpress.com/2011/08/08/how-i-defeated-the-maven-release-plugin-in-a-flat-structured-multi-module-project/
i'm sure adding git submodules makes everything much more complex. This  
is why i'm surprised mine doesn't work, my setup is very vanilla so i'm  
sure there's hundreds of people trying to do the same thing


Thanks for your help

Any other ideas?

i would still like to know why the push url contains the artifactId of  
the aggregator. I'm not sure if this is MRP or the scm plugin's doing




-"Robert Scholte"  wrote: -
To: "Maven Users List" 
From: "Robert Scholte" 
Date: 07/27/2013 12:29PM
Subject: Re: maven-release-plugin with github project

http://stackoverflow.com/questions/17766247/maven-release-plugin-pushing-tags-to-wrong-repo/17771493#17771493
will help you.

Robert

Op Sat, 27 Jul 2013 18:13:28 +0200 schreef :




I'm  trying to release a multimodule maven project cloned in github. My  
 project has the parent pom as a submodule of the root aggregator. if i  
run the release in dryRun mode it works fine, however if I run it for  
real this is what i get near the end



...
[INFO] Checking in modified POMs...
[INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse  
workspace/JRoboCom"  && git add -- jrobocom-parent/pom.xml  
jrobocom-core/pom.xml  jrobocom-simple-gui/pom.xml  
jrobocom-samples/pom.xml  jrobocom-samples/legends/pom.xml  
jrobocom-samples/simple/pom.xml  jrobocom-samples/simple/4Lunch/pom.xml  
 jrobocom-samples/simple/black-jacks/pom.xml  
jrobocom-samples/simple/bank-jumper/pom.xml pom.xml

[INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
[INFO] Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse  
workspace/JRoboCom" && git status

[INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
[INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse  
workspace/JRoboCom"  && git commit --verbose -F  
/tmp/maven-scm-646807004.commit  jrobocom-parent/pom.xml  
jrobocom-core/pom.xml  jrobocom-simple-gui/pom.xml  
jrobocom-samples/pom.xml  jrobocom-samples/legends/pom.xml  
jrobocom-samples/simple/pom.xml  jrobocom-samples/simple/4Lunch/pom.xml  
 jrobocom-samples/simple/black-jacks/pom.xml  
jrobocom-samples/simple/bank-jumper/pom.xml pom.xml

[INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
[INFO] Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse  
workspace/JRoboCom" && git symbolic-ref HEAD

[INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
[INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse  
workspace/JRoboCom"  && git push  
https://github.com/theHilikus/JRoboCom.git/jrobocom-aggregator  
master:master

[INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
[INFO]  


[INFO] Reactor Summary:
[INFO]
[INFO] Parent POM  SKIPPED
...
[INFO] Bank-jumper ... SKIPPED
[INFO] The overall aggregator  FAILURE  
[3:30.447s]
[INFO]  


[INFO] BUILD FAILURE
[INFO]  


[INFO] Total time: 3:32.658s
[INFO] Finished at: Tue Jul 23 22:31:43 EDT 2013
[INFO] Final Memory: 9M/44M
[INFO]  

[ERROR]  Failed to execute goal  
org.apache.maven.plugins:maven-release-plugin:2.4.1:prepare  
(default-cli) on project jrobocom-aggregator: Unable to commit files

[ERROR] Provider message:
[ERROR] The git-push command failed.
[ERROR] Command output:
[ERROR]  fatal:  
https://github.com/theHilikus/JRoboCom.git/jrobocom-aggregator/info/refs  
not found: did you run git update-server-info on the server?

[ERROR] -> [Help 1]


If  I ru

Re: maven-release-plugin with github project

2013-07-27 Thread Alejandro . Endo
 Thank you Robert
I tried MRP 2.3.2 and i got the exact same result. I also have the same setup 
referenced in the OP's comment on the accepted answer (aggregator inherits from 
parent, parent is a submodule of aggregator and actual code modules depend on 
their sibling parent) but somehow it doesn't work for me. The only difference i 
see is git.

Arnaud, in the SO question referenced by Robert and in the blog post referenced 
in it at least 2 other people managed to make it work with an explicit relative 
path. Here is the referenced blog
http://warpedjavaguy.wordpress.com/2011/08/08/how-i-defeated-the-maven-release-plugin-in-a-flat-structured-multi-module-project/
i'm sure adding git submodules makes everything much more complex. This is why 
i'm surprised mine doesn't work, my setup is very vanilla so i'm sure there's 
hundreds of people trying to do the same thing

Thanks for your help

Any other ideas?

i would still like to know why the push url contains the artifactId of the 
aggregator. I'm not sure if this is MRP or the scm plugin's doing



-"Robert Scholte"  wrote: -
To: "Maven Users List" 
From: "Robert Scholte" 
Date: 07/27/2013 12:29PM
Subject: Re: maven-release-plugin with github project

http://stackoverflow.com/questions/17766247/maven-release-plugin-pushing-tags-to-wrong-repo/17771493#17771493
will help you.

Robert

Op Sat, 27 Jul 2013 18:13:28 +0200 schreef :

>
>
> I'm  trying to release a multimodule maven project cloned in github. My  
> project has the parent pom as a submodule of the root aggregator. if i  
> run the release in dryRun mode it works fine, however if I run it for  
> real this is what i get near the end
>
>
> ...
> [INFO] Checking in modified POMs...
> [INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse  
> workspace/JRoboCom"  && git add -- jrobocom-parent/pom.xml  
> jrobocom-core/pom.xml  jrobocom-simple-gui/pom.xml  
> jrobocom-samples/pom.xml  jrobocom-samples/legends/pom.xml  
> jrobocom-samples/simple/pom.xml  jrobocom-samples/simple/4Lunch/pom.xml  
> jrobocom-samples/simple/black-jacks/pom.xml  
> jrobocom-samples/simple/bank-jumper/pom.xml pom.xml
> [INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
> [INFO] Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse  
> workspace/JRoboCom" && git status
> [INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
> [INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse  
> workspace/JRoboCom"  && git commit --verbose -F  
> /tmp/maven-scm-646807004.commit  jrobocom-parent/pom.xml  
> jrobocom-core/pom.xml  jrobocom-simple-gui/pom.xml  
> jrobocom-samples/pom.xml  jrobocom-samples/legends/pom.xml  
> jrobocom-samples/simple/pom.xml  jrobocom-samples/simple/4Lunch/pom.xml  
> jrobocom-samples/simple/black-jacks/pom.xml  
> jrobocom-samples/simple/bank-jumper/pom.xml pom.xml
> [INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
> [INFO] Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse  
> workspace/JRoboCom" && git symbolic-ref HEAD
> [INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
> [INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse  
> workspace/JRoboCom"  && git push  
> https://github.com/theHilikus/JRoboCom.git/jrobocom-aggregator  
> master:master
> [INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
> [INFO]  
> 
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Parent POM  SKIPPED
> ...
> [INFO] Bank-jumper ... SKIPPED
> [INFO] The overall aggregator  FAILURE  
> [3:30.447s]
> [INFO]  
> 
> [INFO] BUILD FAILURE
> [INFO]  
> 
> [INFO] Total time: 3:32.658s
> [INFO] Finished at: Tue Jul 23 22:31:43 EDT 2013
> [INFO] Final Memory: 9M/44M
> [INFO]  
> 
> [ERROR]  Failed to execute goal  
> org.apache.maven.plugins:maven-release-plugin:2.4.1:prepare  
> (default-cli) on project jrobocom-aggregator: Unable to commit files
> [ERROR] Provider message:
> [ERROR] The git-push command failed.
> [ERROR] Command output:
> [ERROR]  fatal:  
> https://github.com/theHilikus/JRoboCom.git/jrobocom-aggregator/info/refs  
> not found: did you run git update-server-info on the server?
> [ERROR] -> [Help 1]
>
>
> If  I run that same git push command 

Re: maven-release-plugin with github project

2013-07-27 Thread Arnaud Héritier
Someone show me a similar issue with the release plugin in a project
using git where the parent/reactor is at the same level than modules
(moreover each modules where git submodules AFAIR )

The usage of relative path with in the reactor breaks the release.
There is an issue in Jira with a patch but AFAIR there was only the
code fix (no new test ..)

-
Arnaud

Le 27 juil. 2013 à 18:14, "alejandro.e...@miranda.com"
 a écrit :

>
>
> I'm  trying to release a multimodule maven project cloned in github. My  
> project has the parent pom as a submodule of the root aggregator. if i  run 
> the release in dryRun mode it works fine, however if I run it for  real this 
> is what i get near the end
>
>
> ...
> [INFO] Checking in modified POMs...
> [INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse 
> workspace/JRoboCom"  && git add -- jrobocom-parent/pom.xml 
> jrobocom-core/pom.xml  jrobocom-simple-gui/pom.xml jrobocom-samples/pom.xml  
> jrobocom-samples/legends/pom.xml jrobocom-samples/simple/pom.xml  
> jrobocom-samples/simple/4Lunch/pom.xml  
> jrobocom-samples/simple/black-jacks/pom.xml  
> jrobocom-samples/simple/bank-jumper/pom.xml pom.xml
> [INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
> [INFO] Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse 
> workspace/JRoboCom" && git status
> [INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
> [INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse 
> workspace/JRoboCom"  && git commit --verbose -F 
> /tmp/maven-scm-646807004.commit  jrobocom-parent/pom.xml 
> jrobocom-core/pom.xml  jrobocom-simple-gui/pom.xml jrobocom-samples/pom.xml  
> jrobocom-samples/legends/pom.xml jrobocom-samples/simple/pom.xml  
> jrobocom-samples/simple/4Lunch/pom.xml  
> jrobocom-samples/simple/black-jacks/pom.xml  
> jrobocom-samples/simple/bank-jumper/pom.xml pom.xml
> [INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
> [INFO] Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse 
> workspace/JRoboCom" && git symbolic-ref HEAD
> [INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
> [INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse 
> workspace/JRoboCom"  && git push  
> https://github.com/theHilikus/JRoboCom.git/jrobocom-aggregator  master:master
> [INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
> [INFO] 
> 
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Parent POM  SKIPPED
> ...
> [INFO] Bank-jumper ... SKIPPED
> [INFO] The overall aggregator  FAILURE [3:30.447s]
> [INFO] 
> 
> [INFO] BUILD FAILURE
> [INFO] 
> 
> [INFO] Total time: 3:32.658s
> [INFO] Finished at: Tue Jul 23 22:31:43 EDT 2013
> [INFO] Final Memory: 9M/44M
> [INFO] 
> 
> [ERROR]  Failed to execute goal  
> org.apache.maven.plugins:maven-release-plugin:2.4.1:prepare  (default-cli) on 
> project jrobocom-aggregator: Unable to commit files
> [ERROR] Provider message:
> [ERROR] The git-push command failed.
> [ERROR] Command output:
> [ERROR]  fatal:  
> https://github.com/theHilikus/JRoboCom.git/jrobocom-aggregator/info/refs  not 
> found: did you run git update-server-info on the server?
> [ERROR] -> [Help 1]
>
>
> If  I run that same git push command by hand it does give me that error,  
> however, if i run the push with the url just up to .git and remove the 
> /jrobocom-aggregator it works fine
>
> Where  does the MRP take the push url from? i'm running mvn from the root  
> aggregator since i want to release all submodules together but i don't  see 
> why the push url should include the aggregator's artifact id
>
> What am i doing wrong? this seems like the canonical release procedure
>
> This  is the aggregator POM (before running the release) in case anyone is  
> interested https://github.com/theHilikus/JRoboCom/blob/master/pom.xml  and 
> from there you can find all the other poms
>
> Thank you,
> DISCLAIMER:
> Privileged and/or Confidential information may be contained in this
> message. If you are not the addressee of this message, you may not
> copy, use or deliver this message to anyone. In such event, you
> should destroy the message and kindly notify the sender by reply
> e-mail. It is understood that opinions or conclusions that do not
> relate to the official business of the company are neither given
> nor endorsed by the company.
> Thank You.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven-release-plugin with github project

2013-07-27 Thread Robert Scholte

http://stackoverflow.com/questions/17766247/maven-release-plugin-pushing-tags-to-wrong-repo/17771493#17771493
will help you.

Robert

Op Sat, 27 Jul 2013 18:13:28 +0200 schreef :




I'm  trying to release a multimodule maven project cloned in github. My   
project has the parent pom as a submodule of the root aggregator. if i   
run the release in dryRun mode it works fine, however if I run it for   
real this is what i get near the end



...
[INFO] Checking in modified POMs...
[INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse  
workspace/JRoboCom"  && git add -- jrobocom-parent/pom.xml  
jrobocom-core/pom.xml  jrobocom-simple-gui/pom.xml  
jrobocom-samples/pom.xml  jrobocom-samples/legends/pom.xml  
jrobocom-samples/simple/pom.xml  jrobocom-samples/simple/4Lunch/pom.xml   
jrobocom-samples/simple/black-jacks/pom.xml   
jrobocom-samples/simple/bank-jumper/pom.xml pom.xml

[INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
[INFO] Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse  
workspace/JRoboCom" && git status

[INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
[INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse  
workspace/JRoboCom"  && git commit --verbose -F  
/tmp/maven-scm-646807004.commit  jrobocom-parent/pom.xml  
jrobocom-core/pom.xml  jrobocom-simple-gui/pom.xml  
jrobocom-samples/pom.xml  jrobocom-samples/legends/pom.xml  
jrobocom-samples/simple/pom.xml  jrobocom-samples/simple/4Lunch/pom.xml   
jrobocom-samples/simple/black-jacks/pom.xml   
jrobocom-samples/simple/bank-jumper/pom.xml pom.xml

[INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
[INFO] Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse  
workspace/JRoboCom" && git symbolic-ref HEAD

[INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
[INFO]  Executing: /bin/sh -c cd "/home/hilikus/dev/Eclipse  
workspace/JRoboCom"  && git push   
https://github.com/theHilikus/JRoboCom.git/jrobocom-aggregator   
master:master

[INFO] Working directory: /home/hilikus/dev/Eclipse workspace/JRoboCom
[INFO]  


[INFO] Reactor Summary:
[INFO]
[INFO] Parent POM  SKIPPED
...
[INFO] Bank-jumper ... SKIPPED
[INFO] The overall aggregator  FAILURE  
[3:30.447s]
[INFO]  


[INFO] BUILD FAILURE
[INFO]  


[INFO] Total time: 3:32.658s
[INFO] Finished at: Tue Jul 23 22:31:43 EDT 2013
[INFO] Final Memory: 9M/44M
[INFO]  

[ERROR]  Failed to execute goal   
org.apache.maven.plugins:maven-release-plugin:2.4.1:prepare   
(default-cli) on project jrobocom-aggregator: Unable to commit files

[ERROR] Provider message:
[ERROR] The git-push command failed.
[ERROR] Command output:
[ERROR]  fatal:   
https://github.com/theHilikus/JRoboCom.git/jrobocom-aggregator/info/refs   
not found: did you run git update-server-info on the server?

[ERROR] -> [Help 1]


If  I run that same git push command by hand it does give me that  
error,  however, if i run the push with the url just up to .git and  
remove the /jrobocom-aggregator it works fine


Where  does the MRP take the push url from? i'm running mvn from the  
root  aggregator since i want to release all submodules together but i  
don't  see why the push url should include the aggregator's artifact id


What am i doing wrong? this seems like the canonical release procedure

This  is the aggregator POM (before running the release) in case anyone  
is  interested  
https://github.com/theHilikus/JRoboCom/blob/master/pom.xml  and from  
there you can find all the other poms


Thank you,
DISCLAIMER:
Privileged and/or Confidential information may be contained in this
message. If you are not the addressee of this message, you may not
copy, use or deliver this message to anyone. In such event, you
should destroy the message and kindly notify the sender by reply
e-mail. It is understood that opinions or conclusions that do not
relate to the official business of the company are neither given
nor endorsed by the company.
Thank You.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven-release-plugin is not working properly

2013-06-13 Thread proverbio
Thanks Robert!



--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-release-plugin-is-not-working-properly-tp5759252p5759265.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven-release-plugin is not working properly

2013-06-13 Thread Robert Scholte

hi,

This is an interesting line:
[HUDSON] Collecting dependencies info

So you're using Hudson to release.
That shouldn't be a problem, but the Exception tells me there's an issue  
with the Maven installation.

Maybe you can get more info on the Hudson mailinglist.

Robert


Op Thu, 13 Jun 2013 14:59:29 +0200 schreef proverbio  
:



Hello!

I want to release a SNAPSHOT pom and I am using maven-release-plugin
v.2.4.1. GEOPos2-Watcher is a git repo.

[INFO]

[INFO] Building GEOPos2-Watcher
[INFO]task-segment: [release:prepare] (aggregator-style)
[INFO]


[HUDSON] Collecting dependencies info
[INFO] [release:prepare {execution: default-cli}]
[INFO] Resuming release from phase 'run-preparation-goals'
[INFO] Executing goals 'clean verify'...
[INFO] Exception in thread "main" java.lang.NoClassDefFoundError:
org/codehaus/classworlds/Launcher
[INFO] Caused by: java.lang.ClassNotFoundException:
org.codehaus.classworlds.Launcher
[INFO]  at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
[INFO]  at java.security.AccessController.doPrivileged(Native Method)
[INFO]  at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
[INFO]  at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
[INFO]  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
[INFO]  at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
[INFO] Could not find the main class: org.codehaus.classworlds.Launcher.
Program will exit.
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Maven execution failed, exit code: '1'



---


org.apache.maven.plugins
maven-release-plugin
2.4.1


default

prepare



version@{project.version}








scm:git:http://geogit.uy/gitlab/uy-geopos2/geopos2-watcher.git


scm:git:http://geogit.uy/gitlab/uy-geopos2/geopos2-watcher.git

http://geogit.uy/gitlab/uy-geopos2/geopos2-watcher
HEAD


I am missing something?

Much thanks!



--
View this message in context:  
http://maven.40175.n5.nabble.com/maven-release-plugin-is-not-working-properly-tp5759252.html

Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven release plugin

2013-06-06 Thread Russell Gold
Hi Markos,

You need to release your dependencies first (to create the non-snapshot 
versions) and then update your project POMs to refer to the released versions. 
Then you can release your main project. It is only when the dependencies are 
themselves modules in your project and will be released with it that you have 
the dependency version changed when you release - and even then, you have to do 
it by using the ${project.version} property.

- Russ

On Jun 6, 2013, at 8:09 AM, Markos Fragkakis  wrote:

> Hi,
> 
> I am using the Maven release plugin and I am trying to make a release. When
> I am on master (I am using Git) I have SNAPSHOT versions for both my
> project (multimodule) and also for my dependencies (also multimodule).
> 
> Suppose I want to make a tag from master (skipping the creation of a
> branch) where no SNAPSHOTs are used.
> 
> This is my simplified pom.xml:
> 
> http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
> 4.0.0
> 
> results
> 1.2-SNAPSHOT
> pom
> Results parent module
> 
> 
> results-web
> results-persistence
> results-domain
> results-logic
> results-logic-api
> results-ear
> results-configuration
> results-rules-ejb
> results-rules
> results-rest
> 
> 
> 
> 1.2.3-SNAPSHOT
> 3.4.5-SNAPSHOT
> 
> 
> 
> 
> 
> 
> org.apache.maven.plugins
> maven-release-plugin
> 2.4.1
> 
> @{project.version}
> true
> true
> false
> 
> 
> 
> 
> 
> 
> 
> 
> 
> org.my.project
> dependency1-domain
> ${dependency1.version}
> 
> 
> org.my.project
> dependency1-enumerations
> ${dependency1.version}
> 
> 
> org.my.project
> dependency1-logic
> ${dependency1.version}
> ejb
> 
> 
> org.my.project
> dependency2-domain
> ${dependency2.version}
> 
> 
> org.my.project
> dependency2-enumerations
> ${dependency2.version}
> 
> 
> org.my.project
> dependency2-logic
> ${dependency2.version}
> ejb
> 
> 
> 
> 
> 
> 
> If I do:
> 
> mvn release:prepare -Darguments="-dependency1.version=1.2.3.0
> -Ddependency2.version=3.4.5.0"
> 
> That creates a branch that still has SNAPSHOT dependencies:
> 
> 
> 1.2.3-SNAPSHOT
> 3.4.5-SNAPSHOT
> 
> 
> How would I generate a tag where the part above would be:
> 
> 
> 1.2.3.0
> 3.4.5.0
> 
> 
> Thank you,
> 
> Markos
> -- 
> Sent from my iPhone

-
Come read my webnovel, Take a Lemon , 
and listen to the Misfile radio play 
!






Re: Maven Release plugin

2013-06-04 Thread alesky
Man i have your same issue

i use this strategy to reduce the number manually file that i have to update
when i change version

in my main parent pom i added 
1)in the dependencies management all the sub project 
2)a property with the version of my project

so at list i have reduced the manually upgrade of the version in the
interrelationship between all the sub project


obviously what remain to change in this case if update the version of the
module is
1)main module pom version
2)a property with the version of my project
3)in any subjection the version in the parent tag






--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-Release-plugin-tp5756929p5758219.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven Release plugin

2013-05-24 Thread Robert Scholte

Hi,

No, that's not supported, but there's a feature request for it:
https://jira.codehaus.org/browse/MRELEASE-431 (and related issues)

Robert

Op Fri, 24 May 2013 16:22:36 +0200 schreef Sonesh Kumar Malhotra  
:



Hi

Just wondering if there is any way to automatically increment the  
"minor" version in the pom in a multi-module project. For example:


currentVersion :- 1.0.1-SNASHOT

TO

newVersion   :- 1.1.1-SNASHOT

Currently, we have the option of achieving the same through:

"mvn release:update-versions -DdevelopmentVersion=1.1.1-SNAPSHOT  
-DgenerateBackupPoms=false -DautoVersionSubmodules=true"


But here, we need to provide the developmentVersion in the command-line.

Thanks and Best Regards,
Sonesh Kumar Malhotra


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven-release-plugin AND IBM RTC build engine...

2013-05-03 Thread Eric Kolotyluk
OK, now I see. Well you have gone further than I have with Jazz. I hope 
you find a suitable solution as I would like to use Jazz again someday.


While it is a lot of work, I might suggest setting up your own Jazz 
environment to experiment with, perhaps in a virtual machine. I have 
done the complete Jazz install myself, but it is a lot of work. It may 
have improved since then.


Cheers, Eric

On 2013-05-03 2:31 PM, Zanzerkia, Robert wrote:

Hi Eric,
I am using Jazz SCM.
It's even more painful as I don't have direct access to the build 
server (I have to go through support to even do simple experiments).

If you see my later emails it's been narrowed down to scm status 
command on the build server.
Nothing to do with the release-plugin itself.
Thanks,
Robert

-Original Message-
From: Eric Kolotyluk [mailto:eric.koloty...@gmail.com]
Sent: Friday, May 03, 2013 4:48 PM
To: users@maven.apache.org
Subject: Re: Maven-release-plugin AND IBM RTC build engine...

Doing a Maven release can be tricky if you are having problems with your
SCM plugin. It took me a long time to get release to work with Perforce
(but it still does not work properly), and you would think that would
just work.

Are you using the Jazz SCM or something else?

Cheers, Eric

On 2013-05-03 9:34 AM, Zanzerkia, Robert wrote:

I did few more experiments...
1) Renamed the RTC component so there is no space in the name.
2) Made sure directory has permission for build account etc.
3) Experimented by replacing maven command to just mvn scm:status and that 
works without error.
So it's only via release-plug-in we get the error on scm status command.

Since replease-plug-in works on my laptop this is an issue on interaction between 
maven, release-plugin and "Jazz build engine"
I re-ran the RTC build with -X switch in maven to get detailed log so 
we can compare against release.log (one from my laptop).
Thanks,
Robert
PS: I have attached  RTC_JAZZ-Build.log from build server.

Working release.log
[DEBUG] repositoryWorkspace - EI_9.05_Release_Snapshot
[DEBUG] Executing status command...
[INFO] Executing: cmd.exe /X /C "scm status --username a408072 --password * 
--wide"
[INFO] Working directory: C:\Documents and 
Settings\a408072.DMN1\workspace301-EI-9.05_Rel\EI AS-ITAM uCMDB Pattern DEV
[DEBUG] Consumed line :Workspace: (1189) "EI_9.05_Release_Snapshot" <-> (1001) "EI 
AS-ITAM uCMDB 9.02 EI Stream"


NOT working RTC build lines.
[DEBUG] repositoryWorkspace - srvrtcbuild-EI-AS-ITAM-PatternDEV-DEV_Release_WS
[DEBUG] Executing status command...
[INFO] Executing: cmd.exe /X /C "scm status --username srvrtcbuild --password * 
--wide"
[INFO] Working directory: D:\RTCBuildWorkspace\EI-ITAMTEST\uCMDBPackages
[DEBUG] ErrorConsumer.consumeLine: Problem running 'status':
[DEBUG] ErrorConsumer.consumeLine: Current directory is not shared. Run from a 
shared directory.
[ERROR] Error: Problem running 'status':
Current directory is not shared. Run from a shared directory.



-Original Message-----
From: Zanzerkia, Robert
Sent: Tuesday, April 30, 2013 11:56 AM
To: Maven Users List
Subject: RE: Maven-release-plugin AND IBM RTC build engine...

Hi,
   Actually it was Chris who helped me... Thanks Chris.

   When I said NO access to RTC Build engine I meant for the physical server 
where the build runs.
   We have a support group that manages these servers which is why I don't have 
the direct access.
   (Yes that makes it more difficult to trouble shoot).

   I am working with the local person to trouble shoot the issue.

   The issue comes down to the scm -status command where on my laptop it works 
fine but on the RTC build engine it gives below error.

We have defined
-DworkingDirectory = D:\temp\Maven (for the plugin working directory).
repository local directory = 
D:\data\mavenrepo\ei_itam_discovery
RTC load directory: load directory = ${BUILDWORKSPACE}\EI-Discovery2

   
[INFO] --- maven-release-plugin:2.4.1:prepare (default-cli) @ uCMDB-PatternDev ---

[INFO] Verifying that there are no local modifications...
[INFO]   ignoring changes on: **\pom.xml.tag, **\pom.xml.branch, 
**\pom.xml.releaseBackup, **\pom.xml.backup, **\release.properties, 
**\pom.xml.next
[INFO] Executing: cmd.exe /X /C "scm status --username srvrtcbuild --password * 
--wide"
[INFO] Working directory: D:\RTCBuildWorkspace\EI-Discovery2\EI AS-ITAM uCMDB 
Pattern DEV
[ERROR] Error: Problem running 'status':
Current directory is not shared. Run from a shared directory.

Thanks,
Robert

-Original Message-
From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
Sent: Monday, April 29, 2013 11:25 AM
To: Maven Users List
Subject: Re: Maven-release-plugin AND IBM RTC build engine...

Perhaps Chris Graham might be able to help... given that from what I
understand IBM decid

RE: Maven-release-plugin AND IBM RTC build engine...

2013-05-03 Thread Zanzerkia, Robert
Hi Eric,
I am using Jazz SCM.
It's even more painful as I don't have direct access to the build 
server (I have to go through support to even do simple experiments).

If you see my later emails it's been narrowed down to scm status 
command on the build server.
Nothing to do with the release-plugin itself.
Thanks,
Robert 

-Original Message-
From: Eric Kolotyluk [mailto:eric.koloty...@gmail.com] 
Sent: Friday, May 03, 2013 4:48 PM
To: users@maven.apache.org
Subject: Re: Maven-release-plugin AND IBM RTC build engine...

Doing a Maven release can be tricky if you are having problems with your 
SCM plugin. It took me a long time to get release to work with Perforce 
(but it still does not work properly), and you would think that would 
just work.

Are you using the Jazz SCM or something else?

Cheers, Eric

On 2013-05-03 9:34 AM, Zanzerkia, Robert wrote:
> I did few more experiments...
> 1) Renamed the RTC component so there is no space in the name.
> 2) Made sure directory has permission for build account etc.
> 3) Experimented by replacing maven command to just mvn scm:status and that 
> works without error.
>   So it's only via release-plug-in we get the error on scm status command.
>
>   Since replease-plug-in works on my laptop this is an issue on 
> interaction between maven, release-plugin and "Jazz build engine"
>   I re-ran the RTC build with -X switch in maven to get detailed log so 
> we can compare against release.log (one from my laptop).
>Thanks,
> Robert
> PS: I have attached  RTC_JAZZ-Build.log from build server.
>
> Working release.log
> [DEBUG] repositoryWorkspace - EI_9.05_Release_Snapshot
> [DEBUG] Executing status command...
> [INFO] Executing: cmd.exe /X /C "scm status --username a408072 --password 
> * --wide"
> [INFO] Working directory: C:\Documents and 
> Settings\a408072.DMN1\workspace301-EI-9.05_Rel\EI AS-ITAM uCMDB Pattern DEV
> [DEBUG] Consumed line :Workspace: (1189) "EI_9.05_Release_Snapshot" <-> 
> (1001) "EI AS-ITAM uCMDB 9.02 EI Stream"
>
>
> NOT working RTC build lines.
> [DEBUG] repositoryWorkspace - srvrtcbuild-EI-AS-ITAM-PatternDEV-DEV_Release_WS
> [DEBUG] Executing status command...
> [INFO] Executing: cmd.exe /X /C "scm status --username srvrtcbuild --password 
> * --wide"
> [INFO] Working directory: D:\RTCBuildWorkspace\EI-ITAMTEST\uCMDBPackages
> [DEBUG] ErrorConsumer.consumeLine: Problem running 'status':
> [DEBUG] ErrorConsumer.consumeLine: Current directory is not shared. Run from 
> a shared directory.
> [ERROR] Error: Problem running 'status':
> Current directory is not shared. Run from a shared directory.
>
>
> -Original Message-
> From: Zanzerkia, Robert
> Sent: Tuesday, April 30, 2013 11:56 AM
> To: Maven Users List
> Subject: RE: Maven-release-plugin AND IBM RTC build engine...
>
> Hi,
>   Actually it was Chris who helped me... Thanks Chris.
>
>   When I said NO access to RTC Build engine I meant for the physical server 
> where the build runs.
>   We have a support group that manages these servers which is why I don't 
> have the direct access.
>   (Yes that makes it more difficult to trouble shoot).
>
>   I am working with the local person to trouble shoot the issue.
>
>   The issue comes down to the scm -status command where on my laptop it works 
> fine but on the RTC build engine it gives below error.
>
> We have defined
> -DworkingDirectory = D:\temp\Maven (for the plugin working directory).
> repository local directory = 
> D:\data\mavenrepo\ei_itam_discovery
> RTC load directory: load directory = ${BUILDWORKSPACE}\EI-Discovery2
>
>   
> [INFO] --- maven-release-plugin:2.4.1:prepare (default-cli) @ 
> uCMDB-PatternDev ---
> [INFO] Verifying that there are no local modifications...
> [INFO]   ignoring changes on: **\pom.xml.tag, **\pom.xml.branch, 
> **\pom.xml.releaseBackup, **\pom.xml.backup, **\release.properties, 
> **\pom.xml.next
> [INFO] Executing: cmd.exe /X /C "scm status --username srvrtcbuild --password 
> * --wide"
> [INFO] Working directory: D:\RTCBuildWorkspace\EI-Discovery2\EI AS-ITAM uCMDB 
> Pattern DEV
> [ERROR] Error: Problem running 'status':
> Current directory is not shared. Run from a shared directory.
>
> Thanks,
> Robert
>
> -Original Message-
> From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
> Sent: Monday, April 29, 2013 11:25 AM
> To: Maven Users List
> Subject: Re: Maven-release-plugin AND IBM RTC build engine...
>
> Perhaps Chris Graham might be able to help... given that from what I
> understand IBM decided not to let him go!!! Of cou

Re: Maven-release-plugin AND IBM RTC build engine...

2013-05-03 Thread Eric Kolotyluk
Doing a Maven release can be tricky if you are having problems with your 
SCM plugin. It took me a long time to get release to work with Perforce 
(but it still does not work properly), and you would think that would 
just work.


Are you using the Jazz SCM or something else?

Cheers, Eric

On 2013-05-03 9:34 AM, Zanzerkia, Robert wrote:

I did few more experiments...
1) Renamed the RTC component so there is no space in the name.
2) Made sure directory has permission for build account etc.
3) Experimented by replacing maven command to just mvn scm:status and that 
works without error.
So it's only via release-plug-in we get the error on scm status command.

Since replease-plug-in works on my laptop this is an issue on interaction between 
maven, release-plugin and "Jazz build engine"
I re-ran the RTC build with -X switch in maven to get detailed log so 
we can compare against release.log (one from my laptop).
   Thanks,
Robert
PS: I have attached  RTC_JAZZ-Build.log from build server.

Working release.log
[DEBUG] repositoryWorkspace - EI_9.05_Release_Snapshot
[DEBUG] Executing status command...
[INFO] Executing: cmd.exe /X /C "scm status --username a408072 --password * 
--wide"
[INFO] Working directory: C:\Documents and 
Settings\a408072.DMN1\workspace301-EI-9.05_Rel\EI AS-ITAM uCMDB Pattern DEV
[DEBUG] Consumed line :Workspace: (1189) "EI_9.05_Release_Snapshot" <-> (1001) "EI 
AS-ITAM uCMDB 9.02 EI Stream"


NOT working RTC build lines.
[DEBUG] repositoryWorkspace - srvrtcbuild-EI-AS-ITAM-PatternDEV-DEV_Release_WS
[DEBUG] Executing status command...
[INFO] Executing: cmd.exe /X /C "scm status --username srvrtcbuild --password * 
--wide"
[INFO] Working directory: D:\RTCBuildWorkspace\EI-ITAMTEST\uCMDBPackages
[DEBUG] ErrorConsumer.consumeLine: Problem running 'status':
[DEBUG] ErrorConsumer.consumeLine: Current directory is not shared. Run from a 
shared directory.
[ERROR] Error: Problem running 'status':
Current directory is not shared. Run from a shared directory.
   


-Original Message-
From: Zanzerkia, Robert
Sent: Tuesday, April 30, 2013 11:56 AM
To: Maven Users List
Subject: RE: Maven-release-plugin AND IBM RTC build engine...

Hi,
  Actually it was Chris who helped me... Thanks Chris.

  When I said NO access to RTC Build engine I meant for the physical server 
where the build runs.
  We have a support group that manages these servers which is why I don't have 
the direct access.
  (Yes that makes it more difficult to trouble shoot).

  I am working with the local person to trouble shoot the issue.

  The issue comes down to the scm -status command where on my laptop it works 
fine but on the RTC build engine it gives below error.

We have defined
-DworkingDirectory = D:\temp\Maven (for the plugin working directory).
repository local directory = 
D:\data\mavenrepo\ei_itam_discovery
RTC load directory: load directory = ${BUILDWORKSPACE}\EI-Discovery2

  
[INFO] --- maven-release-plugin:2.4.1:prepare (default-cli) @ uCMDB-PatternDev ---

[INFO] Verifying that there are no local modifications...
[INFO]   ignoring changes on: **\pom.xml.tag, **\pom.xml.branch, 
**\pom.xml.releaseBackup, **\pom.xml.backup, **\release.properties, 
**\pom.xml.next
[INFO] Executing: cmd.exe /X /C "scm status --username srvrtcbuild --password * 
--wide"
[INFO] Working directory: D:\RTCBuildWorkspace\EI-Discovery2\EI AS-ITAM uCMDB 
Pattern DEV
[ERROR] Error: Problem running 'status':
Current directory is not shared. Run from a shared directory.

Thanks,
Robert

-Original Message-
From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
Sent: Monday, April 29, 2013 11:25 AM
To: Maven Users List
Subject: Re: Maven-release-plugin AND IBM RTC build engine...

Perhaps Chris Graham might be able to help... given that from what I
understand IBM decided not to let him go!!! Of course that assumes he has
access to the toolchain!


On 29 April 2013 16:07, Wayne Fay  wrote:


   I still DO NOT have the release plug-in working with RTC build engine.

...

work as well, unfortunately I don't have access to RTC build engine...

And this is exactly the reason why the release plugin does not work
with RTC build engine.

If you don't have access to RTC build engine, yet you are a customer
of IBM's and use their tools etc, how can any random open source
developer be granted the necessary access to these tools (Jazz, RTC,
etc) so the release plugin can be adapted as needed to work along with
it?

This is why Maven plugins for proprietary tools will ALWAYS lag in
functionality behind open source tools. For all intents, it
practically requires the VENDOR to put in the effort to build/adapt
the plugin for their products. If you have the ability to do so, I'd
open a bug/ticket with IBM and ask them to support the Maven release
plugin, otherwise I doubt this fun

RE: Maven-release-plugin AND IBM RTC build engine...

2013-05-03 Thread Zanzerkia, Robert
Wayne,
Ok this proves that it has nothing to do with release-plug-in.

D:\RTCBuildWorkspace\EI-ITAMTEST\uCMDBPackages>scm status --username 
srvrtcbuild  -password   --wide
Problem running 'status':
Current directory is not shared. Run from a shared directory.
 

-Original Message-
From: Wayne Fay [mailto:wayne...@gmail.com] 
Sent: Friday, May 03, 2013 2:24 PM
To: Maven Users List
Subject: Re: Maven-release-plugin AND IBM RTC build engine...

> [INFO] Executing: cmd.exe /X /C "scm status --username srvrtcbuild --password 
> * --wide"
> [INFO] Working directory: D:\RTCBuildWorkspace\EI-ITAMTEST\uCMDBPackages
> [DEBUG] ErrorConsumer.consumeLine: Problem running 'status':
> [DEBUG] ErrorConsumer.consumeLine: Current directory is not shared. Run from 
> a shared directory.

Go to that working directory.
Type that command "scm status --username svrtcbuild --password
(whatever) --wide".
Then come back here and tell us what the output was.

I still think this is a local SCM issue (Jazz) and all evidence you've
provided supports that.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven-release-plugin AND IBM RTC build engine...

2013-05-03 Thread Wayne Fay
> [INFO] Executing: cmd.exe /X /C "scm status --username srvrtcbuild --password 
> * --wide"
> [INFO] Working directory: D:\RTCBuildWorkspace\EI-ITAMTEST\uCMDBPackages
> [DEBUG] ErrorConsumer.consumeLine: Problem running 'status':
> [DEBUG] ErrorConsumer.consumeLine: Current directory is not shared. Run from 
> a shared directory.

Go to that working directory.
Type that command "scm status --username svrtcbuild --password
(whatever) --wide".
Then come back here and tell us what the output was.

I still think this is a local SCM issue (Jazz) and all evidence you've
provided supports that.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Maven-release-plugin AND IBM RTC build engine...

2013-05-03 Thread Shawn Kielty
What if ... the directory is not actually shared ... In the windows sense. 
 On the command line of the build server type "net share" and see if the 
directory is on the share list. 



From:   "Zanzerkia, Robert" 
To: Maven Users List , 
Date:   05/03/2013 09:35 AM
Subject:    RE: Maven-release-plugin AND IBM RTC build engine...



I did few more experiments...
1) Renamed the RTC component so there is no space in the name.
2) Made sure directory has permission for build account etc.
3) Experimented by replacing maven command to just mvn scm:status and that 
works without error.
 So it's only via release-plug-in we get the error on scm 
status command.

 Since replease-plug-in works on my laptop this is an 
issue on interaction between maven, release-plugin and "Jazz build engine"
 I re-ran the RTC build with -X switch in maven to get 
detailed log so we can compare against release.log (one from my laptop).
  Thanks,
Robert
PS: I have attached  RTC_JAZZ-Build.log from build server. 

Working release.log
[DEBUG] repositoryWorkspace - EI_9.05_Release_Snapshot
[DEBUG] Executing status command...
[INFO] Executing: cmd.exe /X /C "scm status --username a408072 --password 
* --wide"
[INFO] Working directory: C:\Documents and 
Settings\a408072.DMN1\workspace301-EI-9.05_Rel\EI AS-ITAM uCMDB Pattern 
DEV
[DEBUG] Consumed line :Workspace: (1189) "EI_9.05_Release_Snapshot" <-> 
(1001) "EI AS-ITAM uCMDB 9.02 EI Stream"


NOT working RTC build lines.
[DEBUG] repositoryWorkspace - 
srvrtcbuild-EI-AS-ITAM-PatternDEV-DEV_Release_WS
[DEBUG] Executing status command...
[INFO] Executing: cmd.exe /X /C "scm status --username srvrtcbuild 
--password * --wide"
[INFO] Working directory: D:\RTCBuildWorkspace\EI-ITAMTEST\uCMDBPackages
[DEBUG] ErrorConsumer.consumeLine: Problem running 'status':
[DEBUG] ErrorConsumer.consumeLine: Current directory is not shared. Run 
from a shared directory.
[ERROR] Error: Problem running 'status':
Current directory is not shared. Run from a shared directory.
 

-Original Message-----
From: Zanzerkia, Robert 
Sent: Tuesday, April 30, 2013 11:56 AM
To: Maven Users List
Subject: RE: Maven-release-plugin AND IBM RTC build engine...

Hi,
 Actually it was Chris who helped me... Thanks Chris.

 When I said NO access to RTC Build engine I meant for the physical server 
where the build runs.
 We have a support group that manages these servers which is why I don't 
have the direct access.
 (Yes that makes it more difficult to trouble shoot).

 I am working with the local person to trouble shoot the issue.

 The issue comes down to the scm -status command where on my laptop it 
works fine but on the RTC build engine it gives below error.

We have defined 
-DworkingDirectory = D:\temp\Maven (for the plugin working directory).
repository local directory = 
D:\data\mavenrepo\ei_itam_discovery
RTC load directory: load directory = ${BUILDWORKSPACE}\EI-Discovery2 

 
[INFO] --- maven-release-plugin:2.4.1:prepare (default-cli) @ 
uCMDB-PatternDev ---
[INFO] Verifying that there are no local modifications...
[INFO]   ignoring changes on: **\pom.xml.tag, **\pom.xml.branch, 
**\pom.xml.releaseBackup, **\pom.xml.backup, **\release.properties, 
**\pom.xml.next
[INFO] Executing: cmd.exe /X /C "scm status --username srvrtcbuild 
--password * --wide"
[INFO] Working directory: D:\RTCBuildWorkspace\EI-Discovery2\EI AS-ITAM 
uCMDB Pattern DEV
[ERROR] Error: Problem running 'status':
Current directory is not shared. Run from a shared directory.

Thanks,
Robert

-Original Message-
From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] 
Sent: Monday, April 29, 2013 11:25 AM
To: Maven Users List
Subject: Re: Maven-release-plugin AND IBM RTC build engine...

Perhaps Chris Graham might be able to help... given that from what I
understand IBM decided not to let him go!!! Of course that assumes he has
access to the toolchain!


On 29 April 2013 16:07, Wayne Fay  wrote:

> >   I still DO NOT have the release plug-in working with RTC build 
engine.
> ...
> > work as well, unfortunately I don't have access to RTC build engine...
>
> And this is exactly the reason why the release plugin does not work
> with RTC build engine.
>
> If you don't have access to RTC build engine, yet you are a customer
> of IBM's and use their tools etc, how can any random open source
> developer be granted the necessary access to these tools (Jazz, RTC,
> etc) so the release plugin can be adapted as needed to work along with
> it?
>
> This is why Maven plugins for proprietary tools will ALWAYS lag in
> functionality behind open source tools. For all intents, it
> practically requires the VENDOR to put in the effort to build/adapt
> the plugin for their products. If y

RE: Maven-release-plugin AND IBM RTC build engine...

2013-05-03 Thread Zanzerkia, Robert
I did few more experiments...
1) Renamed the RTC component so there is no space in the name.
2) Made sure directory has permission for build account etc.
3) Experimented by replacing maven command to just mvn scm:status and that 
works without error.
So it's only via release-plug-in we get the error on scm status command.

Since replease-plug-in works on my laptop this is an issue on 
interaction between maven, release-plugin and "Jazz build engine"
I re-ran the RTC build with -X switch in maven to get detailed log so 
we can compare against release.log (one from my laptop).
  Thanks,
Robert
PS: I have attached  RTC_JAZZ-Build.log from build server. 

Working release.log
[DEBUG] repositoryWorkspace - EI_9.05_Release_Snapshot
[DEBUG] Executing status command...
[INFO] Executing: cmd.exe /X /C "scm status --username a408072 --password * 
--wide"
[INFO] Working directory: C:\Documents and 
Settings\a408072.DMN1\workspace301-EI-9.05_Rel\EI AS-ITAM uCMDB Pattern DEV
[DEBUG] Consumed line :Workspace: (1189) "EI_9.05_Release_Snapshot" <-> (1001) 
"EI AS-ITAM uCMDB 9.02 EI Stream"


NOT working RTC build lines.
[DEBUG] repositoryWorkspace - srvrtcbuild-EI-AS-ITAM-PatternDEV-DEV_Release_WS
[DEBUG] Executing status command...
[INFO] Executing: cmd.exe /X /C "scm status --username srvrtcbuild --password 
* --wide"
[INFO] Working directory: D:\RTCBuildWorkspace\EI-ITAMTEST\uCMDBPackages
[DEBUG] ErrorConsumer.consumeLine: Problem running 'status':
[DEBUG] ErrorConsumer.consumeLine: Current directory is not shared. Run from a 
shared directory.
[ERROR] Error: Problem running 'status':
Current directory is not shared. Run from a shared directory.
  

-Original Message-
From: Zanzerkia, Robert 
Sent: Tuesday, April 30, 2013 11:56 AM
To: Maven Users List
Subject: RE: Maven-release-plugin AND IBM RTC build engine...

Hi,
 Actually it was Chris who helped me... Thanks Chris.

 When I said NO access to RTC Build engine I meant for the physical server 
where the build runs.
 We have a support group that manages these servers which is why I don't have 
the direct access.
 (Yes that makes it more difficult to trouble shoot).

 I am working with the local person to trouble shoot the issue.

 The issue comes down to the scm -status command where on my laptop it works 
fine but on the RTC build engine it gives below error.

We have defined 
-DworkingDirectory = D:\temp\Maven (for the plugin working directory).
repository local directory = 
D:\data\mavenrepo\ei_itam_discovery
RTC load directory: load directory = ${BUILDWORKSPACE}\EI-Discovery2 

 
[INFO] --- maven-release-plugin:2.4.1:prepare (default-cli) @ uCMDB-PatternDev 
---
[INFO] Verifying that there are no local modifications...
[INFO]   ignoring changes on: **\pom.xml.tag, **\pom.xml.branch, 
**\pom.xml.releaseBackup, **\pom.xml.backup, **\release.properties, 
**\pom.xml.next
[INFO] Executing: cmd.exe /X /C "scm status --username srvrtcbuild --password 
* --wide"
[INFO] Working directory: D:\RTCBuildWorkspace\EI-Discovery2\EI AS-ITAM uCMDB 
Pattern DEV
[ERROR] Error: Problem running 'status':
Current directory is not shared. Run from a shared directory.

Thanks,
Robert

-Original Message-
From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] 
Sent: Monday, April 29, 2013 11:25 AM
To: Maven Users List
Subject: Re: Maven-release-plugin AND IBM RTC build engine...

Perhaps Chris Graham might be able to help... given that from what I
understand IBM decided not to let him go!!! Of course that assumes he has
access to the toolchain!


On 29 April 2013 16:07, Wayne Fay  wrote:

> >   I still DO NOT have the release plug-in working with RTC build engine.
> ...
> > work as well, unfortunately I don't have access to RTC build engine...
>
> And this is exactly the reason why the release plugin does not work
> with RTC build engine.
>
> If you don't have access to RTC build engine, yet you are a customer
> of IBM's and use their tools etc, how can any random open source
> developer be granted the necessary access to these tools (Jazz, RTC,
> etc) so the release plugin can be adapted as needed to work along with
> it?
>
> This is why Maven plugins for proprietary tools will ALWAYS lag in
> functionality behind open source tools. For all intents, it
> practically requires the VENDOR to put in the effort to build/adapt
> the plugin for their products. If you have the ability to do so, I'd
> open a bug/ticket with IBM and ask them to support the Maven release
> plugin, otherwise I doubt this functionality will ever be added by
> anyone else.
>
> Wayne
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, 

Re: Maven-release-plugin AND IBM RTC build engine...

2013-04-30 Thread Wayne Fay
> What I don't understand is that why would it work on my local laptop
> with the same directory names? I realize the working directory on the RTC
> build server uses the Component name (RTC term) which does have spaces in it.

I couldn't even begin to guess. Clearly something is different between
your local laptop and your build server.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Maven-release-plugin AND IBM RTC build engine...

2013-04-30 Thread Zanzerkia, Robert
Hi Wayne,
What I don't understand is that why would it work on my local laptop 
with the same directory names? I realize the working directory on the RTC build 
server uses the Component name (RTC term) which does have spaces in it. 

BTW: Thanks everyone for prompt responses...

Robert 

-Original Message-
From: Wayne Fay [mailto:wayne...@gmail.com] 
Sent: Tuesday, April 30, 2013 12:09 PM
To: Maven Users List
Subject: Re: Maven-release-plugin AND IBM RTC build engine...

> [INFO] Executing: cmd.exe /X /C "scm status --username srvrtcbuild --password 
> * --wide"
> [INFO] Working directory: D:\RTCBuildWorkspace\EI-Discovery2\EI AS-ITAM uCMDB 
> Pattern DEV

Again, you probably need to ensure that all directories involved in
the build do not have any spaces in the name.

> [ERROR] Error: Problem running 'status':
> Current directory is not shared. Run from a shared directory.

I think that might be an error message from Jazz and not Maven.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven-release-plugin AND IBM RTC build engine...

2013-04-30 Thread Shawn Kielty
Consider creating this directory "D:\RTCBuildWorkspace\EI-Discovery2\EI" 
and sharing it, then try again to see if your error message changes.  It 
might help you to understand whether it's the directory name or the fact 
that it's not shared, as the message says. 

Shawn 

Re: Maven-release-plugin AND IBM RTC build engine...

2013-04-30 Thread Eric Kolotyluk
If IBM were smart they would embrace Maven and do everything possible to
support it well within Jazz. Maven does not really compete with anything
IBM is doing, but it certainly compliments it in a positive way.

I have met a few people in IBM who are sympathetic to better support for
Maven, but I think some of the higher level decision makers need to be
persuaded.

Cheers, Eric


On Tue, Apr 30, 2013 at 9:08 AM, Wayne Fay  wrote:

> > [INFO] Executing: cmd.exe /X /C "scm status --username srvrtcbuild
> --password * --wide"
> > [INFO] Working directory: D:\RTCBuildWorkspace\EI-Discovery2\EI AS-ITAM
> uCMDB Pattern DEV
>
> Again, you probably need to ensure that all directories involved in
> the build do not have any spaces in the name.
>
> > [ERROR] Error: Problem running 'status':
> > Current directory is not shared. Run from a shared directory.
>
> I think that might be an error message from Jazz and not Maven.
>
> Wayne
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Maven-release-plugin AND IBM RTC build engine...

2013-04-30 Thread Wayne Fay
> [INFO] Executing: cmd.exe /X /C "scm status --username srvrtcbuild --password 
> * --wide"
> [INFO] Working directory: D:\RTCBuildWorkspace\EI-Discovery2\EI AS-ITAM uCMDB 
> Pattern DEV

Again, you probably need to ensure that all directories involved in
the build do not have any spaces in the name.

> [ERROR] Error: Problem running 'status':
> Current directory is not shared. Run from a shared directory.

I think that might be an error message from Jazz and not Maven.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Maven-release-plugin AND IBM RTC build engine...

2013-04-30 Thread Zanzerkia, Robert
Hi,
 Actually it was Chris who helped me... Thanks Chris.

 When I said NO access to RTC Build engine I meant for the physical server 
where the build runs.
 We have a support group that manages these servers which is why I don't have 
the direct access.
 (Yes that makes it more difficult to trouble shoot).

 I am working with the local person to trouble shoot the issue.

 The issue comes down to the scm -status command where on my laptop it works 
fine but on the RTC build engine it gives below error.

We have defined 
-DworkingDirectory = D:\temp\Maven (for the plugin working directory).
repository local directory = 
D:\data\mavenrepo\ei_itam_discovery
RTC load directory: load directory = ${BUILDWORKSPACE}\EI-Discovery2 

 
[INFO] --- maven-release-plugin:2.4.1:prepare (default-cli) @ uCMDB-PatternDev 
---
[INFO] Verifying that there are no local modifications...
[INFO]   ignoring changes on: **\pom.xml.tag, **\pom.xml.branch, 
**\pom.xml.releaseBackup, **\pom.xml.backup, **\release.properties, 
**\pom.xml.next
[INFO] Executing: cmd.exe /X /C "scm status --username srvrtcbuild --password 
* --wide"
[INFO] Working directory: D:\RTCBuildWorkspace\EI-Discovery2\EI AS-ITAM uCMDB 
Pattern DEV
[ERROR] Error: Problem running 'status':
Current directory is not shared. Run from a shared directory.

Thanks,
Robert

-Original Message-
From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] 
Sent: Monday, April 29, 2013 11:25 AM
To: Maven Users List
Subject: Re: Maven-release-plugin AND IBM RTC build engine...

Perhaps Chris Graham might be able to help... given that from what I
understand IBM decided not to let him go!!! Of course that assumes he has
access to the toolchain!


On 29 April 2013 16:07, Wayne Fay  wrote:

> >   I still DO NOT have the release plug-in working with RTC build engine.
> ...
> > work as well, unfortunately I don't have access to RTC build engine...
>
> And this is exactly the reason why the release plugin does not work
> with RTC build engine.
>
> If you don't have access to RTC build engine, yet you are a customer
> of IBM's and use their tools etc, how can any random open source
> developer be granted the necessary access to these tools (Jazz, RTC,
> etc) so the release plugin can be adapted as needed to work along with
> it?
>
> This is why Maven plugins for proprietary tools will ALWAYS lag in
> functionality behind open source tools. For all intents, it
> practically requires the VENDOR to put in the effort to build/adapt
> the plugin for their products. If you have the ability to do so, I'd
> open a bug/ticket with IBM and ask them to support the Maven release
> plugin, otherwise I doubt this functionality will ever be added by
> anyone else.
>
> Wayne
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven-release-plugin AND IBM RTC build engine...

2013-04-29 Thread Stephen Connolly
Perhaps Chris Graham might be able to help... given that from what I
understand IBM decided not to let him go!!! Of course that assumes he has
access to the toolchain!


On 29 April 2013 16:07, Wayne Fay  wrote:

> >   I still DO NOT have the release plug-in working with RTC build engine.
> ...
> > work as well, unfortunately I don't have access to RTC build engine...
>
> And this is exactly the reason why the release plugin does not work
> with RTC build engine.
>
> If you don't have access to RTC build engine, yet you are a customer
> of IBM's and use their tools etc, how can any random open source
> developer be granted the necessary access to these tools (Jazz, RTC,
> etc) so the release plugin can be adapted as needed to work along with
> it?
>
> This is why Maven plugins for proprietary tools will ALWAYS lag in
> functionality behind open source tools. For all intents, it
> practically requires the VENDOR to put in the effort to build/adapt
> the plugin for their products. If you have the ability to do so, I'd
> open a bug/ticket with IBM and ask them to support the Maven release
> plugin, otherwise I doubt this functionality will ever be added by
> anyone else.
>
> Wayne
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Maven-release-plugin AND IBM RTC build engine...

2013-04-29 Thread Wayne Fay
>   I still DO NOT have the release plug-in working with RTC build engine.
...
> work as well, unfortunately I don't have access to RTC build engine...

And this is exactly the reason why the release plugin does not work
with RTC build engine.

If you don't have access to RTC build engine, yet you are a customer
of IBM's and use their tools etc, how can any random open source
developer be granted the necessary access to these tools (Jazz, RTC,
etc) so the release plugin can be adapted as needed to work along with
it?

This is why Maven plugins for proprietary tools will ALWAYS lag in
functionality behind open source tools. For all intents, it
practically requires the VENDOR to put in the effort to build/adapt
the plugin for their products. If you have the ability to do so, I'd
open a bug/ticket with IBM and ask them to support the Maven release
plugin, otherwise I doubt this functionality will ever be added by
anyone else.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Maven-release-plugin AND IBM RTC build engine...

2013-04-29 Thread Zanzerkia, Robert
Update:
  I still DO NOT have the release plug-in working with RTC build engine.
  However I got an excellent help from the SCM integration developer and I have 
the release plug-in
  working from my desktop.
  Some lessons learned:
use -DworkingDirectory switch to temp directory (to avoid sand-box 
issues).
My build was creating temporary files that did not need to be part of 
the SCM.
  - These files had to be on RTC (JazzIgnore list), otherwise plug-in 
warns of modified files the next time you do the build.

I think creating a fresh workspace directory on RTC build engine (and 
no spaces in either directory name or workspace name) it will work as well, 
unfortunately I don't have access to RTC build engine...

Thanks,
Robert 

-Original Message-
From: Zanzerkia, Robert 
Sent: Friday, April 19, 2013 10:02 PM
To: Maven Users List
Subject: RE: Maven-release-plugin AND IBM RTC build engine...

Everyone,
 Thanks for suggestions.
 I will try without spaces and reduced length for working directory folder 
name...
 If I succeed I will post the update...
 It seems most people use release plug-in but not with RTC build engine...
 Or perhaps they don't use long folder names...

Thanks,
Robert 

-Original Message-
From: Eric Kolotyluk [mailto:eric.koloty...@gmail.com] 
Sent: Friday, April 19, 2013 9:26 PM
To: users@maven.apache.org
Subject: Re: Maven-release-plugin AND IBM RTC build engine...

Sorry, I cannot stop laughing because the statement is true, but so sad.

While most Windows APIs and UIs have been fixed to handle special 
characters, such as spaces, sadly there are still places in Windows that 
have not been fixed yet, and likely will never be fixed. Don't get me 
started on path lengths ;-)

However, Linux and OS X should not get off scott free either, as they 
both have problems with special characters too in some places, but maybe 
not in this case.

I have successfully used RTC on Windows with Maven and not had any 
problems with spaces yet, but I never got as far as trying to do a 
release, so I did not want to comment on that special case. For all we 
know this could be a problem with RTC, Maven, or any number of things. I 
look forward to hearing what the solution is.

Cheers, Eric

On 2013-04-19 5:21 PM, Martin Gainty wrote:
> the bane of all Windows Implementors are special characters such as spaces in 
> folder names e.g.
> C:\Documents and Settings
>
>


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Maven-release-plugin AND IBM RTC build engine...

2013-04-19 Thread Zanzerkia, Robert
Everyone,
 Thanks for suggestions.
 I will try without spaces and reduced length for working directory folder 
name...
 If I succeed I will post the update...
 It seems most people use release plug-in but not with RTC build engine...
 Or perhaps they don't use long folder names...

Thanks,
Robert 

-Original Message-
From: Eric Kolotyluk [mailto:eric.koloty...@gmail.com] 
Sent: Friday, April 19, 2013 9:26 PM
To: users@maven.apache.org
Subject: Re: Maven-release-plugin AND IBM RTC build engine...

Sorry, I cannot stop laughing because the statement is true, but so sad.

While most Windows APIs and UIs have been fixed to handle special 
characters, such as spaces, sadly there are still places in Windows that 
have not been fixed yet, and likely will never be fixed. Don't get me 
started on path lengths ;-)

However, Linux and OS X should not get off scott free either, as they 
both have problems with special characters too in some places, but maybe 
not in this case.

I have successfully used RTC on Windows with Maven and not had any 
problems with spaces yet, but I never got as far as trying to do a 
release, so I did not want to comment on that special case. For all we 
know this could be a problem with RTC, Maven, or any number of things. I 
look forward to hearing what the solution is.

Cheers, Eric

On 2013-04-19 5:21 PM, Martin Gainty wrote:
> the bane of all Windows Implementors are special characters such as spaces in 
> folder names e.g.
> C:\Documents and Settings
>
>


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven-release-plugin AND IBM RTC build engine...

2013-04-19 Thread Eric Kolotyluk

Sorry, I cannot stop laughing because the statement is true, but so sad.

While most Windows APIs and UIs have been fixed to handle special 
characters, such as spaces, sadly there are still places in Windows that 
have not been fixed yet, and likely will never be fixed. Don't get me 
started on path lengths ;-)


However, Linux and OS X should not get off scott free either, as they 
both have problems with special characters too in some places, but maybe 
not in this case.


I have successfully used RTC on Windows with Maven and not had any 
problems with spaces yet, but I never got as far as trying to do a 
release, so I did not want to comment on that special case. For all we 
know this could be a problem with RTC, Maven, or any number of things. I 
look forward to hearing what the solution is.


Cheers, Eric

On 2013-04-19 5:21 PM, Martin Gainty wrote:

the bane of all Windows Implementors are special characters such as spaces in 
folder names e.g.
C:\Documents and Settings





-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Maven-release-plugin AND IBM RTC build engine...

2013-04-19 Thread Martin Gainty
the bane of all Windows Implementors are special characters such as spaces in 
folder names e.g.
C:\Documents and Settings 

C:DIR /X /AD
C:\DOCUME~1\a408072.DMN1\workspace301\EI AS-ITAM uCMDB Pattern DEV

specify the 8 character foldername as your Working Directory with -f  e.g.
mvn -f C:\DOCUME~1\a408072.DMN1\workspace301\EIAS-I~1 release:prepare
Martin 

__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.

 > Date: Fri, 19 Apr 2013 11:40:43 -0400
> Subject: Re: Maven-release-plugin AND IBM RTC build engine...
> From: bimargul...@gmail.com
> To: users@maven.apache.org
> 
> I'd recommend using pathnames with no spaces in them, or avoiding Windows
> altogether.
> 
> 
> On Fri, Apr 19, 2013 at 10:02 AM, Zanzerkia, Robert <
> robert.zanzer...@fmr.com> wrote:
> 
> > Hi,
> >  I am having problems making the maven-release-plugin working with local
> > RTC workspace OR in the build engine.
> >  Trying to find someone who has used maven-release-plugin WITH RTC build
> > engine.
> >
> > Thanks,
> > Robert
> >  1) If I run in the build engine I get below error.
> > I was told it's not maven-release-plug-in error rather Jazz scm
> > command line problem.
> > I have read below article:
> >
> > http://maven.apache.org/scm/maven-scm-providers/maven-scm-provider-jazz/releases.html
> >
> > Not sure what else argument I can pass.
> > I have tried to pass workingDirectory argument but I still get
> > below error.
> >
> > > [INFO] Verifying that there are no local modifications...
> > > [INFO]   ignoring changes on: **\pom.xml.tag, **\pom.xml.branch,
> > > **\pom.xml.releaseBackup, **\pom.xml.backup, **\release.properties,
> > > **\pom.xml.next
> > > [INFO] Executing: cmd.exe /X /C "scm status --username srvrtcbuild
> > > --password * --wide"
> > > [INFO] Working directory: D:\RTCBuildWorkspace\EI-Discovery\EI AS-ITAM
> > > uCMDB Pattern DEV
> > > [ERROR] Error: Problem running 'status':
> > > Current directory is not shared. Run from a shared directory.
> >
> > 2) When I try to run maven-release-plugin from my system I get below
> > problem.
> > Reading above articlet I figured I can't run it from my local
> > workspace...
> >
> > > Hi,
> > >  I am getting below error (SCM is Jazz RTC).
> > >  Is there some convention about workspace name and snapshot name has to
> > > match?
> > >  Is there a switch to override it?
> > >  I also noticed that the original workspace I had specified get's changed
> > > as follows...
> > > RTCURL:PORT are replaced with real ones in my POM.
> > >
> > > 
> > > scm:jazz:https://RTCURL:PROT
> > > /jazz:uCMDB-PatternDev-0.0.6
> > >
> > > scm:jazz:https://RTCURL:PROT:uCMDB-PatternDev-0.0.6
> > > 
> > > https://RTCURL:PROT
> > /jazz:uCMDB-PatternDev-0.0.6
> > > 
> > > 
> > >
> > >
> > >
> > > Thanks,
> > > Robert
> > >
> > > [INFO] Tagging release with the label uCMDB-PatternDev-0.0.6...
> > > [INFO] Executing: cmd.exe /X /C "scm status --username a408072 --password
> > > *
> > > --wide"
> > > [INFO] Working directory: C:\Documents and
> > > Settings> > > [INFO] Executing: cmd.exe /X /C "scm create snapshot 
> > > --repository-uri
> > > https://RTCURLHERE/jazz --username x --password * --name
> > > uCMDB-PatternDev-0
> > > .0.6 --description &quo

Re: Maven-release-plugin AND IBM RTC build engine...

2013-04-19 Thread Benson Margulies
I'd recommend using pathnames with no spaces in them, or avoiding Windows
altogether.


On Fri, Apr 19, 2013 at 10:02 AM, Zanzerkia, Robert <
robert.zanzer...@fmr.com> wrote:

> Hi,
>  I am having problems making the maven-release-plugin working with local
> RTC workspace OR in the build engine.
>  Trying to find someone who has used maven-release-plugin WITH RTC build
> engine.
>
> Thanks,
> Robert
>  1) If I run in the build engine I get below error.
> I was told it's not maven-release-plug-in error rather Jazz scm
> command line problem.
> I have read below article:
>
> http://maven.apache.org/scm/maven-scm-providers/maven-scm-provider-jazz/releases.html
>
> Not sure what else argument I can pass.
> I have tried to pass workingDirectory argument but I still get
> below error.
>
> > [INFO] Verifying that there are no local modifications...
> > [INFO]   ignoring changes on: **\pom.xml.tag, **\pom.xml.branch,
> > **\pom.xml.releaseBackup, **\pom.xml.backup, **\release.properties,
> > **\pom.xml.next
> > [INFO] Executing: cmd.exe /X /C "scm status --username srvrtcbuild
> > --password * --wide"
> > [INFO] Working directory: D:\RTCBuildWorkspace\EI-Discovery\EI AS-ITAM
> > uCMDB Pattern DEV
> > [ERROR] Error: Problem running 'status':
> > Current directory is not shared. Run from a shared directory.
>
> 2) When I try to run maven-release-plugin from my system I get below
> problem.
> Reading above articlet I figured I can't run it from my local
> workspace...
>
> > Hi,
> >  I am getting below error (SCM is Jazz RTC).
> >  Is there some convention about workspace name and snapshot name has to
> > match?
> >  Is there a switch to override it?
> >  I also noticed that the original workspace I had specified get's changed
> > as follows...
> > RTCURL:PORT are replaced with real ones in my POM.
> >
> > 
> > scm:jazz:https://RTCURL:PROT
> > /jazz:uCMDB-PatternDev-0.0.6
> >
> > scm:jazz:https://RTCURL:PROT:uCMDB-PatternDev-0.0.6
> > 
> > https://RTCURL:PROT
> /jazz:uCMDB-PatternDev-0.0.6
> > 
> > 
> >
> >
> >
> > Thanks,
> > Robert
> >
> > [INFO] Tagging release with the label uCMDB-PatternDev-0.0.6...
> > [INFO] Executing: cmd.exe /X /C "scm status --username a408072 --password
> > *
> > --wide"
> > [INFO] Working directory: C:\Documents and
> > Settings\a408072.DMN1\workspace301\EI
> >  AS-ITAM uCMDB Pattern DEV
> > [INFO] Executing: cmd.exe /X /C "scm create snapshot --repository-uri
> > https://RTCURLHERE/jazz --username x --password * --name
> > uCMDB-PatternDev-0
> > .0.6 --description "[maven-release-plugin]  copy for tag
> > uCMDB-PatternDev-0.0.6"
> >  uCMDB-PatternDev-0.0.6"
> > [INFO] Working directory: C:\Documents and
> > Settings\a408072.DMN1\workspace301\EI
> >  AS-ITAM uCMDB Pattern DEV
> > [ERROR] Error: Selector "uCMDB-PatternDev-0.0.6" did not match any
> > workspaces
> > Problem running 'create snapshot':
> > Could not find workspace or stream specified by selector
> > "uCMDB-PatternDev-0.0.6
> > "
> >
> > [INFO]
> > 
> > [INFO] BUILD FAILURE
> > [INFO]
> > 
> > [INFO] Total time: 2:09.255s
> > [INFO] Finished at: Fri Apr 12 11:33:22 EDT 2013
> > [INFO] Final Memory: 9M/247M
> > [INFO]
> > 
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-release-plugin:2.4
> > .1:prepare (default-cli) on project uCMDB-PatternDev: Unable to tag SCM
> > [ERROR] Provider message:
> > [ERROR] Error code for Jazz SCM tag (SNAPSHOT) command - 9
> > [ERROR] Command output:
> > [ERROR] Selector "uCMDB-PatternDev-0.0.6" did not match any workspaces
> > [ERROR] Problem running 'create snapshot':
> > [ERROR] Could not find workspace or stream specified by selector
> > "uCMDB-PatternD
> > ev-0.0.6"
> > [ERROR] -> [Help 1]
> > [ERROR]
> > [ERROR] To see the full stack trace of the errors, re-run Maven with the
> > -e swit
> > ch.
> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> > [ERROR]
> > [ERROR] For more information about the errors and possible solutions,
> > please rea
> > d the following articles:
>
>
> Robert Zanzerkia
> Fidelity Investments
> FTG-OPS
> Two Contra Way
> Merrimack, NH 03054
>
> Work: 603-791-3477
> Blackberry: 603-320-9682
>
>
>
>


RE: Maven-release-plugin error

2013-04-16 Thread Zanzerkia, Robert
Hi Mirko,
Thank you for your answers.
What do you mean by check out to: c:/tmp/myprj ??
Do I use below switch for that?

mvn -B -Dresume=false -DworkingDirectory=/tmp/myprj release:prepare 
release:perform 

BTW: regarding naming the workspace
We have build workspace specific to a stream so for my 
development stream I have a build workspace (RTC notation) named as: 
'srvrtcbuild-EI AS-ITAM uCMDB 9.02 EI Stream Workspace'
So we don't rename workspace with each build...
Is there a way to make release plug-in use the same workspace name I 
provided?
Looks like it wants to use tag it created based on build numbers.
Is there a way to override that?
I want release-plugin to snapshot (aka label) source code in the build 
workspace with the build version (or tag) but NOT use tag as the name of the 
workspace.

Thanks,
Robert

-Original Message-
From: Mirko Friedenhagen [mailto:mfriedenha...@gmail.com] 
Sent: Saturday, April 13, 2013 1:44 AM
To: Maven Users List
Subject: Re: Maven-release-plugin error

Third guess, on Windows upper and lower case are ignored, so C:/tm/ucmdb
and naming the tag ucmdb-patterndev-0.6.6 could help.

Regards Mirko
-- 
Sent from my mobile
On Apr 12, 2013 8:59 PM, "Zanzerkia, Robert" 
wrote:

>
> Hi,
>  I am getting below error (SCM is Jazz RTC).
>  Is there some convention about workspace name and snapshot name has to
> match?
>  Is there a switch to override it?
>  I also noticed that the original workspace I had specified get's changed
> as follows...
> RTCURL:PORT are replaced with real ones in my POM.
>
> 
> scm:jazz:https://RTCURL:PROT
> /jazz:uCMDB-PatternDev-0.0.6
>
> scm:jazz:https://RTCURL:PROT:uCMDB-PatternDev-0.0.6
> 
> https://RTCURL:PROT/jazz:uCMDB-PatternDev-0.0.6
> 
> 
>
>
>
> Thanks,
> Robert
>
> [INFO] Tagging release with the label uCMDB-PatternDev-0.0.6...
> [INFO] Executing: cmd.exe /X /C "scm status --username a408072 --password
> *
> --wide"
> [INFO] Working directory: C:\Documents and
> Settings\a408072.DMN1\workspace301\EI
>  AS-ITAM uCMDB Pattern DEV
> [INFO] Executing: cmd.exe /X /C "scm create snapshot --repository-uri
> https://RTCURLHERE/jazz --username x --password * --name
> uCMDB-PatternDev-0
> .0.6 --description "[maven-release-plugin]  copy for tag
> uCMDB-PatternDev-0.0.6"
>  uCMDB-PatternDev-0.0.6"
> [INFO] Working directory: C:\Documents and
> Settings\a408072.DMN1\workspace301\EI
>  AS-ITAM uCMDB Pattern DEV
> [ERROR] Error: Selector "uCMDB-PatternDev-0.0.6" did not match any
> workspaces
> Problem running 'create snapshot':
> Could not find workspace or stream specified by selector
> "uCMDB-PatternDev-0.0.6
> "
>
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 2:09.255s
> [INFO] Finished at: Fri Apr 12 11:33:22 EDT 2013
> [INFO] Final Memory: 9M/247M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-release-plugin:2.4
> .1:prepare (default-cli) on project uCMDB-PatternDev: Unable to tag SCM
> [ERROR] Provider message:
> [ERROR] Error code for Jazz SCM tag (SNAPSHOT) command - 9
> [ERROR] Command output:
> [ERROR] Selector "uCMDB-PatternDev-0.0.6" did not match any workspaces
> [ERROR] Problem running 'create snapshot':
> [ERROR] Could not find workspace or stream specified by selector
> "uCMDB-PatternD
> ev-0.0.6"
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e swit
> ch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please rea
> d the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
> eption
>
>
>
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven-release-plugin error

2013-04-12 Thread Mirko Friedenhagen
Third guess, on Windows upper and lower case are ignored, so C:/tm/ucmdb
and naming the tag ucmdb-patterndev-0.6.6 could help.

Regards Mirko
-- 
Sent from my mobile
On Apr 12, 2013 8:59 PM, "Zanzerkia, Robert" 
wrote:

>
> Hi,
>  I am getting below error (SCM is Jazz RTC).
>  Is there some convention about workspace name and snapshot name has to
> match?
>  Is there a switch to override it?
>  I also noticed that the original workspace I had specified get's changed
> as follows...
> RTCURL:PORT are replaced with real ones in my POM.
>
> 
> scm:jazz:https://RTCURL:PROT
> /jazz:uCMDB-PatternDev-0.0.6
>
> scm:jazz:https://RTCURL:PROT:uCMDB-PatternDev-0.0.6
> 
> https://RTCURL:PROT/jazz:uCMDB-PatternDev-0.0.6
> 
> 
>
>
>
> Thanks,
> Robert
>
> [INFO] Tagging release with the label uCMDB-PatternDev-0.0.6...
> [INFO] Executing: cmd.exe /X /C "scm status --username a408072 --password
> *
> --wide"
> [INFO] Working directory: C:\Documents and
> Settings\a408072.DMN1\workspace301\EI
>  AS-ITAM uCMDB Pattern DEV
> [INFO] Executing: cmd.exe /X /C "scm create snapshot --repository-uri
> https://RTCURLHERE/jazz --username x --password * --name
> uCMDB-PatternDev-0
> .0.6 --description "[maven-release-plugin]  copy for tag
> uCMDB-PatternDev-0.0.6"
>  uCMDB-PatternDev-0.0.6"
> [INFO] Working directory: C:\Documents and
> Settings\a408072.DMN1\workspace301\EI
>  AS-ITAM uCMDB Pattern DEV
> [ERROR] Error: Selector "uCMDB-PatternDev-0.0.6" did not match any
> workspaces
> Problem running 'create snapshot':
> Could not find workspace or stream specified by selector
> "uCMDB-PatternDev-0.0.6
> "
>
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 2:09.255s
> [INFO] Finished at: Fri Apr 12 11:33:22 EDT 2013
> [INFO] Final Memory: 9M/247M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-release-plugin:2.4
> .1:prepare (default-cli) on project uCMDB-PatternDev: Unable to tag SCM
> [ERROR] Provider message:
> [ERROR] Error code for Jazz SCM tag (SNAPSHOT) command - 9
> [ERROR] Command output:
> [ERROR] Selector "uCMDB-PatternDev-0.0.6" did not match any workspaces
> [ERROR] Problem running 'create snapshot':
> [ERROR] Could not find workspace or stream specified by selector
> "uCMDB-PatternD
> ev-0.0.6"
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e swit
> ch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please rea
> d the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
> eption
>
>
>
>


Re: Maven-release-plugin error

2013-04-12 Thread Mirko Friedenhagen
Hello,

my first guess would be the spaces in your workspace path, you could try to
check out to C:/tmp/myprj and retry. Second guess: on windows path names
must not be longer than 255 characters (at least Mercurial had problems
with this), again, a checkout to C:/tmp/myprj could help.

Regards Mirko
-- 
Sent from my mobile
On Apr 12, 2013 8:59 PM, "Zanzerkia, Robert" 
wrote:

>
> Hi,
>  I am getting below error (SCM is Jazz RTC).
>  Is there some convention about workspace name and snapshot name has to
> match?
>  Is there a switch to override it?
>  I also noticed that the original workspace I had specified get's changed
> as follows...
> RTCURL:PORT are replaced with real ones in my POM.
>
> 
> scm:jazz:https://RTCURL:PROT
> /jazz:uCMDB-PatternDev-0.0.6
>
> scm:jazz:https://RTCURL:PROT:uCMDB-PatternDev-0.0.6
> 
> https://RTCURL:PROT/jazz:uCMDB-PatternDev-0.0.6
> 
> 
>
>
>
> Thanks,
> Robert
>
> [INFO] Tagging release with the label uCMDB-PatternDev-0.0.6...
> [INFO] Executing: cmd.exe /X /C "scm status --username a408072 --password
> *
> --wide"
> [INFO] Working directory: C:\Documents and
> Settings\a408072.DMN1\workspace301\EI
>  AS-ITAM uCMDB Pattern DEV
> [INFO] Executing: cmd.exe /X /C "scm create snapshot --repository-uri
> https://RTCURLHERE/jazz --username x --password * --name
> uCMDB-PatternDev-0
> .0.6 --description "[maven-release-plugin]  copy for tag
> uCMDB-PatternDev-0.0.6"
>  uCMDB-PatternDev-0.0.6"
> [INFO] Working directory: C:\Documents and
> Settings\a408072.DMN1\workspace301\EI
>  AS-ITAM uCMDB Pattern DEV
> [ERROR] Error: Selector "uCMDB-PatternDev-0.0.6" did not match any
> workspaces
> Problem running 'create snapshot':
> Could not find workspace or stream specified by selector
> "uCMDB-PatternDev-0.0.6
> "
>
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 2:09.255s
> [INFO] Finished at: Fri Apr 12 11:33:22 EDT 2013
> [INFO] Final Memory: 9M/247M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-release-plugin:2.4
> .1:prepare (default-cli) on project uCMDB-PatternDev: Unable to tag SCM
> [ERROR] Provider message:
> [ERROR] Error code for Jazz SCM tag (SNAPSHOT) command - 9
> [ERROR] Command output:
> [ERROR] Selector "uCMDB-PatternDev-0.0.6" did not match any workspaces
> [ERROR] Problem running 'create snapshot':
> [ERROR] Could not find workspace or stream specified by selector
> "uCMDB-PatternD
> ev-0.0.6"
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e swit
> ch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please rea
> d the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
> eption
>
>
>
>


Re: [maven-release-plugin] Why does perform goal recompiles after running stage goal ?

2013-01-31 Thread Tonio Caputo
Stephen,

Really thanks very much for your quick response, really a lot helpfull
!.

And I love the 'poor man's staging'  phrase :)

thanks again
tonio


On Thu, Jan 31, 2013 at 5:29 PM, Stephen Connolly <
stephen.alan.conno...@gmail.com> wrote:

> On Thursday, 31 January 2013, Tonio Caputo wrote:
>
> > I'm using maven release for a release procedure, following this workflow
> >
> > 1 - release:branch  create a release candidate
> >  using version X.X.X-000-SNAPSHOT
> >  (000 stands for build number)
> >
> > 2 - release:prepare release:stage to deploy the
> >  artifact to a staging repository
> >
> > 3 - Repeat step 2 until release candidate is ok
> >
> > 4 - run release:perform with the last staging data
> >
> > The problem I find is that in step 4 release:perform "recompiles"
> > everything, while I was expecting just to deploy de already
> > created binaries.
> >
> > So my question:
> >
> > - Is this an expected behaviour (perform recompilation) ?
>
>
> Yes, the other builds are just from your workspace, and not from the tag.
>
> There are occasions where the workspace files can differ from the tag, so
> release:perform checks out the tag and builds from that
>
>
> >
> > - Anyway you can override this (perfrom recompilation) ?
>
>
> You can tell release:prepare to skip compilation, eg with preparationGoals
> of initialize or validate
>
> But that is skipping a different compilation than the one you want
>
>
> >
> > - I guess is a common request to expect release deploy to contain
> >   the same binaries as accepted release candidate, may be I'm wrong ?
>
>
> Well, it depends. Releases are supposed to be consistent, so it *should not
> matter* that the binary is different because of time stamps, etc... But it
> is expensive to re-run your QA process just because the time stamp on
> META-INF/MANIFEST.MF changed and hence the sha1 signature...
>
>
> >
> > - Any other way to somehow do this you think, without relying on
> >   maven repository features ?
>
>
> 1. The wagon-maven-plugin @ mojo has goals for copying from one maven repo
> to another (aka poor man's staging)
>
> 2. If you are using the (evil) maven project type in Jenkins (freestyle +
> maven build step is good though) it allows re-deploying artifacts, so you
> might be able to build a staging workflow on top of that.
>
> 3. I have wanted to feed the mrm-maven-plugin with staging support, in
> theory it is easy to add... In practice it is not very itchy for me
> compared to my other itches
>
>
> > Thanks in advance
> > tonio
> >
>


Re: [maven-release-plugin] Why does perform goal recompiles after running stage goal ?

2013-01-31 Thread Stephen Connolly
On Thursday, 31 January 2013, Tonio Caputo wrote:

> I'm using maven release for a release procedure, following this workflow
>
> 1 - release:branch  create a release candidate
>  using version X.X.X-000-SNAPSHOT
>  (000 stands for build number)
>
> 2 - release:prepare release:stage to deploy the
>  artifact to a staging repository
>
> 3 - Repeat step 2 until release candidate is ok
>
> 4 - run release:perform with the last staging data
>
> The problem I find is that in step 4 release:perform "recompiles"
> everything, while I was expecting just to deploy de already
> created binaries.
>
> So my question:
>
> - Is this an expected behaviour (perform recompilation) ?


Yes, the other builds are just from your workspace, and not from the tag.

There are occasions where the workspace files can differ from the tag, so
release:perform checks out the tag and builds from that


>
> - Anyway you can override this (perfrom recompilation) ?


You can tell release:prepare to skip compilation, eg with preparationGoals
of initialize or validate

But that is skipping a different compilation than the one you want


>
> - I guess is a common request to expect release deploy to contain
>   the same binaries as accepted release candidate, may be I'm wrong ?


Well, it depends. Releases are supposed to be consistent, so it *should not
matter* that the binary is different because of time stamps, etc... But it
is expensive to re-run your QA process just because the time stamp on
META-INF/MANIFEST.MF changed and hence the sha1 signature...


>
> - Any other way to somehow do this you think, without relying on
>   maven repository features ?


1. The wagon-maven-plugin @ mojo has goals for copying from one maven repo
to another (aka poor man's staging)

2. If you are using the (evil) maven project type in Jenkins (freestyle +
maven build step is good though) it allows re-deploying artifacts, so you
might be able to build a staging workflow on top of that.

3. I have wanted to feed the mrm-maven-plugin with staging support, in
theory it is easy to add... In practice it is not very itchy for me
compared to my other itches


> Thanks in advance
> tonio
>


Re: maven-release-plugin fails to tag on Linux but works on Windows...

2013-01-10 Thread Robert Scholte

The final line seems to explain the reason:
*svn: E170001: COPY of '/!svn/bc/199107/ParentPom': authorization failed:
Could not authenticate to server: rejected Digest challenge (
http://svnbridge.mycompany.com:8083)*

To confirm that it is not a Maven issue, you should try to re-execute the  
line behind [INFO] Executing: , but without the shell. I.e. :  cd  
"/home/tomcat7/.jenkins/jobs/ParentPom

 (trunk)/workspace" && svn --username jvincent --password '*'
 --no-auth-cache --non-interactive copy --file
 /tmp/maven-scm-320768443.commit --revision 199107
 http://svnbridge.mycompany.int:8083/ParentPom/
 http://svnbridge.mycompany.int:8083/Tags/ParentPom/ParentPom-1.29

If you're using credentials from the settings.xml, try to pass them as  
arguments. I've seen Jenkins having trouble with encrypted credentials and  
master/slave setups.


Robert


Op Thu, 10 Jan 2013 00:14:02 +0100 schreef Jeff :


I don't know if this is related to maven or SVN so hopefully this is
relevant here.

We use TFS as the source control system with SVNBridge non-Microsoft  
access.


I had a stand-alone Jenkins CI server running on Windows that we had been
using but recently I setup Jenkins on Linux (Ubuntu 12.10) in a master +  
4

slave configuration.

When I do a Maven Release from Jenkins on Windows, the process works
correctly. When releasing on Linux, I get an error during the tagging  
phase.


The odd thing is that it commits the modified POM with the release  
versions
just fine.  Here is the output from the release portion.  Is there  
anything

I'm missing about why it won't work on Linux but does on Windows?

[INFO] Checking in modified POMs...
[INFO] Executing: /bin/sh -c cd "/home/tomcat7/.jenkins/jobs/ParentPOM
(trunk)/workspace" && svn --username jvincent --password '*'
--no-auth-cache --non-interactive commit --file
/tmp/maven-scm-1181114510.commit --targets
/tmp/maven-scm-670605008954785933-targets
[INFO] Working directory: /home/tomcat7/.jenkins/jobs/ParentPom
(trunk)/workspace
[DEBUG] Sendingpom.xml
*[DEBUG] Transmitting file data .*
*[DEBUG] Committed revision 199107.*
[INFO] Tagging release with the label ParentPom-1.29...
[DEBUG] ScmTagPhase :: scmTagParameters remotingTag true
[DEBUG] ScmTagPhase :: scmTagParameters scmRevision 199107
[DEBUG] ScmTagPhase :: fileSet  basedir =
/home/tomcat7/.jenkins/jobs/ParentPom (trunk)/workspace; files = []
[DEBUG] SvnTagCommand :: scmTagParameters.remoteTagging : true
[INFO] Executing: /bin/sh -c cd "/home/tomcat7/.jenkins/jobs/ParentPom
(trunk)/workspace" && *svn --username jvincent --password '*'
--no-auth-cache --non-interactive copy --file
/tmp/maven-scm-320768443.commit --revision 199107
http://svnbridge.mycompany.int:8083/ParentPom/
http://svnbridge.mycompany.int:8083/Tags/ParentPom/ParentPom-1.29*
[INFO] Working directory: /home/tomcat7/.jenkins/jobs/ParentPom
(trunk)/workspace
*mojoFailed  
org.apache.maven.plugins:maven-release-plugin:2.3.2(default-cli)

*
projectFailed com.mycompany:ParentPom:1.29-SNAPSHOT
sessionEnded
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 2:15.172s
[INFO] Finished at: Wed Jan 09 15:56:48 MST 2013
[INFO] Final Memory: 8M/53M
[INFO]

Projects to build: [MavenProject: com.mycompany:ParentPom:1.29-SNAPSHOT @
/home/tomcat7/.jenkins/jobs/ParentPom (trunk)/workspace/pom.xml]
[JENKINS] Archiving /home/tomcat7/.jenkins/jobs/ParentPom
(trunk)/workspace/pom.xml to /home/tomcat7/.jenkins/jobs/ParentPom
(trunk)/modules/com.mycompany$ParentPom/builds/2013-01-09_15-54-24/archive/com.mycompany/ParentPom/1.29-SNAPSHOT/ParentPom-1.29-SNAPSHOT.pom
Waiting for Jenkins to finish collecting data
mavenExecutionResult exceptions not empty
message : Failed to execute goal
org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare (default-cli)
on project ParentPom: Unable to tag SCM
Provider message:
The svn tag command failed.
Command output:
*svn: E170001: COPY of '/!svn/bc/199107/ParentPom': authorization failed:
Could not authenticate to server: rejected Digest challenge (
http://svnbridge.mycompany.com:8083)*



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven-release-plugin and git

2012-12-06 Thread Coarr, Matt
Bingo! That worked like a charm! Thanks Roy!!



On 2012-12-06 09:49 , "Lyons, Roy"  wrote:

>
>This is what you want
>
>
>http://stackoverflow.com/questions/5558785/maven-release-plugin-git-and-th
>e
>-poms-not-at-the-top


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven-release-plugin and git

2012-12-06 Thread Lyons, Roy

This is what you want


http://stackoverflow.com/questions/5558785/maven-release-plugin-git-and-the
-poms-not-at-the-top







On 12/5/12 4:36 PM, "Coarr, Matt"  wrote:

>Hello,
>
>I'm able to use "mvn release:prepare" but I run into an issue when I use
>"mvn release:perform".
>
>My problem is that my scm data in my pom points to our git repository
>which contains multiple projects.
>
>Is there a way to tell release:perform to only checkout or export a
>subdirectory of the repository?  (This would be easy with svn ‹ you just
>specify the url to the project directory in svn).
>
>Another option would be to checkout the whole repository, but somehow
>tell the forked maven process to build from a certain subdirectory.
>
>I guess a third option would be maybe I'm doing something wrong with my
>tagging/branching in git.  Is it possible to tag just a subdirectory in
>git and then maybe I need to "git checkout mybranch"??
>
>Let me know if you have any ideas!
>
>Thanks!
>Matt


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: maven release plugin: release:prepare fails (svn/ maven bug)

2012-11-09 Thread Ken O'Connell
Robert
Thanks you very much for your reply.

Unfortunately, I am still having the same issue with release:prepare goal after 
making this change (i.e. utilizing 2.3.2 version of the maven-release-plugin, 
AND using the svnjava (maven-scm-plugin) as suggested in my parent pom.

I should have mentioned, we are using maven v2.2.1 and svn v1.6.9. This is 
executed through our CI server running Bamboo.
Command line: mvn release:prepare -B -Dtag=libscode-1.0.0 
-DreleaseVersion=1.0.0 -DdevelopmentVersion=1.0.1-SNAPSHOT -Dresume=false

Thanks,
-Ken

-Original Message-
From: Robert Scholte [mailto:rfscho...@apache.org]
Sent: Wednesday, November 07, 2012 5:04 PM
To: Maven Users List
Subject: Re: maven release plugin: release:prepare fails (svn/ maven bug)

Hi Ken,

the maven-release-plugin and subversion work very well together, so there 
should be no need to think of workarounds. I'd strongly suggest to not try to 
combine the exec-maven-plugin to do a release.
You refer to an issue which has been fixed a long time ago, which makes me
wonder: which version of the maven-release-plugin are you using? Please lock it 
on 2.3.2 and try it again.
Also add the svn-executable to the PATH system variable (unless you want to use 
svnjava [1]) A next step would be to let Maven log at debug-level ( add -X to 
your mvn
command) to see which commands are executed. That should give you much more 
detailed information about the cause of failures.

-Robert

[1]
http://code.google.com/a/apache-extras.org/p/maven-scm-provider-svnjava/wiki/Usage



Op Wed, 07 Nov 2012 21:51:48 +0100 schreef Ken O'Connell
:

> I am hoping someone can help me get around this problem?
>
> Trying to implement maven release plugin into our processes, I came
> across this issue (http://jira.codehaus.org/browse/SCM-406 which is a
> svn/maven bug with creating tags: 'tag already exists") in our
> release:prepare steps while executing it through our CI servers. We
> have a newer version of SVN which this bug is supposed to NOT be
> affected by, but I still see the problem.
>
> Anyway, following some workaround instructions
> http://www.flexthinker.com/2011/01/solving-%E2%80%9Cfile-already-exist
> s%E2%80%9D-mavensvn-problem/ (included; -DpreparationGoals using
> "exec:exec" with -Darguments=, BUT  I run into
> another issue, blocking me.
> The portion of the command line argument in questions is:
> -DpreparationGoals="clean install exec:exec"
> -Darguments="-Dexec.executable='C:\Program
> Files\svn-win32-1.6.1\bin\svn.exe up'"
>
> The build fails on a compilation issue when it finds an instance of
> the maven-exec-plugin (like the excerpt from a pom.xml config below).
> -because the "exec" goal for the exec-maven-plugin already exists
> (shown
> below) in an existing pom.xml file it fails to properly resolve the
> command line args.
> ...so it now FAILS the build with:
> INFO] [INFO] [exec:exec {execution: run-278Inbound}]
> ERROR: Failed to load E:\\up
>
> Snipit of pom.xml
> 
> org.codehaus.mojo
> exec-maven-plugin
> 1.2
> 
> 
> run-278Inbound
> 
> exec
> 
> generate-sources
> 
> ${mapforce.exe}
> 
> 
> ${basedir}\src\main\altova\auth278\X12ToAuth278.mfp
> /JAVA
> 
> ${basedir}/target/generated-sources/mapforce
> /LOG
> 
> ${basedir}\target\X12ToAuth278.log
> 
> 
> 
> 
> 
>
> The "up" (shown at the end of the path in the error message) is in
> reference the command intended to update the code before the execution
> of the prepare goal (svn up). ...not mixed together with an argument
> in the plugin section of my pom.xml.
>
>
> Thanks,
> Ken
>
>
> 
> CONFIDENTIALITY NOTICE: This e-mail and the information transmitted
> within including any attachments is only for the recipient(s) to which
> it is intended and may contain confidential and/or privileged material.
> Any review, retransmission, dissemination or other use of; or taking
> of any action in reliance upon this information by persons or entities
> other than the intended recipient is prohibited. If you received this
> in error, please send the e-mail back by replying to the sender and
> per

Re: [maven-release-plugin] release from non-head revision

2012-11-08 Thread Nicolas Barrera
Ok, so the maven-release-plugin does not have any way of releasing without
the branch?

Nicolás.-


On Thu, Nov 8, 2012 at 10:38 AM, Thomas Matthijs  wrote:

> On Thu, Nov 8, 2012 at 2:34 PM, Nicolas Barrera 
> wrote:
> > Hi maven-release users!
> >
> > Is it possible to checkout certain (non-head) revision of the trunk and
> use
> > release:prepare, release:perform on it?
> >
> > I 've tried and I couldn't but perhaps there 're some parameters I 'm not
> > seeing.
>
> Usually you would create a branch from the revision and release from there
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: [maven-release-plugin] release from non-head revision

2012-11-08 Thread Thomas Matthijs
On Thu, Nov 8, 2012 at 2:34 PM, Nicolas Barrera  wrote:
> Hi maven-release users!
>
> Is it possible to checkout certain (non-head) revision of the trunk and use
> release:prepare, release:perform on it?
>
> I 've tried and I couldn't but perhaps there 're some parameters I 'm not
> seeing.

Usually you would create a branch from the revision and release from there

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release plugin: release:prepare fails (svn/ maven bug)

2012-11-07 Thread Robert Scholte

Hi Ken,

the maven-release-plugin and subversion work very well together, so there  
should be no need to think of workarounds. I'd strongly suggest to not try  
to combine the exec-maven-plugin to do a release.
You refer to an issue which has been fixed a long time ago, which makes me  
wonder: which version of the maven-release-plugin are you using? Please  
lock it on 2.3.2 and try it again.
Also add the svn-executable to the PATH system variable (unless you want  
to use svnjava [1])
A next step would be to let Maven log at debug-level ( add -X to your mvn  
command) to see which commands are executed. That should give you much  
more detailed information about the cause of failures.


-Robert

[1]  
http://code.google.com/a/apache-extras.org/p/maven-scm-provider-svnjava/wiki/Usage




Op Wed, 07 Nov 2012 21:51:48 +0100 schreef Ken O'Connell  
:



I am hoping someone can help me get around this problem?

Trying to implement maven release plugin into our processes, I came  
across this issue (http://jira.codehaus.org/browse/SCM-406 which is a  
svn/maven bug with creating tags: 'tag already exists") in our  
release:prepare steps while executing it through our CI servers. We have  
a newer version of SVN which this bug is supposed to NOT be affected by,  
but I still see the problem.


Anyway, following some workaround instructions  
http://www.flexthinker.com/2011/01/solving-%E2%80%9Cfile-already-exists%E2%80%9D-mavensvn-problem/
(included; -DpreparationGoals using "exec:exec" with -Darguments=to SVN executable>, BUT  I run into another issue, blocking me.
The portion of the command line argument in questions is:  
-DpreparationGoals="clean install exec:exec"  
-Darguments="-Dexec.executable='C:\Program  
Files\svn-win32-1.6.1\bin\svn.exe up'"


The build fails on a compilation issue when it finds an instance of the  
maven-exec-plugin (like the excerpt from a pom.xml config below).  
-because the "exec" goal for the exec-maven-plugin already exists (shown  
below) in an existing pom.xml file it fails to properly resolve the  
command line args.

...so it now FAILS the build with:
INFO] [INFO] [exec:exec {execution: run-278Inbound}]
ERROR: Failed to load E:\\up

Snipit of pom.xml

org.codehaus.mojo
exec-maven-plugin
1.2


run-278Inbound

exec

generate-sources

${mapforce.exe}


${basedir}\src\main\altova\auth278\X12ToAuth278.mfp
/JAVA

${basedir}/target/generated-sources/mapforce
/LOG

${basedir}\target\X12ToAuth278.log






The "up" (shown at the end of the path in the error message) is in  
reference the command intended to update the code before the execution  
of the prepare goal (svn up). ...not mixed together with an argument in  
the plugin section of my pom.xml.



Thanks,
Ken



CONFIDENTIALITY NOTICE: This e-mail and the information transmitted  
within including any attachments is only for the recipient(s) to which  
it is intended and may contain confidential and/or privileged material.  
Any review, retransmission, dissemination or other use of; or taking of  
any action in reliance upon this information by persons or entities  
other than the intended recipient is prohibited. If you received this in  
error, please send the e-mail back by replying to the sender and  
permanently delete the entire message and its attachments from all  
computers and network systems involved in its receipt.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven release plugin failure

2012-09-23 Thread Olivier Lamy
As far I can see in the logs it's more a svn issue with the cert.
The output comes from svn cli execution.
--
Olivier
Le 23 sept. 2012 03:25, "Brian Topping"  a écrit :

> This is more of a Java question than a Maven question at this point.
>  Maven uses Java to validate certificates as a part of channel security.
>  If you don't want channel security, don't use SSL ;)
>
> I don't have enough Windoze foo to help you past this point, maybe someone
> else on the list does.  But you shouldn't have had these problems if you
> read those google results closely enough and I bet you can solve it
> yourself before someone else were to respond...
>
> Good luck!
>
> On Sep 22, 2012, at 9:12 PM, David Hoffer  wrote:
>
> > Thanks, I thought sure that was going to fix it...but after that change I
> > still get this:
> >
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare (default-cli)
> > on project dhs-commons: Unable to tag SCM
> > [ERROR] Provider message:
> > [ERROR] The svn tag command failed.
> > [ERROR] Command output:
> > [ERROR] svn: E175002: Unable to connect to a repository at URL '
> > https://server1/svn/app-commons/trunk'
> > [ERROR] svn: E175002: OPTIONS of 'https://server1/svn/app-commons/trunk
> ':
> > Server certificate verification failed: issuer is not trusted (
> > https://server1)
> > [ERROR] -> [Help 1]
> >
> > Where I have put server1 in my hosts file to point to the actual IP on
> the
> > LAN, e.g 192.168.0.xxx.  Now the error message seems to indicate it found
> > the cert...but it's not considered valid??
> >
> > I use TortiseSVN to connect to this same SVN all day long...why can't
> maven?
> >
> > -Dave
> >
> >
> >
> >
> >
> > On Sat, Sep 22, 2012 at 6:50 PM, Brian Topping 
> wrote:
> >
> >> Ah.  The -keystore parameter should point to your cacerts file that is
> >> buried somewhere in C:\Program Files\Java\jdk1.7.0_06\jre.
> >>
> >> On Sep 22, 2012, at 8:34 PM, David Hoffer  wrote:
> >>
> >>> Yeah, I had done the mvn -version to find what Java to add it to but
> that
> >>> didn't work so I added it to others too.  Here is the results of that:
> >>>
> >>> Apache Maven 3.0.4 (r1232337; 2012-01-17 01:44:56-0700)
> >>> Maven home: C:\Program Files (x86)\Maven\apache-maven-3.0.4
> >>> Java version: 1.7.0_06, vendor: Oracle Corporation
> >>> Java home: C:\Program Files\Java\jdk1.7.0_06\jre
> >>> Default locale: en_US, platform encoding: Cp1252
> >>> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
> >>>
> >>> And here is my command line to add the cert:
> >>> C:\Program Files\Java\jdk1.7.0_06\jre\bin>keytool -import -keystore
> >>> server1cert -file c:/server1cert.cer
> >>>
> >>> What I'm I missing here?
> >>>
> >>> -Dave
> >>>
> >>>
> >>> On Sat, Sep 22, 2012 at 6:15 PM, Brian Topping 
> >> wrote:
> >>>
>  Dave, I think I'd attack the latter issue first.  You have to know
> which
>  cacerts file is getting hit, otherwise it's no different than not
> >> adding it
>  at all.  "mvn -version" will tell you what Java home it's using, that
>  should help you find the proper cacerts file.  Be careful to add it to
> >> the
>  JRE and not the JDK version of cacerts.
> 
>  I have no ideas about anything from Redmond, but if it's PEM-encoded,
> it
>  should slurp right in.  IIRC, naming the alias of the cert to your
> FQDN
>  really only helps with wetware management.
> 
>  On Sep 22, 2012, at 7:53 PM, David Hoffer  wrote:
> 
> > Hum, I'm having trouble getting this to work.  I generated the self
>  signed
> > cert on the server using IIS and then on the client ran this command:
> >
> > keytool -import -keystore server1cert -file c:/server1cert.cer
> >
> > It says it imported it fine but I still get the same error using the
>  maven
> > release plugin.  I thought it might be because the cert has the
> server
>  name
> > not the IP as the CN entry so I changed the maven pom to use the
> server
> > name (in the SCM URL) instead but that didn't fix the problem not
> just
> > complains using the server name instead of the IP in the connection
> >> URL.
> >
> > Also I do have lots of Java versions (jre & jdk) and wasn't positive
>  which
> > was used by maven so I added it to several...didn't help.
> >
> > What am I missing?
> >
> > -Dave
> >
> > On Sat, Sep 22, 2012 at 3:53 PM, Brian Topping  >
>  wrote:
> >
> >> Hi David,
> >>
> >> It looks like you have an unsigned SSL certificate on your SVN
> server.
>  So
> >> you need to install the certificate in the Java keystore of hosts
> that
>  need
> >> to run the release plugin.  There are a lot of examples of this on
> the
>  net
> >> already, just google for "install unsigned cert java" or whatnot.
> >>
> >> Cheers, Brian
> >>
> >> On Sep 22, 2012, at 5:19 PM, David Hoffer 
> wrote:
> >>
> >>>

Re: Maven release plugin failure

2012-09-22 Thread David Hoffer
Yeah, probably right it's more of a Java question...imho, just shouldn't be
this hard.

I figured it out...turns out it can't be done (least not that I know of)
with just the certs steps discussed...I had to do a one time manual
checkout of the code using the command line svn client and then accept the
cert permanently using that tool.  I hope I don't have to do that
separately for each maven module...not sure on that yet.

But with that additional step the maven release worked as expected.

Thanks,
-Dave

On Sat, Sep 22, 2012 at 7:24 PM, Brian Topping  wrote:

> This is more of a Java question than a Maven question at this point.
>  Maven uses Java to validate certificates as a part of channel security.
>  If you don't want channel security, don't use SSL ;)
>
> I don't have enough Windoze foo to help you past this point, maybe someone
> else on the list does.  But you shouldn't have had these problems if you
> read those google results closely enough and I bet you can solve it
> yourself before someone else were to respond...
>
> Good luck!
>
> On Sep 22, 2012, at 9:12 PM, David Hoffer  wrote:
>
> > Thanks, I thought sure that was going to fix it...but after that change I
> > still get this:
> >
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare (default-cli)
> > on project dhs-commons: Unable to tag SCM
> > [ERROR] Provider message:
> > [ERROR] The svn tag command failed.
> > [ERROR] Command output:
> > [ERROR] svn: E175002: Unable to connect to a repository at URL '
> > https://server1/svn/app-commons/trunk'
> > [ERROR] svn: E175002: OPTIONS of 'https://server1/svn/app-commons/trunk
> ':
> > Server certificate verification failed: issuer is not trusted (
> > https://server1)
> > [ERROR] -> [Help 1]
> >
> > Where I have put server1 in my hosts file to point to the actual IP on
> the
> > LAN, e.g 192.168.0.xxx.  Now the error message seems to indicate it found
> > the cert...but it's not considered valid??
> >
> > I use TortiseSVN to connect to this same SVN all day long...why can't
> maven?
> >
> > -Dave
> >
> >
> >
> >
> >
> > On Sat, Sep 22, 2012 at 6:50 PM, Brian Topping 
> wrote:
> >
> >> Ah.  The -keystore parameter should point to your cacerts file that is
> >> buried somewhere in C:\Program Files\Java\jdk1.7.0_06\jre.
> >>
> >> On Sep 22, 2012, at 8:34 PM, David Hoffer  wrote:
> >>
> >>> Yeah, I had done the mvn -version to find what Java to add it to but
> that
> >>> didn't work so I added it to others too.  Here is the results of that:
> >>>
> >>> Apache Maven 3.0.4 (r1232337; 2012-01-17 01:44:56-0700)
> >>> Maven home: C:\Program Files (x86)\Maven\apache-maven-3.0.4
> >>> Java version: 1.7.0_06, vendor: Oracle Corporation
> >>> Java home: C:\Program Files\Java\jdk1.7.0_06\jre
> >>> Default locale: en_US, platform encoding: Cp1252
> >>> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
> >>>
> >>> And here is my command line to add the cert:
> >>> C:\Program Files\Java\jdk1.7.0_06\jre\bin>keytool -import -keystore
> >>> server1cert -file c:/server1cert.cer
> >>>
> >>> What I'm I missing here?
> >>>
> >>> -Dave
> >>>
> >>>
> >>> On Sat, Sep 22, 2012 at 6:15 PM, Brian Topping 
> >> wrote:
> >>>
>  Dave, I think I'd attack the latter issue first.  You have to know
> which
>  cacerts file is getting hit, otherwise it's no different than not
> >> adding it
>  at all.  "mvn -version" will tell you what Java home it's using, that
>  should help you find the proper cacerts file.  Be careful to add it to
> >> the
>  JRE and not the JDK version of cacerts.
> 
>  I have no ideas about anything from Redmond, but if it's PEM-encoded,
> it
>  should slurp right in.  IIRC, naming the alias of the cert to your
> FQDN
>  really only helps with wetware management.
> 
>  On Sep 22, 2012, at 7:53 PM, David Hoffer  wrote:
> 
> > Hum, I'm having trouble getting this to work.  I generated the self
>  signed
> > cert on the server using IIS and then on the client ran this command:
> >
> > keytool -import -keystore server1cert -file c:/server1cert.cer
> >
> > It says it imported it fine but I still get the same error using the
>  maven
> > release plugin.  I thought it might be because the cert has the
> server
>  name
> > not the IP as the CN entry so I changed the maven pom to use the
> server
> > name (in the SCM URL) instead but that didn't fix the problem not
> just
> > complains using the server name instead of the IP in the connection
> >> URL.
> >
> > Also I do have lots of Java versions (jre & jdk) and wasn't positive
>  which
> > was used by maven so I added it to several...didn't help.
> >
> > What am I missing?
> >
> > -Dave
> >
> > On Sat, Sep 22, 2012 at 3:53 PM, Brian Topping  >
>  wrote:
> >
> >> Hi David,
> >>
> >> It looks like you have an unsigned SSL certificate on your SVN

Re: Maven release plugin failure

2012-09-22 Thread Brian Topping
This is more of a Java question than a Maven question at this point.  Maven 
uses Java to validate certificates as a part of channel security.  If you don't 
want channel security, don't use SSL ;)

I don't have enough Windoze foo to help you past this point, maybe someone else 
on the list does.  But you shouldn't have had these problems if you read those 
google results closely enough and I bet you can solve it yourself before 
someone else were to respond...

Good luck!

On Sep 22, 2012, at 9:12 PM, David Hoffer  wrote:

> Thanks, I thought sure that was going to fix it...but after that change I
> still get this:
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare (default-cli)
> on project dhs-commons: Unable to tag SCM
> [ERROR] Provider message:
> [ERROR] The svn tag command failed.
> [ERROR] Command output:
> [ERROR] svn: E175002: Unable to connect to a repository at URL '
> https://server1/svn/app-commons/trunk'
> [ERROR] svn: E175002: OPTIONS of 'https://server1/svn/app-commons/trunk':
> Server certificate verification failed: issuer is not trusted (
> https://server1)
> [ERROR] -> [Help 1]
> 
> Where I have put server1 in my hosts file to point to the actual IP on the
> LAN, e.g 192.168.0.xxx.  Now the error message seems to indicate it found
> the cert...but it's not considered valid??
> 
> I use TortiseSVN to connect to this same SVN all day long...why can't maven?
> 
> -Dave
> 
> 
> 
> 
> 
> On Sat, Sep 22, 2012 at 6:50 PM, Brian Topping  wrote:
> 
>> Ah.  The -keystore parameter should point to your cacerts file that is
>> buried somewhere in C:\Program Files\Java\jdk1.7.0_06\jre.
>> 
>> On Sep 22, 2012, at 8:34 PM, David Hoffer  wrote:
>> 
>>> Yeah, I had done the mvn -version to find what Java to add it to but that
>>> didn't work so I added it to others too.  Here is the results of that:
>>> 
>>> Apache Maven 3.0.4 (r1232337; 2012-01-17 01:44:56-0700)
>>> Maven home: C:\Program Files (x86)\Maven\apache-maven-3.0.4
>>> Java version: 1.7.0_06, vendor: Oracle Corporation
>>> Java home: C:\Program Files\Java\jdk1.7.0_06\jre
>>> Default locale: en_US, platform encoding: Cp1252
>>> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
>>> 
>>> And here is my command line to add the cert:
>>> C:\Program Files\Java\jdk1.7.0_06\jre\bin>keytool -import -keystore
>>> server1cert -file c:/server1cert.cer
>>> 
>>> What I'm I missing here?
>>> 
>>> -Dave
>>> 
>>> 
>>> On Sat, Sep 22, 2012 at 6:15 PM, Brian Topping 
>> wrote:
>>> 
 Dave, I think I'd attack the latter issue first.  You have to know which
 cacerts file is getting hit, otherwise it's no different than not
>> adding it
 at all.  "mvn -version" will tell you what Java home it's using, that
 should help you find the proper cacerts file.  Be careful to add it to
>> the
 JRE and not the JDK version of cacerts.
 
 I have no ideas about anything from Redmond, but if it's PEM-encoded, it
 should slurp right in.  IIRC, naming the alias of the cert to your FQDN
 really only helps with wetware management.
 
 On Sep 22, 2012, at 7:53 PM, David Hoffer  wrote:
 
> Hum, I'm having trouble getting this to work.  I generated the self
 signed
> cert on the server using IIS and then on the client ran this command:
> 
> keytool -import -keystore server1cert -file c:/server1cert.cer
> 
> It says it imported it fine but I still get the same error using the
 maven
> release plugin.  I thought it might be because the cert has the server
 name
> not the IP as the CN entry so I changed the maven pom to use the server
> name (in the SCM URL) instead but that didn't fix the problem not just
> complains using the server name instead of the IP in the connection
>> URL.
> 
> Also I do have lots of Java versions (jre & jdk) and wasn't positive
 which
> was used by maven so I added it to several...didn't help.
> 
> What am I missing?
> 
> -Dave
> 
> On Sat, Sep 22, 2012 at 3:53 PM, Brian Topping 
 wrote:
> 
>> Hi David,
>> 
>> It looks like you have an unsigned SSL certificate on your SVN server.
 So
>> you need to install the certificate in the Java keystore of hosts that
 need
>> to run the release plugin.  There are a lot of examples of this on the
 net
>> already, just google for "install unsigned cert java" or whatnot.
>> 
>> Cheers, Brian
>> 
>> On Sep 22, 2012, at 5:19 PM, David Hoffer  wrote:
>> 
>>> I'm getting the following error while performing the release:prepare
>> goal.
>>> 
>>> [ERROR] Failed to execute goal
>>> org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare
>>> (default-cli) on project app-commons: Unable to tag SCM
>>> [ERROR] Provider message:
>>> [ERROR] The svn tag command failed.
>>> [ERROR] Command output:
>>> [ERROR] svn: E175002: Unab

  1   2   3   4   >