The issue of maven Multi-module jar

it is no problem for ordinary jar packages to be uploaded to the deploy repository, but if the maven project is managed by multiple sub-projects, then the jar package generated by the sub-project is uploaded by the above method, and even if it is successful, the relying party cannot download it.
always reports that parent:pom cannot find it. Take a look at the central maven warehouse and find that there is no relevant information about parent.
how should I publish the pom of a parent project?

Mar.22,2021

has encountered this problem.
but I don't know that much about maven, so let's talk about our solution.

  1. completely separate the subproject, that is, remove parent
  2. temporarily remove the modules from the parent and then deploy it. (otherwise, when deploy parent project, all child projects will also be deploy~)

clipboard.png


requires deploy, to be executed in the parent project instead of deploy in each module.

Menu