Problem with Bamboo 4.1.2 and maven release plugin

I'm migrating from bamoo 2.7.3 on up to bamboo 4.1.2 but i'm having problems migrating a build plan that uses the maven release plugin.

The build plan is just running the maven release plugin. Here's what is currently working in the 2.7.3 version.

-B -Dmaven.test.skip -DuseReleaseProfile=false -DpreparationGoals="clean install" -Darguments="-Ddisable.tomcat.deploy=true -Dmaven.test.skip" release:clean release:prepare release:perform

I tried copy and pasting the same into the new version but ran up against this error:

failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare (default-cli) on project rpmBuilder: Failed to re-parse additional arguments for Maven invocation. unbalanced quotes in "-Ddisable.tomcat.deploy=true -Dmaven.test.skip -P default

This appears to be a problem with the maven release plugin and i downgraded back to version 2.1 but had the same problem. I then stripped out the -Darguments= section and modified the command to look like:

-B -Dmaven.test.skip -DuseReleaseProfile=false -DpreparationGoals="clean install" release:clean release:prepare release:perform

but ran against:

No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-site, site, post-site, site-deploy, pre-clean, clean, post-clean.

I'm here because copy and pasting that command line into the command line builds maven fine.

2 answers

A comment on https://jira.atlassian.com/browse/BAM-9234 seems to indicate a possible solution.

-Darguments="-Ddisable.tomcat.deploy=true -Dmaven.test.skip"

should be

"-Darguments=-Ddisable.tomcat.deploy=true -Dmaven.test.skip"

Works for me.

Did you work through this? I'm having the same problem :/

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,081 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot