[
https://issues.jboss.org/browse/AS7-4154?page=com.atlassian.jira.plugin.s...
]
Ondrej Zizka edited comment on AS7-4154 at 10/26/12 10:39 AM:
--------------------------------------------------------------
Did some experiments.
It does the job, but fails with errors like
{code}
ERROR] Failed to execute goal org.codehaus.mojo:animal-sniffer-maven-plugin:1.9:build
(default-cli) on project jboss-as-testsuite-shared: A type incompatibility occured while
executing org.codehaus.mojo:animal-sniffer-maven-plugin:1.9:build: Cannot merger class
com/google/common/collect/MapMaker as it has changed superclass.
{code}
Probably multiple versions of the class.
After some further trials/errors with excludes, I made it work.
{code}
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<version>1.9</version>
<configuration>
<!--
<skipIfNoJavaHome>true</skipIfNoJavaHome>
<includeJavaHome>false</includeJavaHome>
<includeDependencies>
<includeDependency>org.jboss.as:*</includeDependency>
</includeDependencies>
-->
<excludeDependencies>
<excludeDependency>com.sun.faces:*</excludeDependency>
<excludeDependency>com.google.collections:*</excludeDependency>
</excludeDependencies>
<includeClasses>
<includeClass>org.jboss.as.*</includeClass>
</includeClasses>
<excludeClasses>
<excludeClass>com.sun.*</excludeClass>
<excludeClass>com.google.common.collect.MapMaker</excludeClass>
</excludeClasses>
</configuration>
</plugin>
{code}
was (Author: ozizka):
Did some experiments.
It does the job, but fails with some error about com.sun.faces.util.Util$1. Probably
multiple versions of the class.
That would need further trial/error with excludes.
{code}
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<version>1.9</version>
<configuration>
<!--
<skipIfNoJavaHome>true</skipIfNoJavaHome>
<includeJavaHome>false</includeJavaHome>
<includeDependencies>
<includeDependency>org.jboss.as:*</includeDependency>
</includeDependencies>
-->
<excludeDependencies>
<excludeDependency>com.sun.faces:*</excludeDependency>
</excludeDependencies>
<includeClasses>
<includeClass>org.jboss.as.*</includeClass>
</includeClasses>
<excludeClasses>
<excludeClass>com.sun.*</excludeClass>
</excludeClasses>
</configuration>
</plugin>
</plugins>
{code}
TS: API changes report - Animal sniffer maven plugin
----------------------------------------------------
Key: AS7-4154
URL:
https://issues.jboss.org/browse/AS7-4154
Project: Application Server 7
Issue Type: Sub-task
Components: Test Suite
Reporter: Ondrej Zizka
Assignee: Ondrej Zizka
Fix For: 7.2.0.Alpha1
Original Estimate: 3 days
Remaining Estimate: 3 days
Add support for such report.
See:
http://mojo.codehaus.org/animal-sniffer-maven-plugin/
{code}
mvn animal-sniffer:build -DincludeJavaHome=false -DskipIfNoJavaHome=true
{code}
--
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