[ 
https://issues.apache.org/jira/browse/MINVOKER-18?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17958270#comment-17958270
 ] 

Olivier Lamy commented on MINVOKER-18:
--------------------------------------

This project has moved from Jira to GitHub Issues. This issue was migrated to 
[apache/maven-invoker-plugin#342|https://github.com/apache/maven-invoker-plugin/issues/342].
 

> two executions of the same pom causes a prooblem with interpolated-pom.xml
> --------------------------------------------------------------------------
>
>                 Key: MINVOKER-18
>                 URL: https://issues.apache.org/jira/browse/MINVOKER-18
>             Project: Maven Invoker Plugin (Moved to GitHub Issues)
>          Issue Type: Bug
>    Affects Versions: 1.1
>         Environment: latest 1.1-SNAPSHOT Version, maven-2.0.7
>            Reporter: Gerhard Langs
>            Assignee: Olivier Lamy
>            Priority: Major
>             Fix For: 1.1
>
>         Attachments: invoker-18.patch, invoker-18.patch, 
> pom-interpolation2-invoked.xml, pom-interpolation2.xml
>
>
> TestCase:
>    pom-interpolated2.xml uses invoker to invoke 
> "pom-interpolated2-invoked.xml  in 2 "executions".
> invocation:
>    mvn -f pom-interpolated2.xml test -e
> the second execution fails, because it is unable to create the 
> "interpolated-pom.xml".
> Proposed solution:
>    - dont tag the interpolated-pom.xml as "deleteOnExit",
>    - delete that file at the end of every execution.
> Will try to provide a patch....
> Greetings, Gerhard
> Output:
> ...
> Caused by: org.apache.maven.plugin.MojoExecutionException: fail to create 
> file 
> D:\maven\maven-invoker-plugin\src\test\resources\unit\interpolation2\.\interpolated-pom.xml
>         at 
> org.apache.maven.plugin.invoker.InvokerMojo.buildInterpolatedPomFile(InvokerMojo.java:997)
>         at 
> org.apache.maven.plugin.invoker.InvokerMojo.runBuild(InvokerMojo.java:458)
>         at 
> org.apache.maven.plugin.invoker.InvokerMojo.execute(InvokerMojo.java:341)
>         at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to