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.

 

- 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! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Reply via email to