Skip to content

Packages not available on Maven Central while p2 metadata saying so #1617

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

Closed
jochenberger opened this issue Apr 8, 2025 · 8 comments
Closed

Comments

@jochenberger
Copy link

The p2 metadata indicate that the artifacts are available on Maven Central, but they are not. That causes issues for third party apps that try to consume them, in this case the Spotless source code formatter (diffplug/spotless#2458 (comment)).
Would it be possible to publish the artifacts on Maven Central or, if that's not possible, remove those metadata entries?

@eric-milles
Copy link
Member

Where does the metadata indicate this?

@jochenberger
Copy link
Author

These are the relevant properties in the content.xml file:
Image
It should be possible to disable that: #1618

@eric-milles
Copy link
Member

eric-milles commented Apr 9, 2025

I don't think that indicates Maven Central availability. The projects use Maven to build and so they have a groupId, artifactId, version and packaging type.

<groupId>org.codehaus.groovy.eclipse</groupId>

@jochenberger
Copy link
Author

I'm afraid I don't know much about p2. @nedtwigg, could you please provide some insight?

@nedtwigg
Copy link

nedtwigg commented Apr 9, 2025

Across the p2 ecosystem, most artifacts don't specify maven coordinates. Of those that do specify maven coordinates, all of them that I have encountered have been available on maven central (speaking for jdt, groovy-eclipse in the past, wtp, cdt, m2e, etc).

It isn't a hard standard, it's just a heuristic which has worked for us until now.

@jochenberger
Copy link
Author

Okay, then this is apparently a misunderstanding on my side.
I'm closing the issue. Sorry for the noise.

@jochenberger jochenberger closed this as not planned Won't fix, can't repro, duplicate, stale Apr 9, 2025
@eric-milles
Copy link
Member

I'd have to look through the Tycho docs to figure out if they can be removed. For the most part, we are using defaults for the update site repo.

@jochenberger
Copy link
Author

Could you please try whether #1618 changes anything?

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