[maven-invoker-plugin] build.log file should not be placed inside the target/
directory
---------------------------------------------------------------------------------------
Key: MNG-2587
URL: http://jira.codehaus.org/browse/MNG-2587
Project: Maven 2
Issue Type: Bug
Components: Sandbox
Reporter: Vincent Massol
The invoker plugin creates the build.log file in target/. However if you have
the "clean" goal inside the goals.txt file and you're running on windows, it'll
fail with:
{noformat}
[INFO] [INFO]
----------------------------------------------------------------------------
[INFO] [INFO] Building Maven Clover Plugin Contexts Sample
[INFO] [INFO] task-segment: [clean, install]
[INFO] [INFO]
----------------------------------------------------------------------------
[INFO] [INFO] [clean:clean]
[INFO] [INFO] Deleting directory
C:\dev\maven\trunks\plugins\maven-clover-plugin\src\it\contexts\target
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [ERROR] BUILD ERROR
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [INFO] Failed to delete directory:
C:\dev\maven\trunks\plugins\maven-clover-plugin\src\it\contexts\target. Reason:
Failed to delete file:
C:\dev\maven\trunks\plugins\maven-clover-plugin\src\it\contexts\target\build.log.
Reason is unknown.
[INFO]
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [DEBUG] Trace
[INFO] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to delete
directory:
C:\dev\maven\trunks\plugins\maven-clover-plugin\src\it\contexts\target. Reason:
Failed to delete file:
C:\dev\maven\trunks\plugins\maven-clover-plugin\src\it\contexts\target\build.log.
Reason is unknown.
{noformat}
I propose to locate the build.log file in the main directory of the project
being built.
--
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