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

Still pointing to defunct codehaus #934

Open
elharo opened this issue Nov 28, 2024 · 3 comments
Open

Still pointing to defunct codehaus #934

elharo opened this issue Nov 28, 2024 · 3 comments

Comments

@elharo
Copy link

elharo commented Nov 28, 2024

Not sure where exactly this comes from. Could be a few dependencies deep. Worth investigating.

INFO] Project [spotbugs-maven-plugin] Resolving Poms...
[WARNING] Failed to access maven repository http://nexus.codehaus.org/snapshots/ due to: nexus.codehaus.org
[WARNING] Failed to access maven repository http://snapshots.repository.codehaus.org due to: snapshots.repository.codehaus.org

@elharo elharo changed the title Still pointintg to defunct codehaus Still pointing to defunct codehaus Nov 28, 2024
@hazendaz
Copy link
Member

Its likely inside the pom of this project for that part. Do you know if there is any better way to determine where that might be coming from? I can certainly dig around but suspect its some legacy part of the maven artifacts that exist in this build.

@elharo
Copy link
Author

elharo commented Nov 29, 2024

I'll try to hunt this down. It could be coming from a transitive dependency. If so, cleaning up the dependency tree is a good first step. They're some old things in there including commons-lang 2.

@elharo
Copy link
Author

elharo commented Nov 29, 2024

A bit more context:

[INFO] <<< rewrite:5.45.0:run (default) < process-test-classes @ spotbugs-maven-plugin <<<
[INFO] 
[INFO] 
[INFO] --- rewrite:5.45.0:run (default) @ spotbugs-maven-plugin ---
[INFO] Using active recipe(s) [org.openrewrite.java.RemoveUnusedImports]
[INFO] Using active styles(s) []
[INFO] Validating active recipes...
[INFO] Project [spotbugs-maven-plugin] Resolving Poms...
[WARNING] Failed to access maven repository http://nexus.codehaus.org/snapshots/ due to: nexus.codehaus.org
[WARNING] Failed to access maven repository http://snapshots.repository.codehaus.org due to: snapshots.repository.codehaus.org

so it's possible this comes from the rewrite plugin. You can add the removeUnusedImports option to spotless (if it's not there already) to let spotless handle this and then remove this plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants