Konrad Windszus created MSHARED-1015:
----------------------------------------

             Summary: Using Embedded3xLauncher fails with 
"-Dmaven.multiModuleProjectDirectory system property is not set"
                 Key: MSHARED-1015
                 URL: https://issues.apache.org/jira/browse/MSHARED-1015
             Project: Maven Shared Components
          Issue Type: Bug
          Components: maven-verifier
    Affects Versions: maven-verifier-1.7.2
            Reporter: Konrad Windszus


When trying to use an embedded launcher created from the classpath 
(https://github.com/apache/maven-verifier/blob/17ebffa2467caa59f1e47c302ac03d9e00d8c314/src/main/java/org/apache/maven/it/Embedded3xLauncher.java#L124),
 launching fails with 
{code}
-Dmaven.multiModuleProjectDirectory system property is not set
{code}

A similar issue was once reported and fixed for m2e at 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=462944.

The reason is 
https://github.com/apache/maven/blob/706d9319f14b507f3c3deeba4eeda1a51a531c9b/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java#L351
 which now requires this property to be set. This has been introduced by 
https://issues.apache.org/jira/browse/MNG-5767 in Maven 3.3.1



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to