[
https://issues.apache.org/jira/browse/MCLEAN-9?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17958663#comment-17958663
]
Olivier Lamy commented on MCLEAN-9:
-----------------------------------
This project has moved from Jira to GitHub Issues. This issue was migrated to
[apache/maven-clean-plugin#130|https://github.com/apache/maven-clean-plugin/issues/130].
> maven-clean-plugin doesn't remove the reporting output directory
> ${project.reporting.outputDirectory}
> -----------------------------------------------------------------------------------------------------
>
> Key: MCLEAN-9
> URL: https://issues.apache.org/jira/browse/MCLEAN-9
> Project: Maven Clean Plugin (Moved to GitHub Issues)
> Issue Type: Improvement
> Affects Versions: 2.1
> Environment: Linux FC4, sun jdk1.5
> Reporter: Mark Struberg
> Assignee: Brett Porter
> Priority: Minor
> Fix For: 2.1.1
>
> Attachments: MNG-1881-maven-clean-plugin.diff,
> maven-clean-plugin-dcabasson-MCLEAN9.txt
>
>
> DESCRIPTION:
> The maven-clean-plugin does only remove the directories given in the <build>
> section of the POM.
> Directories created by the other standard lifecycle sections like the
> <reporting> section of the POM will not be removed by the clean mojo.
> I see 2 ways to fix this issue:
> 1.) (which 1 prefere) Provide all clean actions for the other standard
> lifecyles too inside the maven-clean-plugin
> 2.) Add new mojos with the @goal clean to the corresponding maven-plugins,
> like ie the maven-site-plugin
> TESTCASE (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>at.struct.mvntest</groupId>
> <artifactId>mvntest</artifactId>
> <packaging>jar</packaging>
> <version>1.0-SNAPSHOT</version>
> <name>MSX Maven Test App</name>
> <build>
> <directory>msxtarget</directory>
> <outputDirectory>msxtarget/classes</outputDirectory>
> </build>
> <reporting>
> <outputDirectory>msxreports</outputDirectory>
> </reporting>
> </project>
> PATCH:
> Added
> removeDirectory( reportingOutputDirectory );
> to CleanMojo.java
> Maybe there are also other directories to be removed in the same way
--
This message was sent by Atlassian Jira
(v8.20.10#820010)