[ http://jira.codehaus.org/browse/MCLEAN-9?page=all ]
Denis Cabasson updated MCLEAN-9:
--------------------------------
Attachment: maven-clean-plugin-dcabasson-MCLEAN9.txt
patch to close this issue, with simple test case added to existing tests.
> maven-clean-plugin doesn't remove the reporting output directory
> ${project.reporting.outputDirectory}
> -----------------------------------------------------------------------------------------------------
>
> Key: MCLEAN-9
> URL: http://jira.codehaus.org/browse/MCLEAN-9
> Project: Maven 2.x Clean Plugin
> Issue Type: Improvement
> Affects Versions: 2.1
> Environment: Linux FC4, sun jdk1.5
> Reporter: mark struberg
> Priority: Minor
> Attachments: maven-clean-plugin-dcabasson-MCLEAN9.txt,
> MNG-1881-maven-clean-plugin.diff
>
>
> 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 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