You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Laurent Chaply (JIRA)" <ji...@codehaus.org> on 2011/02/16 11:05:22 UTC
[jira] Created: (MCLEAN-47) On windows if there are junctions on
the cleaned directories, clean deletes .* resources under junction's target
along with junction.
On windows if there are junctions on the cleaned directories, clean deletes .* resources under junction's target along with junction.
-------------------------------------------------------------------------------------------------------------------------------------
Key: MCLEAN-47
URL: http://jira.codehaus.org/browse/MCLEAN-47
Project: Maven 2.x Clean Plugin
Issue Type: Bug
Affects Versions: 2.4.1
Environment: Windows server 2008, maven 3.0.2
Reporter: Laurent Chaply
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
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira