marcwrobel commented on PR #772:
URL: https://github.com/apache/maven/pull/772#issuecomment-1187916790

   Just checked the test, it turns out the logs are written to a 
`version-log.txt` file. The file in question : 
   
   ```
   $ cat 
./core-it-suite/target/test-classes/mng-6391-print-version-aggregator/version-log.txt
   [INFO] Error stacktraces are turned on.
   [INFO] Scanning for projects...
   [INFO] 
--------------------------------------------------------------------------------------------------------------------------
   [INFO] Reactor Build Order:
   [INFO] 
   [INFO] module-1                                                              
                                               [jar]
   [INFO] module-2                                                              
                                               [jar]
   [INFO] module-3                                                              
                                               [jar]
   [INFO] base-project                                                          
                                               [pom]
   [INFO] 
   [INFO] -------------------------------------------< 
mng-6352-print-version:module-1 >--------------------------------------------
   [INFO] Building module-1 1.2.7.43.RELEASE                                    
                                               [1/4]
   [INFO]   from module-1/pom.xml
   [INFO] ---------------------------------------------------------[ jar 
]----------------------------------------------------------
   [WARNING] Version not locked for default bindings plugins 
[maven-clean-plugin], you should define versions in pluginManagement section of 
your pom.xml or parent
   [INFO] 
   [INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ module-1 ---
   [INFO] 
   [INFO] -------------------------------------------< 
mng-6352-print-version:module-2 >--------------------------------------------
   [INFO] Building module-2 7.5-SNAPSHOT                                        
                                               [2/4]
   [INFO]   from module-2/pom.xml
   [INFO] ---------------------------------------------------------[ jar 
]----------------------------------------------------------
   [WARNING] Version not locked for default bindings plugins 
[maven-clean-plugin], you should define versions in pluginManagement section of 
your pom.xml or parent
   [INFO] 
   [INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ module-2 ---
   [INFO] 
   [INFO] -------------------------------------------< 
mng-6352-print-version:module-3 >--------------------------------------------
   [INFO] Building module-3 1-RC1                                               
                                               [3/4]
   [INFO]   from module-3/pom.xml
   [INFO] ---------------------------------------------------------[ jar 
]----------------------------------------------------------
   [WARNING] Version not locked for default bindings plugins 
[maven-clean-plugin], you should define versions in pluginManagement section of 
your pom.xml or parent
   [INFO] 
   [INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ module-3 ---
   [INFO] 
   [INFO] -----------------------------------------< 
mng-6352-print-version:base-project >------------------------------------------
   [INFO] Building base-project 1.0.0-SNAPSHOT                                  
                                               [4/4]
   [INFO]   from pom.xml
   [INFO] ---------------------------------------------------------[ pom 
]----------------------------------------------------------
   [WARNING] Version not locked for default bindings plugins 
[maven-clean-plugin], you should define versions in pluginManagement section of 
your pom.xml or parent
   [INFO] 
   [INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ base-project ---
   [INFO] 
--------------------------------------------------------------------------------------------------------------------------
   [INFO] Reactor Summary:
   [INFO] 
   [INFO] module-1 1.2.7.43.RELEASE 
............................................................................ 
SUCCESS [  0.021 s]
   [INFO] module-2 7.5-SNAPSHOT 
................................................................................
 SUCCESS [  0.000 s]
   [INFO] module-3 1-RC1 
.......................................................................................
 SUCCESS [  0.000 s]
   [INFO] base-project 1.0.0-SNAPSHOT 
.......................................................................... 
SUCCESS [  0.001 s]
   [INFO] 
--------------------------------------------------------------------------------------------------------------------------
   [INFO] BUILD SUCCESS
   [INFO] 
--------------------------------------------------------------------------------------------------------------------------
   [INFO] Total time:  0.027 s
   [INFO] Finished at: 2022-07-18T19:33:30+02:00
   [INFO] 
--------------------------------------------------------------------------------------------------------------------------
   ```
   
   And what is expected :
   
   ```
           // We expect those lines in the following exact order.
           assertTrue( resultingLines.get( 0 ).startsWith( "[INFO] Reactor 
Summary for base-project 1.3.0-SNAPSHOT:" ) );
           assertTrue( resultingLines.get( 1 ).startsWith( "[INFO] base-project 
....................................... SUCCESS [" ) );
           assertTrue( resultingLines.get( 2 ).startsWith( "[INFO] module-1 
........................................... SUCCESS [" ) );
           assertTrue( resultingLines.get( 3 ).startsWith( "[INFO] module-2 
........................................... SUCCESS [" ) );
           assertTrue( resultingLines.get( 4 ).startsWith( "[INFO] module-3 
........................................... SUCCESS [" ) );
   ```
   
   Definitively not what was expected.


-- 
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: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to