[ https://issues.apache.org/jira/browse/MINVOKER-5?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17958224#comment-17958224 ]
Olivier Lamy commented on MINVOKER-5: ------------------------------------- This project has moved from Jira to GitHub Issues. This issue was migrated to [apache/maven-invoker-plugin#291|https://github.com/apache/maven-invoker-plugin/issues/291]. > [maven-invoker-plugin] build.log file should not be placed inside the target/ > directory > --------------------------------------------------------------------------------------- > > Key: MINVOKER-5 > URL: https://issues.apache.org/jira/browse/MINVOKER-5 > Project: Maven Invoker Plugin (Moved to GitHub Issues) > Issue Type: Bug > Reporter: Vincent Massol > Assignee: Vincent Massol > Priority: Major > > 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 was sent by Atlassian Jira (v8.20.10#820010)