You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Bjorn (JIRA)" <ji...@codehaus.org> on 2008/07/02 08:21:26 UTC

[jira] Commented: (MCLEAN-30) Using a parent PoM to clean multiple modules, if one has a clean plugin defined for custom directories, custom directory will not be deleted even though it says it is

    [ http://jira.codehaus.org/browse/MCLEAN-30?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=140170#action_140170 ] 

Bjorn commented on MCLEAN-30:
-----------------------------

I tracked it down in the source code: the problem is that when clean is called, it checks if it is "execution root" (result to false when called from parent pom) if not it adds the project base directory in front of the additional fileset directory which is wrong.

> Using a parent PoM to clean multiple modules, if one has a clean plugin defined for custom directories, custom directory will not be deleted even though it says it is
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MCLEAN-30
>                 URL: http://jira.codehaus.org/browse/MCLEAN-30
>             Project: Maven 2.x Clean Plugin
>          Issue Type: Bug
>            Reporter: Brian Weiner
>            Priority: Minor
>         Attachments: example.zip
>
>
> In my current situation, I have a parent pom with multiple modules, the final module creates an exploded war in a directory designed to be used by my web server.  I have defined a clean plugin to clean the directory I create.  If I clean from the child, the directory is deleted.  If I call just the clean of the child from the parent the directory is deleted, but if I call the clean for all modules, it prints that the directory is deleted but all files/directories still exist.

-- 
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