Skip to content
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

When attempting to build latest, I can't transfer animal-sniffer #626

Closed
rwmyers opened this issue Dec 8, 2023 · 1 comment
Closed

When attempting to build latest, I can't transfer animal-sniffer #626

rwmyers opened this issue Dec 8, 2023 · 1 comment

Comments

@rwmyers
Copy link

rwmyers commented Dec 8, 2023

Describe the bug
I'm attempting to do a new setup and can't get past the following error:

[ERROR] Failed to execute goal org.codehaus.mojo:animal-sniffer-maven-plugin:1.23:check (default) on project tinylog-api: Execution default of goal org.codehaus.mojo:animal-sniffer-maven-plugin:1.23:check failed: Plugin org.codehaus.mojo:animal-sniffer-maven-plugin:1.23 or one of its dependencies could not be resolved: Failed to collect dependencies at org.codehaus.mojo:animal-sniffer-maven-plugin:jar:1.23 -> org.codehaus.mojo:animal-sniffer:jar:1.23: Failed to read artifact descriptor for org.codehaus.mojo:animal-sniffer:jar:1.23: Could not transfer artifact org.codehaus.mojo:animal-sniffer:pom:1.23 from/to central (https://repo.maven.apache.org/maven2): transfer failed for https://repo.maven.apache.org/maven2/org/codehaus/mojo/animal-sniffer/1.23/animal-sniffer-1.23.pom: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]

To Reproduce
Steps to reproduce the behavior:

  1. Pull latest tinylog
  2. Install maven
  3. Install openjdk-9
  4. Run mvn clean verify as suggested by the contribution MD file

I've attempted this on two different Ubuntu distributions without success. I've pulled the POM as well and attempted to use keytool to apply the cert. The guide suggests submitting a bug.

@rwmyers rwmyers added the bug label Dec 8, 2023
@pmwmedia
Copy link
Member

Are you behind a company proxy or firewall? Sounds like a typical issue with proxies that require self-signed third-party SSL certificates. https://repo.maven.apache.org is the official remote Maven repository and should have a valid SSL certificate for sure.

A workaround could be to use another JDK (version 11 or 17) for transferring all required artifacts. As soon as all required artifacts are in the local repository, you should be able to use OpenJDK 9 to build tinylog.

@pmwmedia pmwmedia closed this as not planned Won't fix, can't repro, duplicate, stale Jan 16, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants