Repository navigation
ci: build the Central bundle ourselves and upload with the Portal API - #5
Merged
Merged
Conversation
The central-publishing plugin staged maven-metadata-local.xml and _remote.repositories into
the bundle and Central rejected it ("Bundle has content that does NOT have a .pom file").
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problema
O primeiro deploy (tag
v0.1.1) assinou tudo, mas o Central rejeitou:Bundle has content that does NOT have a .pom file: tech/corvo/corvo-nfse. Ocentral-publishing-maven-plugin(testei 0.6.0, 0.7.0 e 0.8.0) colocava no bundlemaven-metadata-local.xmle_remote.repositories, que o Central não aceita. As flags do Maven que testei não evitam isso.O que muda
scripts/central-bundle.shmonta o bundle limpo:.pom, jar, sources, javadoc, as assinaturas.asce os checksums md5/sha1.mvn -Prelease verify), montar o bundle, enviar pela API do Portal (/api/v1/publisher/upload,USER_MANAGED) e esperar a validação.releasedopom.xml.Verificado
Montei o bundle localmente (assinado com uma chave descartável): só os arquivos esperados, sem
maven-metadata-local.xmlnem_remote.repositories. O envio ao Central só roda com as credenciais reais, então a primeira execução dirá se há algum outro problema.🤖 Generated with Claude Code