MNG-5767 enforce use of maven.multiModuleProjectDirectory

Signed-off-by: Igor Fedorenko <ifedorenko@apache.org>
This commit is contained in:
Igor Fedorenko 2015-02-26 11:51:30 -05:00
parent 78c916b70e
commit ba27d4ea52
2 changed files with 9 additions and 0 deletions

View File

@ -62,6 +62,10 @@ public class MavenITmng0294MergeGlobalAndUserSettingsTest
{
verifier.setSystemProperty( "org.apache.maven.global-settings", "global-settings.xml" );
}
if ( matchesVersionRange( "(3.2.5,)" ) )
{
verifier.getSystemProperties().put( "maven.multiModuleProjectDirectory", testDir.getAbsolutePath() );
}
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-touch:touch" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();

View File

@ -469,6 +469,11 @@ public abstract class AbstractMavenIntegrationTestCase
{
verifier.getSystemProperties().put( "org.apache.maven.global-settings", path );
}
if ( matchesVersionRange( "(3.2.5,)" ) )
{
verifier.getSystemProperties().put( "maven.multiModuleProjectDirectory", basedir );
}
}
return verifier;