jira-importer commented on issue #157: URL: https://github.com/apache/maven-clean-plugin/issues/157#issuecomment-2690262283
**[MichaĆ](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=atais)** commented OK I have found the issue! Situation You have a parent project and a child project, both have to use the plugin. Now; - in parent project you specify some filesets. - in child project you specify some filesets. — What I think is expected: Plugin read both parent's and child's filesets and cleans them all. What happens: Plugin OVERRIDES the parent's filesets with child's filesets. Filesets are overriden in order. HOWEVER the parents configuration for the fileset is not cleared! — My situation: Parent .pom: ```xml <filesets> <fileset> <directory>test-output</directory> </fileset> <fileset> <directory>${basedir}/</directory> <includes> <include>.bindings</include> </includes> </fileset> </filesets> ``` Childs pom: ```xml <filesets> <fileset> <directory>node</directory> </fileset> <fileset> <directory>node_modules</directory> </fileset> <fileset> <directory>src/main/webapp/bower_components</directory> </fileset> </filesets> ``` And with the above information; the config read by plugin is: ```xml <filesets> <fileset> <directory>node</directory> </fileset> <fileset> <directory>node_modules</directory> <includes> <include>.bindings</include> </includes> </fileset> <fileset> <directory>src/main/webapp/bower_components</directory> </fileset> </filesets> ``` instead of a config with 5 filesets. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org