Skip to content

Cannot pass animal-sniffer-maven-plugin's check signatures #6980

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Gidi233 opened this issue Mar 26, 2025 · 1 comment
Open

Cannot pass animal-sniffer-maven-plugin's check signatures #6980

Gidi233 opened this issue Mar 26, 2025 · 1 comment
Labels
Waiting on feedback Issues that require feedback from User/Other community members

Comments

@Gidi233
Copy link

Gidi233 commented Mar 26, 2025

[ERROR] Failed to execute goal org.codehaus.mojo:animal-sniffer-maven-plugin:1.16:check (signature-check) on project hadoop-yarn-server-router: Failed to check signatures: failed to process jar /Users/lujingchao/.m2/repository/io/fabric8/kubernetes-client/7.1.0/kubernetes-client-7.1.0.jar : Bad class file /Users/lujingchao/.m2/repository/io/fabric8/kubernetes-client/7.1.0/kubernetes-client-7.1.0.jar:io/fabric8/kubernetes/client/impl/Adapters.class: IllegalArgumentException

The following is the plugin configuration of animal-sniffer-maven-plugin:

        <groupId>org.codehaus.mojo</groupId>
        <artifactId>animal-sniffer-maven-plugin</artifactId>
        <version>1.16</version>
        <executions>
          <execution>
            <id>signature-check</id>
            <phase>verify</phase>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <signature>
            <groupId>org.codehaus.mojo.signature</groupId>
            <artifactId>java18</artifactId>
            <version>1.0</version>
          </signature>
          <ignores>
            <ignore>sun.misc.*</ignore>
            <ignore>sun.net.*</ignore>
            <ignore>sun.nio.ch.*</ignore>
            <ignore>com.sun.javadoc.*</ignore>
            <ignore>com.sun.tools.*</ignore>
            <ignore>java.lang.invoke.*</ignore>
          </ignores>
        </configuration>
      </plugin>
@manusa
Copy link
Member

manusa commented Mar 26, 2025

It seems more of an issue with the plugin than with our code base.
Also, the

<artifactId>java18</artifactId>

looks very suspicious. Seems it should only be compatible with Java 8 (1.8) projects. Fabric8 Kubernetes Client has the baseline in Java 11.

@manusa manusa added the Waiting on feedback Issues that require feedback from User/Other community members label Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting on feedback Issues that require feedback from User/Other community members
Projects
None yet
Development

No branches or pull requests

2 participants