You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/08/22 16:12:59 UTC

[GitHub] [maven-clean-plugin] jvoccia commented on pull request #10: [MCLEAN-93] Support junctions on NTFS

jvoccia commented on PR #10:
URL: https://github.com/apache/maven-clean-plugin/pull/10#issuecomment-1222579199

   > When can this happen? I mean, can we create a junction in Java without using native code?
   
   Not sure if you are asking about this regarding "tests" or regarding what "real world" use case this could occur in, but if asking in the second case:
   
   NPM does this on Windows.  So if you link a NPM component with a package.json like:
   ```json
   {
     ...
     "dependencies": {
       "someTestServer": "file:src/test/node_server/someTestServer"
     }
   }
   ```
     
     You will get a node_modules directory like:
     node_modules/someTestServer <- Junction Point pointing to: src/test/node_server/someTestServer
     
    If you configure mvn clean to delete node_modules (or a directory above node_modules) - it will walk the junction point and delete your src files.


-- 
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-unsubscribe@maven.apache.org

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