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

Build failure by missing resource #4041

Closed
aylenaf opened this issue Oct 3, 2024 · 2 comments
Closed

Build failure by missing resource #4041

aylenaf opened this issue Oct 3, 2024 · 2 comments

Comments

@aylenaf
Copy link

aylenaf commented Oct 3, 2024

Failure Log

Resource missing. [HTTP GET: https://repo.maven.apache.org/maven2/org/ajoberstar/grgit/grgit-core/4.0.1/grgit-core-4.0.1.pom]

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'junit5'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not find org.ajoberstar.grgit:grgit-core:4.0.1.
     Searched in the following locations:
       - https://plugins.gradle.org/m2/org/ajoberstar/grgit/grgit-core/4.0.1/grgit-core-4.0.1.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project : > net.nemerosa.versioning:net.nemerosa.versioning.gradle.plugin:2.14.0 > gradle.plugin.net.nemerosa:versioning:2.14.0

Context

  • Used versions (Jupiter/Vintage/Platform): org.junit.jupiter:junit-jupiter:5.7.1 and org.junit.jupiter:junit-jupiter:5.7.2
  • Build command: ./gradlew jar
@sbrannen
Copy link
Member

sbrannen commented Oct 4, 2024

@aylenaf, first and foremost, please tell us what you are trying to achieve.

Are you trying to build your own project?

Are you trying to build JUnit 5 from the sources?

Also, please note that JUnit 5.7.1 is no longer supported.

@marcphilipp
Copy link
Member

marcphilipp commented Oct 4, 2024

This looks to be caused by JCenter shutting down. The Gradle Plugin Portal used to redirect to JCenter when an artifact such as grgit-core wasn't deployed directly Maven Central. But since July it now redirects to Maven Central. The build now fails because org.ajoberstar.grgit:grgit-core:4.1.1 isn't available from there. A fix would be to update the net.nemerosa.versioning plugin to 3.0.0 or later. However, since there are no plans to do another 5.7.x release, we're not maintaining the releases/5.7.x branch any more.

@marcphilipp marcphilipp closed this as not planned Won't fix, can't repro, duplicate, stale Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants