mirror of https://github.com/apache/maven.git
o fix for populator
Submitted by: Igor Fedorenko git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@777796 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bc8ff5f600
commit
c1af1323cd
|
@ -57,15 +57,17 @@ public class DefaultMavenExecutionRequestPopulator
|
||||||
throws MavenEmbedderException
|
throws MavenEmbedderException
|
||||||
{
|
{
|
||||||
// copy configuration to request
|
// copy configuration to request
|
||||||
|
if ( request.getSettings() == null )
|
||||||
if ( configuration.getGlobalSettingsFile() != null )
|
|
||||||
{
|
{
|
||||||
request.setGlobalSettingsFile( configuration.getGlobalSettingsFile() );
|
if ( configuration.getGlobalSettingsFile() != null )
|
||||||
}
|
{
|
||||||
|
request.setGlobalSettingsFile( configuration.getGlobalSettingsFile() );
|
||||||
|
}
|
||||||
|
|
||||||
if ( configuration.getUserSettingsFile() != null )
|
if ( configuration.getUserSettingsFile() != null )
|
||||||
{
|
{
|
||||||
request.setUserSettingsFile( configuration.getUserSettingsFile() );
|
request.setUserSettingsFile( configuration.getUserSettingsFile() );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
String localRepositoryPath = null;
|
String localRepositoryPath = null;
|
||||||
|
@ -80,6 +82,11 @@ public class DefaultMavenExecutionRequestPopulator
|
||||||
localRepositoryPath = configuration.getLocalRepository().getAbsolutePath();
|
localRepositoryPath = configuration.getLocalRepository().getAbsolutePath();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( !StringUtils.isEmpty( localRepositoryPath ) )
|
||||||
|
{
|
||||||
|
request.setLocalRepositoryPath( localRepositoryPath );
|
||||||
|
}
|
||||||
|
|
||||||
// populate the defaults
|
// populate the defaults
|
||||||
|
|
||||||
return populateDefaults( request );
|
return populateDefaults( request );
|
||||||
|
|
Loading…
Reference in New Issue