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

POM fails to validate with error "Developer information missing" #339

Open
edenman opened this issue Apr 6, 2022 · 2 comments
Open

POM fails to validate with error "Developer information missing" #339

edenman opened this issue Apr 6, 2022 · 2 comments
Labels

Comments

@edenman
Copy link

edenman commented Apr 6, 2022

I was missing those keys (had them under an old name). Would be cool if we could validate the generated pom.xml with whatever tool Sonatype is using

@gabrielittner
Copy link
Collaborator

I think we can do that once we stop adding mavenCentral/sonatype as the default publishing target (current release + 2, because the current behavior will be deprecated first). Adding checks like this would be a lot easier then.

@gabrielittner
Copy link
Collaborator

There are no more blockers for this. When publishing to maven central gets enabled we can register a task for each MavenPublication that depends on the pom generation task and gets the pom input. The pom can then be parsed using the same library that we use already in the integration tests and we can check if all required elements are there. Sonatype lists those requirements here https://central.sonatype.org/publish/requirements/#sufficient-metadata (more or less).

There are 2 options for wiring up the new task. We either make check depend on it so that regular CI runs catch if something is wrong. The alternative is to make the individual publish tasks depend on our validation task so that publishing fails before uploading. It's also an option to do both.

Side note: Since 0.22.0 we are also printing Sonatype errors that happened while closing the repository directly during the build. So at least you won't have to go to the website anymore in most cases to see what the issue was.

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

No branches or pull requests

2 participants