Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-649

Use setBaseDirectory() and setPomFile() simultaneously so that a temporary pom file may be used for the maven invocation

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: maven-invoker-3.0.0
    • Fix Version/s: None
    • Component/s: maven-invoker
    • Labels:
      None

      Description

      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"

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ovymoont Ovidiu Munteanu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: