thanks

On 15 May 2010 11:32, Robert Scholte <[email protected]> wrote:

>  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<http://bamboo.ci.codehaus.org/browse/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<http://bamboo.ci.codehaus.org/browse/MOJO-VERSIONSSN-278/commit>   
> This
> build does not have any commits.
>   Error Summary<http://bamboo.ci.codehaus.org/browse/MOJO-VERSIONSSN-278/log> 
> See
> full build log<http://bamboo.ci.codehaus.org/browse/MOJO-VERSIONSSN-278/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 <http://bamboo.ci.codehaus.org/> -
> if you wish to stop receiving these emails edit your user 
> profile<http://bamboo.ci.codehaus.org/profile/userNotifications.action>or 
> notify
> your administrator<http://bamboo.ci.codehaus.org/viewAdministrators.action>  
> Want
> this information in your 
> IDE?<http://www.atlassian.com/software/ideconnector/>   Actions
>   View Online <http://bamboo.ci.codehaus.org/browse/MOJO-VERSIONSSN-278/>
> Add Comments<http://bamboo.ci.codehaus.org/browse/MOJO-VERSIONSSN-278/comment>
> View 
> Artifacts<http://bamboo.ci.codehaus.org/browse/MOJO-VERSIONSSN-278/artifact>
> Download 
> Logs<http://bamboo.ci.codehaus.org/download/MOJO-VERSIONSSN/build_logs/MOJO-VERSIONSSN-278.log>
> Link to JIRA 
> issue<http://bamboo.ci.codehaus.org/build/addJiraIssue%21default.action?buildKey=MOJO-VERSIONSSN&buildNumber=278>
>
> ------------------------------
> Express yourself instantly with MSN Messenger! MSN 
> Messenger<http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/>
>
>
>
> ------------------------------
> Express yourself instantly with MSN Messenger! MSN 
> Messenger<http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/>
>

Reply via email to