[ 
https://jira.codehaus.org/browse/MCLEAN-47?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kristian Rosenvold closed MCLEAN-47.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0
         Assignee: Kristian Rosenvold

Fixed for java7+ users in r1631508. This issue will not be fixed for prior java 
versions

> On windows if there are junctions on the cleaned directories, clean deletes 
> .* resources under junction's target along with junction.
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MCLEAN-47
>                 URL: https://jira.codehaus.org/browse/MCLEAN-47
>             Project: Maven Clean Plugin
>          Issue Type: Bug
>    Affects Versions: 2.4.1
>         Environment: Windows server 2008, maven 3.0.2
>            Reporter: Laurent Chaply
>            Assignee: Kristian Rosenvold
>             Fix For: 3.0
>
>
> 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 :
> {code: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>
> {code}
> 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
> {noformat}
> C:\testproject
> C:\testproject\pom.xml
> C:\testproject\target
> C:\testproject\target\svn_checkout -> C:\tmp\svn_checkout
> {noformat}
> 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 was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to