I changed my pom so that animal-sniffer is bound to the verify phase which a better phase for such a feature, but I still get a this behaviour. I setup animal sniffer on another artifact. (You can see hereunder this pom.xml). I still get errors regarding commons-codec and code of mine. Where am I wrong ?
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java14:1.0 com/dexia/sofaxis/sso/common/SSOException [ERROR] Undefined reference: com/dexia/sofaxis/sso/common/SSOException.<init>()V in C:\root\sofaxis-custom-sso\sso-common\target\classes\com\dexia\sofaxis\sso\common\CorruptedTicketException .class com/dexia/sofaxis/sso/common/SSOException [ERROR] Undefined reference: org/apache/commons/codec/binary/Base64 in C:\root\sofaxis-custom-sso\sso-common\target\classes\com\dexia\sofaxis\sso\common\SSOUtils.class org/apache/commons/codec/binary/Base64 [ERROR] Undefined reference: org/apache/commons/codec/binary/Base64.<init>()V in C:\root\sofaxis-custom-sso\sso-common\target\classes\com\dexia\sofaxis\sso\common\SSOUtils.class com/dexia/sofaxis/sso/common/SSOUtils [ERROR] Undefined reference: com/dexia/sofaxis/sso/common/CorruptedTicketException.<init>()V in C:\root\sofaxis-custom-sso\sso-common\target\classes\com\dexia\sofaxis\sso\common\SSOUtils.cla ss java/lang/StringBuffer java/lang/StringBuffer java/lang/StringBuffer java/lang/StringBuffer com/dexia/sofaxis/sso/common/SSOUtils java/text/SimpleDateFormat java/lang/StringBuffer java/lang/StringBuffer java/lang/StringBuffer com/dexia/sofaxis/sso/common/SSOUtils java/lang/StringBuffer java/lang/StringBuffer java/security/MessageDigest java/lang/String java/security/MessageDigest java/security/MessageDigest java/lang/String com/dexia/sofaxis/sso/common/SSOUtils org/apache/commons/codec/binary/Base64 [ERROR] Undefined reference: org/apache/commons/codec/binary/Base64.encode([B)[B in C:\root\sofaxis-custom-sso\sso-common\target\classes\com\dexia\sofaxis\sso\common\SSOUtils.class java/lang/String java/lang/RuntimeException java/lang/RuntimeException com/dexia/sofaxis/sso/common/SSOUtils java/text/SimpleDateFormat java/util/Calendar java/util/Calendar com/dexia/sofaxis/sso/common/SSOUtils java/util/Calendar java/util/Date java/util/Date java/util/Calendar java/util/Date com/dexia/sofaxis/sso/common/CorruptedTicketException com/dexia/sofaxis/sso/common/CorruptedTicketException java/util/Date java/util/Date com/dexia/common/util/URLBuilder (...) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE <dependencies> <dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>com.dexia.sofaxis.siactuel</groupId> <artifactId>common_util</artifactId> <version>1.0</version> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.4</source> <target>1.4</target> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>animal-sniffer-maven-plugin</artifactId> <executions> <execution> <id>check-java-version</id> <phase>verify</phase> <goals> <goal>check</goal> </goals> <configuration> <signature> <groupId>org.codehaus.mojo.signature</groupId> <artifactId>java14</artifactId> <version>1.0</version> </signature> </configuration> </execution> </executions> </plugin> </plugins> </build> Stephen Connolly-2 wrote: > > 1. Any dependencies that are listed in your pom should be automatically > ignored. I assume you have a dependency for the catalina.jar in your pom? > > 2. you should _not_ bind to the compile phase, as the execution order is > not > defined within a phase. bind to a phase that is later than compile, e.g. > test or verify. The examples on the website (e.g. > http://mojo.codehaus.org/animal-sniffer-maven-plugin/examples/checking-signatures.html) > show binding to a phase after compile > > 2009/12/23 djeanprost <[email protected]> > >> >> Hello, >> >> I'm trying to use animal sniffer maven plugin in my pom.xml >> It gives me error tellign me that some of the API I use in my code are >> not >> present in the signature I mentionned. The API I use come from >> catalina.jar >> I can't believe I have to ignore all the API I use, don't I ? >> >> Thank you >> >> The error I get: >> org/apache/catalina/authenticator/AuthenticatorBase >> [ERROR] Undefined reference: >> org/apache/catalina/authenticator/AuthenticatorBase.<init>()V in >> >> C:\root\tomcat-valve-custom-sso\target\classes\com\dexia\sofaxis\tomcat\authenticator\SofaxisSSO >> Authenticator.class >> com/dexia/sofaxis/tomcat/authenticator/SofaxisSSOAuthenticator >> [ERROR] Undefined reference: >> >> com/dexia/sofaxis/tomcat/authenticator/SofaxisSSOAuthenticator.containerLog#Lorg/apache/commons/logging/Log; >> in C:\root\tomcat-valve-custom-sso\target\classes\co >> m\dexia\sofaxis\tomcat\authenticator\SofaxisSSOAuthenticator.class >> org/apache/commons/logging/Log >> [ERROR] Undefined reference: >> org/apache/commons/logging/Log.debug(Ljava/lang/Object;)V in >> >> C:\root\tomcat-valve-custom-sso\target\classes\com\dexia\sofaxis\tomcat\authenticator\SofaxisSSOAuth >> enticator.class >> com/dexia/sofaxis/tomcat/authenticator/SofaxisSSOAuthenticator >> java/lang/StringBuffer >> java/lang/StringBuffer >> >> >> >> <plugins> >> <plugin> >> <artifactId>maven-compiler-plugin</artifactId> >> <configuration> >> <source>1.4</source> >> <target>1.4</target> >> </configuration> >> </plugin> >> <plugin> >> <groupId>org.codehaus.mojo</groupId> >> <artifactId>animal-sniffer-maven-plugin</artifactId> >> <executions> >> <execution> >> <id>check-java-version</id> >> <phase>compile</phase> >> <goals> >> <goal>check</goal> >> </goals> >> <configuration> >> <signature> >> <groupId>org.codehaus.mojo.signature</groupId> >> <artifactId>java14</artifactId> >> <version>1.0</version> >> </signature> >> </configuration> >> </execution> >> </executions> >> </plugin> >> </plugins> >> -- >> View this message in context: >> http://old.nabble.com/Don%27t-understant-animal-sniffer-behaviour-tp26902338p26902338.html >> Sent from the mojo - user mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> > > -- View this message in context: http://old.nabble.com/Don%27t-understand-animal-sniffer-behaviour-tp26902338p26911440.html Sent from the mojo - user mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
