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

Same maven coordinates but different content between maven central and jitpack.io #59

Open
jeremiehuchet opened this issue Jan 24, 2022 · 2 comments

Comments

@jeremiehuchet
Copy link

I noticed that artifact com.github.java-json-tools:jackson-coreutils:2.0 doesn't have the same content in maven central and jitpack.io repository :

It caused me trouble executing plugin org.openapi:openapi-generator-maven-plugin:5.1.1 on a project using artifacts from jitpack.io.
Repositories declared in the pom.xml takes precedence over maven central and the jackson-coreutils artifact from jitpack.io was fetch. This artifact depends on com.github.java-json-tools.jackson-coreutils:jackson-coreutils:2.0 (please note the different groupid) which seems unavailable neither in maven central nor jitpack.io.
As a workaround, I declared the maven central repository before the jitpack.io repository in my pom.xml.

It seems to me it is dangerous that the same artifact coordinates are used across different repositories with different artifact content.

Is this project managing deployments to jitpack.io ?

@marcoeig
Copy link

thanks for the workaround, took me a the whole morning to figure out what's causing my build to fail

@FrelliBB
Copy link

FrelliBB commented May 22, 2024

We also started getting affected by this issue just now on our CI server, where some of our repositories were getting this dependency from jitpack, and some from maven central. This, I believe, was corrupting the .m2 repositories cache on our CI agent and causing builds to fail seemingly randomly. I don't think there's anything the maintainers of this project can do, but I want to leave this comment to help anyone who comes across a similar problem in the future.

Our fix right now is to stop using jitpack in all our repositories.

Could not find artifact com.github.java-json-tools.jackson-coreutils:jackson-coreutils:jar:2.0 in remote (https://***.jfrog.io/***/***)

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

3 participants