You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Karl Heinz Marbaise (JIRA)" <ji...@apache.org> on 2015/09/17 18:55:04 UTC
[jira] [Comment Edited] (MDEPLOY-201) deployAtEnd issue for
multi-module projects
[ https://issues.apache.org/jira/browse/MDEPLOY-201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14803210#comment-14803210 ]
Karl Heinz Marbaise edited comment on MDEPLOY-201 at 9/17/15 4:54 PM:
----------------------------------------------------------------------
Do you have an example project for it? Based on your explanations i would say it looks like this:
{code:xml}
<project >
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.soebes.smpp</groupId>
<artifactId>smpp</artifactId>
<version>1.2.0</version>
</parent>
<groupId>com.soebes.examples.j2ee</groupId>
<artifactId>parent</artifactId>
<version>1.1.2-SNAPSHOT</version>
<packaging>pom</packaging>
...
<modules>
<module>webgui</module>
<module>app</module>
<module>domain</module>
<module>service</module>
<module>service-client</module>
<module>appasm</module>
<module>assembly</module>
<module>shade</module>
</modules>
</project>
{code}
was (Author: khmarbaise):
Do you have an example project for it and for the code change it would be helpful having an integration test?
> deployAtEnd issue for multi-module projects
> -------------------------------------------
>
> Key: MDEPLOY-201
> URL: https://issues.apache.org/jira/browse/MDEPLOY-201
> Project: Maven Deploy Plugin
> Issue Type: Bug
> Components: deploy:deploy
> Affects Versions: 2.8.1, 2.8.2
> Reporter: David Szervanszky
>
> There appears to be a bug with the deployAtEnd feature when the maven project includes
> a parent module which is not part of the build.
> Eg: Includes a release parent pom with some standard config.
> The bug is that the code is using the size of the reactorProjects list and this includes
> the parent which isn't in the build process. This is causing the code to not perform any
> deployments at the end because it is expecting to see another module in the build
> sequence so that READYPROJECTSCOUNTER matches the size of the reactorList and this never
> happens.
> A potential solution to this is to look at the MavenSession and get the top level project
> which started the build. Then getting the index position of the top level project in the
> reactorList and subtracting it from the total size of the reactorList will give the
> correct number of expected build modules.
> We have tested these [changes|https://github.com/omnidavesz/maven-plugins/commit/658861bf716dfbc10f5341e5579fbc63ec06c865] locally and the solution appears to work.
> But are currently unsure as to how the testing is done for this project.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)