Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.5
-
Fix Version/s: 1.7
-
Component/s: Maven Plugin
-
Labels:None
-
Number of attachments :
Description
to reproduce:
$ svn co -r 911542 http://svn.apache.org/repos/asf/sling/trunk sling-builder
$ cd sling-builder
$ mvn -P animal-sniffer install
In the launchpad/builder module, you'll get errors like this:
[ERROR] Undefined reference: javax/portlet/ActionRequest.getCharacterEncoding()Ljava/lang/String; in /Users/justin/Workspace/sling-builder/launchpad/builder/target/classes/resources/bundles/0/commons-fileupload-1.2.1.jar:org/apache/commons/fileupload/portlet/PortletRequestContext.class
I have been bitten by this, too: I have a packaging requirement that forces me to put further JARs with the artifact's JAR. The maven-dependency-plugin copies this these JARs into the project's output directory in the prepare-package phase. With the animal-sniffer-maven-plugin bound to the verify phase (which IMHO makes more sense than its default phase of process-classes) these nested JARs get accidentally checked as well.