[
https://issues.apache.org/jira/browse/MCLEAN-58?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17958698#comment-17958698
]
Olivier Lamy commented on MCLEAN-58:
------------------------------------
This project has moved from Jira to GitHub Issues. This issue was migrated to
[apache/maven-clean-plugin#220|https://github.com/apache/maven-clean-plugin/issues/220].
> Maven Clean Plugin ignores followSymLinks parameter on Windows
> --------------------------------------------------------------
>
> Key: MCLEAN-58
> URL: https://issues.apache.org/jira/browse/MCLEAN-58
> Project: Maven Clean Plugin (Moved to GitHub Issues)
> Issue Type: Bug
> Affects Versions: 2.5
> Reporter: Sergei Makarov
> Assignee: Kristian Rosenvold
> Priority: Major
> Fix For: 2.6.1
>
> Attachments: MavenCleanPluginNoFollowSymlinkBug.zip
>
>
> Most of old java software use getCanonicalFile() to determine symlink. But it
> is lie for windows. Lets look to org.apache.maven.plugin.clean.Cleaner:
> 147 File canonical = followSymlinks ? file :
> file.getCanonicalFile();
> 148 if ( followSymlinks || file.equals( canonical ) )
> getCanonicalFile() returns same path and folow symlink. In attached
> MavenCleanPluginNoFollowSymlinkBug.zip you found TestCase.bat that shows bug
> (just read it to understand than run). Unfortunately I know only one way to
> fix this - move to NIO that has isSymbolicLink() since java 1.7.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)