You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Akira Ajisaka (JIRA)" <ji...@apache.org> on 2019/02/04 04:09:00 UTC

[jira] [Commented] (HADOOP-15938) [JDK 11] hadoop-annotations build fails with 'Failed to check signatures'

    [ https://issues.apache.org/jira/browse/HADOOP-15938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16759612#comment-16759612 ] 

Akira Ajisaka commented on HADOOP-15938:
----------------------------------------

I'm thinking animal-sniffer-maven-plugin can be removed. Now Apache Hadoop supports only Java 8, so we don't need to check this. If we support both Java 8 and 11, we can check the signatures by {{javac --source 1.8}} command.
In addition, animal-sniffer will not support Java 11: https://github.com/mojohaus/animal-sniffer/issues/62

> [JDK 11] hadoop-annotations build fails with 'Failed to check signatures'
> -------------------------------------------------------------------------
>
>                 Key: HADOOP-15938
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15938
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: build
>    Affects Versions: 0.3.2
>         Environment: openjdk version "11" 2018-09-25
>            Reporter: Devaraj K
>            Assignee: Dinesh Chitlangia
>            Priority: Major
>         Attachments: HADOOP-15938.001.patch
>
>
> {code:xml}
> [INFO] Checking unresolved references to org.codehaus.mojo.signature:java18:1.0
> [ERROR] Bad class file /hadoop/hadoop-common-project/hadoop-annotations/target/classes/org/apache/hadoop/classification/InterfaceAudience.class
> {code}
> {code:xml}
> [ERROR] Failed to execute goal org.codehaus.mojo:animal-sniffer-maven-plugin:1.16:check (signature-check) on project hadoop-annotations: Failed to check signatures: Bad class file /hadoop/hadoop-common-project/hadoop-annotations/target/classes/org/apache/hadoop/classification/InterfaceAudience.class: IllegalArgumentException -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:animal-sniffer-maven-plugin:1.16:check (signature-check) on project hadoop-annotations: Failed to check signatures
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
> {code}
> {code:xml}
> Caused by: java.io.IOException: Bad class file /hadoop/hadoop-common-project/hadoop-annotations/target/classes/org/apache/hadoop/classification/InterfaceAudience.class
>     at org.codehaus.mojo.animal_sniffer.ClassListBuilder.process (ClassListBuilder.java:91)
> {code}
> {code:xml}
> Caused by: java.lang.IllegalArgumentException
>     at org.objectweb.asm.ClassReader.<init> (Unknown Source)
>     at org.objectweb.asm.ClassReader.<init> (Unknown Source)
>     at org.objectweb.asm.ClassReader.<init> (Unknown Source)
>     at org.codehaus.mojo.animal_sniffer.ClassListBuilder.process (ClassListBuilder.java:69)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org