At least I found the problem :)
The commandline being executed by bamboo is: /opt/maven/apache-maven-2.0/bin/mvn clean install sonar:sonar -Dmaven.test.failure.ignore=true -Prun-its The sonar:sonar goal is added, for which no plugin-entry exists in the (effective) pom.xml The enforcer will execute the RequirePluginVersions-rule[1] and tries to find this plugin. It's not there, so it will return the status with it's default value (false), which results in this exception. Since there's already another Bamboo task checking all integration tests, I've added -Denforcer.skip=true to the builder configuration. That should silence Bamboo again - Robert [1] http://svn.apache.org/viewvc/maven/enforcer/tags/enforcer-1.0-beta-1/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java?view=markup Date: Tue, 11 May 2010 22:24:08 +0100 From: [email protected] To: [email protected] Subject: Re: [mojo-dev] [Bamboo] Mojo - versions-maven-plugin - SONAR build 278 has FAILED (0 tests failed) On 11 May 2010 20:40, Robert Scholte <[email protected]> wrote: This looks like a weird issue: [INFO] [enforcer:enforce {execution: ensure-no-container-api}] [WARNING] Rule 2: org.apache.maven.plugins.enforcer.RequirePluginVersions failed with message: Some plugins are missing valid versions:(LATEST RELEASE SNAPSHOT are not allowed ) org.codehaus.mojo:sonar-maven-plugin. The version currently in use is 1.0-beta-1 Best Practice is to always define plugin versions! [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. First of all: 1.0-beta-1 doesn't look like LATEST, RELEASE or any SNAPSHOT to me. While figuring out what really happens here, I ran into other problems when I tried to reproduce it. It seems like different versions of Maven causes different IT's to fail. For this case the versions-maven-plugin uses Maven-2.0 on Bamboo, where they all succeed (it's the enforcer who let it fail at the end) On my local machine I tried the following: Maven 2.0.7, which causes it-update-child-modules-001 to fail Maven 2.2.1, which causes it-display-plugin-updates-006 to fail Maven 3.0-beta-1, 9 out of 88 fail, so it's even worse than https://cwiki.apache.org/confluence/display/MAVEN/Maven+3.x+Plugin+Compatibility+Matrix I don't know if Stephan's concept of the mock-repository will help, but it looks like we actually have to run this plugin with different versions of Maven under Bamboo. The mock-repository will help stabilize the integration tests. at present they are too dependent on the version of maven that you prime the integration tests with. I have started reworking mock-repository-maven-plugin to use jetty as the http server (which potentially will allow me to add atomic deploy, e.g. mvn mock-repository:stage-open clean deploy mock-repository:stage-deploy -Stephen - Robert Date: Tue, 11 May 2010 03:11:04 -0500 From: [email protected] To: [email protected] Subject: [mojo-dev] [Bamboo] Mojo - versions-maven-plugin - SONAR build 278 has FAILED (0 tests failed) MOJO-VERSIONSSN-278 failed. This build was triggered at the scheduled time of 3:00 AM No failed tests found, a possible compilation error. Code Changes This build does not have any commits. Error Summary See full build log [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch Email generated by Atlassian Bamboo - if you wish to stop receiving these emails edit your user profile or notify your administrator Want this information in your IDE? Actions View Online Add Comments View Artifacts Download Logs Link to JIRA issue Express yourself instantly with MSN Messenger! MSN Messenger _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
