Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.1
-
None
-
Windows server 2008, maven 3.0.2
Description
Hi,
I did a minimal test to reproduce and describe the issue:
I have a directory containing .* resources (for example ".svn") let's say C:\tmp\svn_checkout
I create a project with a minimal pom.xml :
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>test</groupId> <artifactId>test</artifactId> <name>test</name> <version>1.0-SNAPSHOT</version> </project>
In the project I create a "target" directory
In the target directory I do "mklink /J svn_checkout C:\tmp\svn_checkout"
So I have
C:\testproject C:\testproject\pom.xml C:\testproject\target C:\testproject\target\svn_checkout -> C:\tmp\svn_checkout
If I do "mvn clean" the target directory is deleted as expected, but also all my .svn directories under C:\tmp\svn_checkout
If I have other .* files (.project, .classpath) they are deleted too.
In the real life I have a custom maven plugin that creates an ear on my app server, and replaces the war files in it by junction to the war project I checkout from svn.
I add the ear in the list of directories to be "cleaned" (by adding a <fileset>), and I have all my .svn deleted on each clean.
Regards,
Laurent