jira-importer commented on issue #364:
URL: 
https://github.com/apache/maven-deploy-plugin/issues/364#issuecomment-2771534568

   **[David 
Szervanszky](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=dszervanszky)**
 commented
   
   Hi Karl,
   
   The JDK we're running is 1.8 and the Maven version is 3.3.3. The XML you've 
mocked up above is similar to the one for our top level project. In addition, a 
couple of our modules have modules of their own.
   
   Also my first suspicion of what the issue was has turned out to be incorrect 
so please ignore the code in the link above and having a parent which isn't 
part of the build is not the cause of the issue. We logged out the value of 
reactorProjects first and found that it contained the correct list of projects 
so my assumption about that was incorrect.
   
   I put logging in my version of the plugin to check the values of 
READYPROJECTSCOUNTER and reactorProjects.size() and noticed that something 
strange was happening. Our project structure is as follows:
   
   1. Parent
      1. Module (Top Level)
         1. Module A
   
   #### Sub-module A
   
   #### Sub-module B
   
   #### Sub-module C
   
   #### Sub-module D
   
       1. Module B
   
   #### Sub-module E
   
       1. Module C
       1. Module D
   
   The reactor list is worked through in the following order and the 
READYPROJECTSCOUNTER value at each point was as follows:
   
   |Module Name|READYPROJECTSCOUNTER Value|
   |:---|:---|
   |Sub-module D|1|
   |Sub-module C|2|
   |Sub-module B|3|
   |Sub-module A|4|
   |Module A|1|
   |Sub-module E|5|
   |Module B|2|
   |Module C|3|
   |Module D|4|
   |Module (Top Level)|5|
   
   READYPROJECTSCOUNTER increments as expected through sub-modules D-A but then 
the counter goes back down to 1 when module A is built. However the counter 
goes back up to 5 when sub-module E is built and then back down to 2 for module 
B. It then increments normally until the end where it reaches 5 again.
   
   It seems that the counter counts the entry project and 1st level children 
together and the grandchildren separately. But I don't know why this is 
happening as the counter is private static final.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to