Hi,
I'm trying to use the animal sniffer Maven plugin to verify that code is compatible with JDK1.4. The following configuration works:
<plugin>
<groupId>org.jvnet</groupId>
<artifactId>animal-sniffer</artifactId>
<version>1.2</version>
<configuration>
<signature>
<groupId>org.jvnet.animal-sniffer</groupId>
<artifactId>java1.4</artifactId>
<version>1.0</version>
</signature>
</configuration>
</plugin>
However this is using the old org.jvnet
version of the plugin. When I try to use the new org.codehaus.mojo
version
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<version>1.5</version>
<configuration>
<signature>
<groupId>org.jvnet.animal-sniffer</groupId>
<artifactId>java1.4</artifactId>
<version>1.0</version>
</signature>
</configuration>
</plugin>
I get the error
[INFO] Failed to resolve artifact.
GroupId: org.codehaus.mojo.animal-sniffer
ArtifactId: java1.4
Version: 1.0
Notice that this is the artifact referred to in the <signature>
section, not the plugin itself. This same artifact is referenced in both versions, so I don't understand why it's not found when using the new version.
Has anyone successfully configured this plugin to work when using the new version?
Thanks, Don