[ 
http://jira.codehaus.org/browse/MCHECKSTYLE-155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul Nyheim updated MCHECKSTYLE-155:
------------------------------------

    Attachment: myartifactid.zip

zipped up copy of my test project used to reproduce the problem
unzip on ubuntu, run mvn checkstyle:checkstyle to reproduce

> Checkstyle plugin fails on ubuntu with maven 3
> ----------------------------------------------
>
>                 Key: MCHECKSTYLE-155
>                 URL: http://jira.codehaus.org/browse/MCHECKSTYLE-155
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5, 2.6
>         Environment: Ubuntu 10.10
> $ mvn -version
> Apache Maven 3.0.2 (r1056850; 2011-01-09 01:58:10+0100)
> Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.24/jre
> Default locale: en_DK, platform encoding: UTF-8
> OS name: "linux", version: "2.6.35-27-generic", arch: "amd64", family: "unix"
>            Reporter: Paul Nyheim
>            Priority: Critical
>         Attachments: myartifactid.zip
>
>
> Checkstyle plugin fails on Ubuntu with the following error message:
> {noformat}
> $ mvn checkstyle:checkstyle
> [INFO] Scanning for projects...
> [INFO]                                                                        
>  
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building myartifactid 1.0-SNAPSHOT
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-checkstyle-plugin:2.5:checkstyle (default-cli) @ 
> myartifactid ---
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 1.311s
> [INFO] Finished at: Thu Mar 10 14:01:14 CET 2011
> [INFO] Final Memory: 8M/105M
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-checkstyle-plugin:2.5:checkstyle (default-cli) 
> on project myartifactid: Execution 
> default-cli of goal 
> org.apache.maven.plugins:maven-checkstyle-plugin:2.5:checkstyle failed: An 
> API incompatibility was encountered while 
> executing org.apache.maven.plugins:maven-checkstyle-plugin:2.5:checkstyle: 
> java.lang.ClassFormatError: Method "<init>" 
> in class com/google/common/collect/Sets$SetView has illegal signature "()b"
> [ERROR] -----------------------------------------------------
> [ERROR] realm =    plugin>org.apache.maven.plugins:maven-checkstyle-plugin:2.5
> [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] = 
> file:/home/pauln/.m2/repository/org/apache/maven/plugins/maven-checkstyle-plugin/2.5/maven-checkstyle-plugin-2.5.jar
> [ERROR] urls[1] = 
> file:/home/pauln/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.jar
> [ERROR] urls[2] = 
> file:/home/pauln/.m2/repository/org/apache/maven/reporting/maven-reporting-impl/2.0.4.3/maven-reporting-impl-2.0.4.3.jar
> [ERROR] urls[3] = 
> file:/home/pauln/.m2/repository/org/apache/maven/doxia/doxia-core/1.0/doxia-core-1.0.jar
> [ERROR] urls[4] = 
> file:/home/pauln/.m2/repository/commons-validator/commons-validator/1.2.0/commons-validator-1.2.0.jar
> [ERROR] urls[5] = 
> file:/home/pauln/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar
> [ERROR] urls[6] = 
> file:/home/pauln/.m2/repository/commons-digester/commons-digester/1.6/commons-digester-1.6.jar
> [ERROR] urls[7] = 
> file:/home/pauln/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar
> [ERROR] urls[8] = 
> file:/home/pauln/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0/doxia-sink-api-1.0.jar
> [ERROR] urls[9] = 
> file:/home/pauln/.m2/repository/org/apache/maven/doxia/doxia-decoration-model/1.0/doxia-decoration-model-1.0.jar
> [ERROR] urls[10] = 
> file:/home/pauln/.m2/repository/org/apache/maven/doxia/doxia-site-renderer/1.0/doxia-site-renderer-1.0.jar
> [ERROR] urls[11] = 
> file:/home/pauln/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar
> [ERROR] urls[12] = 
> file:/home/pauln/.m2/repository/org/apache/maven/doxia/doxia-module-apt/1.0/doxia-module-apt-1.0.jar
> [ERROR] urls[13] = 
> file:/home/pauln/.m2/repository/org/apache/maven/doxia/doxia-module-fml/1.0/doxia-module-fml-1.0.jar
> [ERROR] urls[14] = 
> file:/home/pauln/.m2/repository/org/apache/maven/doxia/doxia-module-xdoc/1.0/doxia-module-xdoc-1.0.jar
> [ERROR] urls[15] = 
> file:/home/pauln/.m2/repository/org/apache/maven/doxia/doxia-module-xhtml/1.0/doxia-module-xhtml-1.0.jar
> [ERROR] urls[16] = 
> file:/home/pauln/.m2/repository/org/apache/maven/shared/maven-doxia-tools/1.0.2/maven-doxia-tools-1.0.2.jar
> [ERROR] urls[17] = 
> file:/home/pauln/.m2/repository/commons-io/commons-io/1.4/commons-io-1.4.jar
> [ERROR] urls[18] = 
> file:/home/pauln/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
> [ERROR] urls[19] = 
> file:/home/pauln/.m2/repository/org/codehaus/plexus/plexus-resources/1.0-alpha-6/plexus-resources-1.0-alpha-6.jar
> [ERROR] urls[20] = 
> file:/home/pauln/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar
> [ERROR] urls[21] = 
> file:/home/pauln/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.7/plexus-velocity-1.1.7.jar
> [ERROR] urls[22] = 
> file:/home/pauln/.m2/repository/checkstyle/checkstyle/5.0/checkstyle-5.0.jar
> [ERROR] urls[23] = 
> file:/home/pauln/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar
> [ERROR] urls[24] = 
> file:/home/pauln/.m2/repository/commons-beanutils/commons-beanutils-core/1.7.0/commons-beanutils-core-1.7.0.jar
> [ERROR] urls[25] = 
> file:/home/pauln/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
> [ERROR] urls[26] = 
> file:/home/pauln/.m2/repository/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.jar
> [ERROR] urls[27] = 
> file:/home/pauln/.m2/repository/com/google/collections/google-collections/0.9/google-collections-0.9.jar
> [ERROR] urls[28] = 
> file:/home/pauln/.m2/repository/org/apache/velocity/velocity/1.5/velocity-1.5.jar
> [ERROR] urls[29] = 
> file:/home/pauln/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar
> [ERROR] urls[30] = file:/home/pauln/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
> [ERROR] urls[31] = 
> file:/home/pauln/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar
> [ERROR] Number of foreign imports: 1
> [ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
> [ERROR] 
> [ERROR] -----------------------------------------------------
> [ERROR] -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please 
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
> {noformat}
> Steps needed to reproduce:
> * Project created using archetype: maven-archetype-quickstart (mvn 
> archetype:generate)
> * Added the following to the created pom.xml (tried both 2.5 and 2.6 which is 
> reported to work with maven 3)
> {code:xml}
> <plugin>
>   <groupId>org.apache.maven.plugins</groupId>
>   <artifactId>maven-checkstyle-plugin</artifactId>
>   <version>2.6</version>
> </plugin>
> {code}
> * mvn checkstyle:checkstyle

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to