Hi,
I am working on getting the maven release plugin integrated into our
development cycle.
We are using Subversion 1.6.11 and with Apache 2.2.15. Maven 2.2.1. Bamboo is
running on a Windows server.
I am having problems getting it running from Bamboo.
Here is the section setting up the release plugin from the pom:
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.1</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<scmCommentPrefix>TXLAP-345[maven-release-plugin]</scmCommentPrefix>
<preparationGoals>clean verify install</preparationGoals>
<checkModificationExcludes>
<checkModificationExclude>build-number.txt</checkModificationExclude>
<checkModificationExclude>drop.sql</checkModificationExclude>
<checkModificationExclude>synscript.sql</checkModificationExclude>
<checkModificationExclude>grantscript.sql</checkModificationExclude>
</checkModificationExcludes>
</configuration>
</plugin>
Here is the command I am running:
-B release:clean release:prepare -DdryRun=true -DreleaseVersion=0.12.1-TEST.1
-Pcontinuous-integration,continuous-integration-dev-build,test-profile,live,content,writesource-ear
-gs C:\apache-maven-2.2.1\conf\dev-build-settings.xml
Here is the error I get when running it from Bamboo:
[release:clean {execution: default-cli}]
01-Feb-2011 12:19:14 [INFO] Cleaning up after release...
01-Feb-2011 12:19:14 [INFO] [release:prepare {execution: default-cli}]
01-Feb-2011 12:19:14 [INFO] Verifying that there are no local modifications...
01-Feb-2011 12:19:14 [INFO] ignoring changes on: pom.xml.next, drop.sql,
release.properties, pom.xml.releaseBackup, grantscript.sql, pom.xml.backup,
build-number.txt, pom.xml.branch, synscript.sql, pom.xml.tag
01-Feb-2011 12:19:14 [INFO] Executing: cmd.exe /X /C "svn --non-interactive
status"
01-Feb-2011 12:19:14 [INFO] Working directory:
E:\Bamboo\bamboo-home\xml-data\build-dir\TXLA-EVDEVBLDDPLYTEST-JOB1
01-Feb-2011 12:19:19 [INFO]
------------------------------------------------------------------------
01-Feb-2011 12:19:19 [ERROR] BUILD FAILURE
01-Feb-2011 12:19:19 [INFO]
------------------------------------------------------------------------
01-Feb-2011 12:19:19 [INFO] Cannot prepare the release because you have local
modifications :
01-Feb-2011 12:19:19
[java\service-layer\application-services\identify-management-application-services\identify-management-application-services-data\src\main\java\com\hmh\service\ims\errorcodes\ErrorCodes.java:modified]
.
.
.
(many more java files listed)
If I immediately go in to the command line where bamboo checked out the code to
and run the exact same command (including the mvn at the beginning) I do not
get the message that there local changes and the dry run succeeds.
Going in and manually looking at the java files after the bamboo failure
reveals that the files in the directory are the same as those in the repo.
Does anyone have any ideas as to what might be going on?
Thanks,
Steve