[ 
http://jira.codehaus.org/browse/MANIMALSNIFFER-8?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stephen Connolly reassigned MANIMALSNIFFER-8:
---------------------------------------------

    Assignee: Arnaud Heritier  (was: Stephen Connolly)

It looks like the rule is being fed different classpaths. I'd add some 
getLog().debug(...) statements to 
http://svn.codehaus.org/mojo/trunk/mojo/animal-sniffer/animal-sniffer-enforcer-rule/src/main/java/org/codehaus/mojo/animal_sniffer/enforcer/CheckSignatureRule.java
 to print out the list of classpath elements.

If the list is different then we have an enforcer bug... if the list is the 
same then there is something strange going on... might have something to do 
with the lifecycle phase you bind enforcer to.

How does it work if you use the animalsniffer-maven-plugin rather than the 
enforcer rule?

> Animal Sniffer enforcer rule erroneously fails
> ----------------------------------------------
>
>                 Key: MANIMALSNIFFER-8
>                 URL: http://jira.codehaus.org/browse/MANIMALSNIFFER-8
>             Project: Mojo Animal Sniffer
>          Issue Type: Bug
>          Components: Enforcer Rule
>    Affects Versions: 1.5
>            Reporter: Arnaud Heritier
>            Assignee: Arnaud Heritier
>            Priority: Blocker
>
> I have a parent pom : 
> http://svn.exoplatform.org/projects/parent/tags/8/pom.xml
> {code}
> ...
>     
> <version.animal-sniffer.enforcer-rule>1.5</version.animal-sniffer.enforcer-rule>
>     
> <animal-sniffer.signature.groupId>org.codehaus.mojo.signature</animal-sniffer.signature.groupId>
>     
> <animal-sniffer.signature.artifactId>java15</animal-sniffer.signature.artifactId>
>     <animal-sniffer.signature.version>1.0</animal-sniffer.signature.version>
> ...
>     <profile>
>       <id>release</id>
>       <build>
> ...
>         <plugins>
> ...
>           <plugin>
>             <groupId>org.apache.maven.plugins</groupId>
>             <artifactId>maven-enforcer-plugin</artifactId>
>             <dependencies>
>               <dependency>
>                 <groupId>org.codehaus.mojo</groupId>
>                 <artifactId>animal-sniffer-enforcer-rule</artifactId>
>                 <version>${version.animal-sniffer.enforcer-rule}</version>
>               </dependency>
>             </dependencies>
>             <executions>
> ...
>               <execution>
>                 <id>check-java15</id>
>                 <goals>
>                   <goal>enforce</goal>
>                 </goals>
>                 <configuration>
>                   <rules>
>                     <checkSignatureRule 
> implementation="org.codehaus.mojo.animal_sniffer.enforcer.CheckSignatureRule">
>                       <signature>
>                         <groupId>${animal-sniffer.signature.groupId}</groupId>
>                         
> <artifactId>${animal-sniffer.signature.artifactId}</artifactId>
>                         <version>${animal-sniffer.signature.version}</version>
>                       </signature>
>                     </checkSignatureRule>
>                   </rules>
>                 </configuration>
>               </execution>
>             </executions>
>           </plugin>
> ...
>         </plugins>
>       </build>
>     </profile>
> {code}
> The release profile is activated in the release plugin (v2.0), the enforcer 
> plugin used is 1.0-beta-1.
> I release this project : 
> http://svn.exoplatform.org/projects/portal/branches/2.5.x/
> When I do "mvn release:perform", everything is fine
> But If I go to target/checkout and I launch "mvn deploy -Prelease" the 
> enforcer reject the build :
> {code}
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building eXo Portal XML Parser
> [INFO]    task-segment: [deploy]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
> [INFO] [enforcer:enforce {execution: check-java15}]
> [INFO] Checking unresolved references to 
> org.codehaus.mojo.signature:java15:1.0
> [ERROR] Undefined reference: 
> sun/io/ByteToCharConverter.getConverter(Ljava/lang/String;)Lsun/io/ByteToCharConverter;
>  in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/chars/CharsDecoder.class
> [ERROR] Undefined reference: sun/nio/cs/HistoricallyNamedCharset in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/chars/CharsetSD.class
> [ERROR] Undefined reference: 
> sun/nio/cs/HistoricallyNamedCharset.historicalName()Ljava/lang/String; in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/chars/CharsetSD.class
> [ERROR] Undefined reference: 
> sun/io/ByteToCharConverter.getCharacterEncoding()Ljava/lang/String; in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/chars/ConverterSD.class
> [ERROR] Undefined reference: sun/io/ByteToCharConverter.getMaxCharsPerByte()I 
> in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/chars/ConverterSD.class
> [ERROR] Undefined reference: sun/io/ByteToCharConverter.reset()V in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/chars/ConverterSD.class
> [ERROR] Undefined reference: sun/io/ByteToCharConverter.convert([BII[CII)I in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/chars/ConverterSD.class
> [ERROR] Undefined reference: sun/io/ByteToCharConverter.nextCharIndex()I in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/chars/ConverterSD.class
> [ERROR] Undefined reference: sun/io/ByteToCharConverter.flush([CII)I in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/chars/ConverterSD.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/MultiThreadedHttpConnectionManager in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/MultiThreadedHttpConnectionManager.<init>()V in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/params/HttpConnectionManagerParams in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/params/HttpConnectionManagerParams.<init>()V in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/params/HttpConnectionManagerParams.setConnectionTimeout(I)V
>  in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/params/HttpConnectionManagerParams.setDefaultMaxConnectionsPerHost(I)V
>  in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/params/HttpConnectionManagerParams.setMaxTotalConnections(I)V
>  in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/params/HttpConnectionManagerParams.setStaleCheckingEnabled(Z)V
>  in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/MultiThreadedHttpConnectionManager.setParams(Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams;)V
>  in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: org/apache/commons/httpclient/HttpClient in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/HttpClient.<init>(Lorg/apache/commons/httpclient/HttpConnectionManager;)V
>  in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/HttpClient.getParams()Lorg/apache/commons/httpclient/params/HttpClientParams;
>  in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/HttpVersion.HTTP_1_1#Lorg/apache/commons/httpclient/HttpVersion;
>  in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/params/HttpClientParams.setParameter(Ljava/lang/String;Ljava/lang/Object;)V
>  in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/params/HttpClientParams.setCookiePolicy(Ljava/lang/String;)V
>  in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/HttpClient.getHostConfiguration()Lorg/apache/commons/httpclient/HostConfiguration;
>  in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/HostConfiguration.setHost(Ljava/lang/String;ILjava/lang/String;)V
>  in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/HostConfiguration.setProxy(Ljava/lang/String;I)V
>  in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/UsernamePasswordCredentials in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/UsernamePasswordCredentials.<init>(Ljava/lang/String;Ljava/lang/String;)V
>  in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: org/apache/commons/httpclient/NTCredentials in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/NTCredentials.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
>  in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/HttpClient.getState()Lorg/apache/commons/httpclient/HttpState;
>  in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/auth/AuthScope.ANY#Lorg/apache/commons/httpclient/auth/AuthScope;
>  in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/HttpState.setProxyCredentials(Lorg/apache/commons/httpclient/auth/AuthScope;Lorg/apache/commons/httpclient/Credentials;)V
>  in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/methods/GetMethod.setFollowRedirects(Z)V in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/methods/GetMethod.getParams()Lorg/apache/commons/httpclient/params/HttpMethodParams;
>  in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/params/HttpMethodParams.setParameter(Ljava/lang/String;Ljava/lang/Object;)V
>  in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/HttpClient.executeMethod(Lorg/apache/commons/httpclient/HttpMethod;)I
>  in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/methods/GetMethod.getResponseBodyAsStream()Ljava/io/InputStream;
>  in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/methods/GetMethod.releaseConnection()V in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/methods/GetMethod.getResponseBody()[B in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/HostConfiguration.getHost()Ljava/lang/String; 
> in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: org/apache/commons/httpclient/methods/GetMethod 
> in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/methods/GetMethod.<init>(Ljava/lang/String;)V 
> in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/common/HttpClientImpl.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/methods/GetMethod.setFollowRedirects(Z)V in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/rss/parser/RSSParser.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/HttpClient.executeMethod(Lorg/apache/commons/httpclient/HttpMethod;)I
>  in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/rss/parser/RSSParser.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/methods/GetMethod.getResponseBodyAsStream()Ljava/io/InputStream;
>  in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/rss/parser/RSSParser.class
> [ERROR] Undefined reference: 
> org/apache/commons/httpclient/methods/GetMethod.releaseConnection()V in 
> /Users/arnaud/Code/exo-alias-allinone-1.6.x.svn/portal-2.5.x/target/checkout/component/xml-parser/target/classes/org/exoplatform/services/rss/parser/RSSParser.class
> [WARNING] Rule 0: 
> org.codehaus.mojo.animal_sniffer.enforcer.CheckSignatureRule failed with 
> message:
> Signature errors found. Verify them and put @IgnoreJRERequirement on them.
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Some Enforcer rules have failed. Look above for specific messages 
> explaining why the rule failed.
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 10 seconds
> [INFO] Finished at: Fri May 21 14:30:28 CEST 2010
> [INFO] Final Memory: 38M/127M
> [INFO] 
> ------------------------------------------------------------------------
> {code}
> PERHAPS, the issue in the enforcer plugin. But I didn't have this sort of 
> problem before using the animal sniffer rule.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to