seregamorph commented on issue #12646:
URL: https://github.com/apache/maven/issues/12646#issuecomment-5147170886

   @gnodet, got it, thanks for the clarifications. Indeed, in Maven 4 this 
extension is not needed anymore.
   
   BTW, one more approach where to store the files is 
`$HOME/.m2/local-repository/${projectName}_${directoryNameHash}`
   The similar approach is used in IntelliJ IDEA - it stores project files 
outside of the main project directory, and this way it can distinguish 
different copies of the same project. The `${projectName}_` simplifies 
directory navigation when you inspect caches, the hash suffix makes this 
binding unique:
   ```
   ls -1 ~/Library/Caches/JetBrains/IntelliJIdea2026.2/projects
   maven-timeline-extension.c1ef30cd
   maven-turbo-builder.a8735f92
   server.3c4116a1
   spring-test-smart-context.e026fed8
   ```
   This approach solves both problems - the race condition (of 
`$rootModule/target/project-local-repo`) and possible non-git ignored files (of 
$rootModule/.mvn/project-local-repo``)


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