You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Slawomir Jaranowski (Jira)" <ji...@apache.org> on 2022/01/27 19:11:00 UTC
[jira] [Closed] (MSHARED-649) Use setBaseDirectory() and setPomFile() simultaneously so that a temporary pom file may be used for the maven invocation
[ https://issues.apache.org/jira/browse/MSHARED-649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Slawomir Jaranowski closed MSHARED-649.
---------------------------------------
Fix Version/s: maven-invoker-3.2.0
Resolution: Fixed
> Use setBaseDirectory() and setPomFile() simultaneously so that a temporary pom file may be used for the maven invocation
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: MSHARED-649
> URL: https://issues.apache.org/jira/browse/MSHARED-649
> Project: Maven Shared Components
> Issue Type: Improvement
> Components: maven-invoker
> Affects Versions: maven-invoker-3.0.0
> Reporter: Ovidiu Munteanu
> Assignee: Slawomir Jaranowski
> Priority: Major
> Fix For: maven-invoker-3.2.0
>
>
> Maven Invoker Java API - cannot use setBaseDirectory() and setPomFile() simultaneously so that a temp pom file may be used
> For example, say you need to invoke maven for a project stored in /home/projects/example-project, which has its own pom.xml file. But for some testing purposes for the maven invocation you want to use a different temporary pom.xml which is stored in a different directory (say the default temp directory).
> At the moment this does not seem to be possible and any attempt to do it will throw an exception with the message:
> "POM file temp-pom.xml specified the -f/--file command-line argument does not exist"
--
This message was sent by Atlassian Jira
(v8.20.1#820001)