gnodet commented on PR #1199:
URL: https://github.com/apache/maven/pull/1199#issuecomment-1625424638

   A similar problem can easily be reproduced in maven master:
   ```
   > cd maven-settings
   > mvn install
   ```
   
   ```
   [INFO] --- japicmp:0.17.2:cmp (default) @ maven-settings ---
   [WARNING] File 
'maven-settings/target/classes/org/apache/maven/settings/WrapperList.class' is 
more recent than the packaged artifact for 'maven-settings', please run a full 
`mvn package` build
   [WARNING] File 
'maven-settings/target/classes/org/apache/maven/settings/WrapperList.class' is 
more recent than the packaged artifact for 'maven-settings', please run a full 
`mvn package` build
   Listening for transport dt_socket at address: 8000
   [INFO] Written file 
'/Users/gnodet/work/git/maven/maven-settings/target/japicmp/japicmp.diff'.
   [INFO] Written file 
'/Users/gnodet/work/git/maven/maven-settings/target/japicmp/japicmp.xml'.
   [INFO] Written file 
'/Users/gnodet/work/git/maven/maven-settings/target/japicmp/japicmp.html'.
   ```
   
   In this case, the `japicmp:cmp` goal is executed after the `jar` goal, but 
before the `install` goal.  And the artifacts are copied into the project local 
repo after the project is fully built. With this PR, the project's artifacts 
take precedence over the ones from the project local repo, so it actually fixes 
the above problem. 


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