It's all about the answers!

Ask a question

Problem Using Maven Release Pluggin Against JAZZ

Matthew Vermilion (1468) | asked Nov 11 '14, 12:29 p.m.
edited Nov 11 '14, 12:42 p.m.
Here is the command line I am using:

My environment:

  RTC 4.0.6

I run the following against my project:

mvn -X --batch-mode release:prepare -DautoVersionSubmodules=true -DreleaseVersion= -DdevelopmentVersion= -Dtag=Foo- -DcommitByProject=true >console.txt

The poms are correctly transformed to release poms.

Most times when attempting to commit release poms:
[INFO] Executing: cmd.exe /X /C "scm create changeset --username --password ***** "[maven-release-plugin] prepare release Foo-""
[INFO] Working directory: C:\ws\kepler\Foo-SB-Trunk\tenx-build-settings

[DEBUG] Consumed line :Created change set (1103).
[DEBUG] ErrorConsumer.consumeLine: Job found still running after platform shutdown.  Jobs should be canceled by the plugin that scheduled them during shutdown:$1

The tagging and fails every time:
[INFO] Working directory: C:\ws\kepler\Foo-SB-Trunk\tenx-build
[INFO] Tagging release with the label Foo-
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.1:prepare (default-cli) on project 10x-build: Jazz Url "" is not a valid URL. The Jazz Url syntax is scm:jazz:[username[;password]@]http[s]://server_name[:port]/contextRoot:repositoryWorkspace -> [Help 1]

I can clearly see the url correctly in the

I played with the url a few times to convince myself that it will use that on resume.  Just doesn't seem to parse it correctly.

So, Two Issues:
      Aside - The "delete <workspace>/.metadata/.plugins/org.eclipse.core.resources/.snap" doesn't work either -probably because I use -DcommitByProject=true and make multiple trips to the well.

Please help.  I am on my second day with this integration and I feel that at this point I know the release plugin like the back of my hand (which was not a bucket list item for me).

sam detweiler commented Nov 11 '14, 4:11 p.m.

Others have reported problems with the maven release plugin with RTC repos

One answer

permanent link
Chris Graham (367714) | answered Nov 12 '14, 7:09 p.m.
Hi Matthew.

I'm the author of the mavn jazz provider.

I do note that you're using a lot of unnecessary (should be specified by the default options, or should be in your pom.xml to start with) options when calling the maven release plugin.

A few questions.

Firstly, what does the <scm> section of your pom.xml look like? It appears that you have a multi module project, so that should only ever be specified in the root pom.xml.

Secondly, why are you using commitByProject? If it is a properly nested project (and it should be), then it should be all fine.

We've had a few other issues with the RTC client, and some regression issues in the command line parameters, but I do not think that they apply to 4.0.6. They were all related to the --dir option that went missing anyway, so that would appear not to apply to you.

My advise it to keep it simple, and specify all that you can in the pom or accept the defaults. The only think that you have to do is to specify -DworkingDirectory for the release:perform, as jazz does not (did not???) support nested sandboxes, so you need to point it elsewhere (outside of the jazz scm workspace).


Your answer

Register or to post your answer.