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 > > >
