Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.2
-
Fix Version/s: 2.3
-
Labels:None
-
Number of attachments :
Description
For example you want to delete content of folder but want to keep folder itself and it's SCM (e.g. SVN) information. Following configuration for "maven-maven-clean" plugin deletes all plain files under ".svn" directory and simply keeps empty subdirs. Thus, making update command impossible.
<build> ... <plugins> <plugin> <artifactId>maven-clean-plugin</artifactId> <configuration> <verbose>true</verbose> <filesets> <fileset> <directory>logic/src/test/generated/resources</directory> <excludes> <exclude>.svn/**/*</exclude> </excludes> <includes> <include>**/*</include> </includes> <followSymlinks>false</followSymlinks> </fileset> </filesets> </configuration> </plugin> </plugins> </build>
Issue Links
- depends upon
-
MSHARED-61
Base directory of file set is not excluded from deletion if it contains excluded paths
-
-
MSHARED-62
Excludes are ignored for deletion if followSymlinks=false
-
I can reproduce this issue (on WinXP), attached is a complete mini project.
A workaround is to set followSymlinks=true for the file set, that keeps the plain files alive in your special scenario. So it seems the issue originates somewhere from org.apache.maven.shared.model.fileset.util.FileSetManager in org.apache.maven.shared:file-management:1.2.