Skip to content

ci: build the Central bundle ourselves and upload with the Portal API - #5

Merged
pedrohrod merged 1 commit into
mainfrom
fix/central-bundle
Oct 17, 2026
Merged

pedrohrod merged 1 commit into
mainfrom
fix/central-bundle

Conversation

@pedrohrod

Copy link
Copy Markdown
Contributor

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. O central-publishing-maven-plugin (testei 0.6.0, 0.7.0 e 0.8.0) colocava no bundle maven-metadata-local.xml e _remote.repositories, que o Central não aceita. As flags do Maven que testei não evitam isso.

O que muda

  • scripts/central-bundle.sh monta o bundle limpo: .pom, jar, sources, javadoc, as assinaturas .asc e os checksums md5/sha1.
  • O workflow passa a: assinar (mvn -Prelease verify), montar o bundle, enviar pela API do Portal (/api/v1/publisher/upload, USER_MANAGED) e esperar a validação.
  • O plugin sai do perfil release do pom.xml.

Verificado

Montei o bundle localmente (assinado com uma chave descartável): só os arquivos esperados, sem maven-metadata-local.xml nem _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

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>
@pedrohrod
pedrohrod merged commit 5163f50 into main Oct 17, 2026
3 checks passed
@pedrohrod
pedrohrod deleted the fix/central-bundle branch October 17, 2026 13:48
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

Successfully merging this pull request may close these issues.

1 participant