estekhin opened a new issue, #13294:
URL: https://github.com/apache/maven/issues/13294

   ### Affected version
   
   4.0.0-rc-7
   
   ### Bug description
   
   The project contains ~590 maven modules.
   
   Cleaning the top parent module (pom type, has no dependencies) via something 
like `./mvwn clean -pl :parent`
   - under 3.9.16 it takes about 2 seconds
   - under 4.0.0-rc-7 it takes 20+ seconds
   
   Running with `-X` shows that rc-7 does a lot more that 3.9.16 before getting 
to `[DEBUG] === REACTOR BUILD PLAN ===` point.
   
   ```
   ./mvnw clean -pl :parent -X | grep -F "Reading file model" | wc -l
   16588
   ```
   ```
   ./mvnw clean -pl :parent -X | grep -F "Reading file model" | sort | uniq -c 
| sort -nr | head
      4715 [DEBUG] Reading file model from .../parent/pom.xml
      4121 [DEBUG] Reading file model from .../part-of-parent-hiearchy1/pom.xml
      3529 [DEBUG] Reading file model from .../part-of-parent-hiearchy2/pom.xml
      2945 [DEBUG] Reading file model from .../part-of-parent-hiearchy3/pom.xml
      ...
   ```
   
   The pom.xml files for "leaf" modules are read once.
   Seems like the pom.xml files for modules that are part of the parent 
hierarchy are read once for each of their inheritor module multiplied by its 
inheritors, so the very top parent is read quite a lot of times.
   
   


-- 
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