Issue Type: Bug Bug
Affects Versions: 2.5
Assignee: Unassigned
Created: 01/May/13 12:59 PM
Description:

When using an ignoredDifferencesFilter file which contains a 7005 difference type, an exception is thrown while running mvn clirr:check.

I added the following rule:
<difference>
<differenceType>7005</differenceType>
<className>com/google/api/client/auth/oauth2/Credential$Builder</className>
<method>com.google.api.client.auth.oauth2.Credential$Builder setRefreshListeners(java.util.List)</method>
<to>com.google.api.client.auth.oauth2.Credential$Builder setRefreshListeners(java.util.Collection)</to>
</difference>

which means that Credential$Builder.setRefreshListeners method signature was changed from getting a list to get a collection.

When running mvn clirr:check, I see the following:
[ERROR] Failed to execute goal org.codehaus.mojo:clirr-maven-plugin:2.5:check (default-cli) on project google-oauth-client: A type incompatibility occured while executing org.codehaus.mojo:clirr-maven-plugin:2.5:check: java.util.Arrays$ArrayList cannot be cast to org.codehaus.mojo.clirr.Difference
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.codehaus.mojo:clirr-maven-plugin:2.5
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/usr/local/google/home/peleyal/.m2/repository/org/codehaus/mojo/clirr-maven-plugin/2.5/clirr-maven-plugin-2.5.jar
[ERROR] urls[1] = file:/usr/local/google/home/peleyal/.m2/repository/net/sf/clirr/clirr-core/0.6/clirr-core-0.6.jar
[ERROR] urls[2] = file:/usr/local/google/home/peleyal/.m2/repository/org/apache/bcel/bcel/5.2/bcel-5.2.jar
[ERROR] urls[3] = file:/usr/local/google/home/peleyal/.m2/repository/jakarta-regexp/jakarta-regexp/1.4/jakarta-regexp-1.4.jar
[ERROR] urls[4] = file:/usr/local/google/home/peleyal/.m2/repository/org/apache/maven/doxia/doxia-decoration-model/1.0/doxia-decoration-model-1.0.jar
[ERROR] urls[5] = file:/usr/local/google/home/peleyal/.m2/repository/org/apache/maven/doxia/doxia-module-xhtml/1.0/doxia-module-xhtml-1.0.jar
[ERROR] urls[6] = file:/usr/local/google/home/peleyal/.m2/repository/org/apache/maven/doxia/doxia-core/1.0/doxia-core-1.0.jar
[ERROR] urls[7] = file:/usr/local/google/home/peleyal/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0/doxia-sink-api-1.0.jar
[ERROR] urls[8] = file:/usr/local/google/home/peleyal/.m2/repository/org/apache/maven/doxia/doxia-site-renderer/1.0/doxia-site-renderer-1.0.jar
[ERROR] urls[9] = file:/usr/local/google/home/peleyal/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.7/plexus-velocity-1.1.7.jar
[ERROR] urls[10] = file:/usr/local/google/home/peleyal/.m2/repository/org/apache/velocity/velocity/1.5/velocity-1.5.jar
[ERROR] urls[11] = file:/usr/local/google/home/peleyal/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar
[ERROR] urls[12] = file:/usr/local/google/home/peleyal/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
[ERROR] urls[13] = file:/usr/local/google/home/peleyal/.m2/repository/commons-collections/commons-collections/3.2/commons-collections-3.2.jar
[ERROR] urls[14] = file:/usr/local/google/home/peleyal/.m2/repository/org/apache/maven/doxia/doxia-module-apt/1.0/doxia-module-apt-1.0.jar
[ERROR] urls[15] = file:/usr/local/google/home/peleyal/.m2/repository/org/apache/maven/doxia/doxia-module-fml/1.0/doxia-module-fml-1.0.jar
[ERROR] urls[16] = file:/usr/local/google/home/peleyal/.m2/repository/org/apache/maven/doxia/doxia-module-xdoc/1.0/doxia-module-xdoc-1.0.jar
[ERROR] urls[17] = file:/usr/local/google/home/peleyal/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.jar
[ERROR] urls[18] = file:/usr/local/google/home/peleyal/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-6/plexus-i18n-1.0-beta-6.jar
[ERROR] urls[19] = file:/usr/local/google/home/peleyal/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.7/plexus-utils-3.0.7.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/PluginExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

Environment: Ubuntu
Project: Maven 2.x Clirr Plugin
Priority: Major Major
Reporter: Eyal Peled
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to