I'm using maven-deploy-plugin in multi-module project with deployAtEnd
property set to true
.
After executing mvn deploy
in root project, deploy plugin is executed for each subproject - I can see something like:
[INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @ subproject-name ---
[INFO] Deploying package:subproject-name:v1.1 at end
Last invocation is for root project:
[INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @ parent-project ---
[INFO] Deploying package:parent-project:v1.1 at end
and that's all, actual deployment is not executed.
How do I make deploy plugin work correctly in multi-module project with deployAtEnd=true
?
Today I resolved the same problem in my project.
The problem modules have extansions (
<extension>
tags). They violate a counter of built modules in maven-deploy-plugin.To fix it I moved
<extension>
to the root POM.As we just ran into this issue today, I found the related issue in maven-deploy-plugin:
https://issues.apache.org/jira/plugins/servlet/mobile#issue/MDEPLOY-193
Jérôme Joslet explantation in this issue :