[ 
https://issues.apache.org/jira/browse/MCLEAN-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17958670#comment-17958670
 ] 

Olivier Lamy commented on MCLEAN-29:
------------------------------------

This project has moved from Jira to GitHub Issues. This issue was migrated to 
[apache/maven-clean-plugin#223|https://github.com/apache/maven-clean-plugin/issues/223].
 

> Maven clean plugin doesn't filter resources from exclude list
> -------------------------------------------------------------
>
>                 Key: MCLEAN-29
>                 URL: https://issues.apache.org/jira/browse/MCLEAN-29
>             Project: Maven Clean Plugin (Moved to GitHub Issues)
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: Vladimir Sosnin
>            Assignee: Benjamin Bentmann
>            Priority: Major
>             Fix For: 2.3
>
>         Attachments: clean-exclude.zip, dont-delete-excluded-file-test.patch, 
> dont-delete-excluded-file.patch
>
>
> 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.
> {code:xml}
> <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>
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to