[ https://issues.apache.org/jira/browse/MNG-6985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maarten Mulders reassigned MNG-6985: ------------------------------------ Assignee: Maarten Mulders > Incorrect value for maven.multiModuleProjectDirectory in integration tests > -------------------------------------------------------------------------- > > Key: MNG-6985 > URL: https://issues.apache.org/jira/browse/MNG-6985 > Project: Maven > Issue Type: Bug > Components: Integration Tests > Reporter: Maarten Mulders > Assignee: Maarten Mulders > Priority: Major > > The {{newVerifier()}} method in {{AbstractMavenIntegrationTestCase}} creates > a System Property {{maven.multiModuleProjectDirectory}} and assigns the value > of the _basedir_. That argument is passed in from the integration test and > refers to the directory where the Maven invocation takes place (in _Forked_ > mode) or where it is simulated to take place (in _Embedded_ mode). > For the majority of the cases, this is a valid assumption. However, if the > test is supposed to run in a child module of a multi-module project, this > assumption does not hold. Instead, the value of this System Property should > be determined in the same way as the {{mvn}} / {{mvn.cmd}} scripts do: by > traversing up the file system until a *.mvn* directory is located. -- This message was sent by Atlassian Jira (v8.3.4#803005)