mirror of https://github.com/apache/maven.git
o if maven.home system property is not set just ignore it.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@292367 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
39b9565855
commit
6b09a51acb
|
@ -55,11 +55,15 @@ public class DefaultPluginRegistryBuilder
|
||||||
public void initialize()
|
public void initialize()
|
||||||
{
|
{
|
||||||
userRegistryFile = getFile( userRegistryPath, "user.home", MavenPluginRegistryBuilder.ALT_USER_PLUGIN_REG_LOCATION );
|
userRegistryFile = getFile( userRegistryPath, "user.home", MavenPluginRegistryBuilder.ALT_USER_PLUGIN_REG_LOCATION );
|
||||||
|
|
||||||
globalRegistryFile = getFile( globalRegistryPath, "maven.home", MavenPluginRegistryBuilder.ALT_GLOBAL_PLUGIN_REG_LOCATION );
|
|
||||||
|
|
||||||
getLogger().debug( "Building Maven global-level plugin registry from: '" + globalRegistryFile.getAbsolutePath() + "'" );
|
|
||||||
getLogger().debug( "Building Maven user-level plugin registry from: '" + userRegistryFile.getAbsolutePath() + "'" );
|
getLogger().debug( "Building Maven user-level plugin registry from: '" + userRegistryFile.getAbsolutePath() + "'" );
|
||||||
|
|
||||||
|
if ( System.getProperty( "maven.home" ) != null )
|
||||||
|
{
|
||||||
|
globalRegistryFile = getFile( globalRegistryPath, "maven.home", MavenPluginRegistryBuilder.ALT_GLOBAL_PLUGIN_REG_LOCATION );
|
||||||
|
|
||||||
|
getLogger().debug( "Building Maven global-level plugin registry from: '" + globalRegistryFile.getAbsolutePath() + "'" );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public PluginRegistry buildPluginRegistry()
|
public PluginRegistry buildPluginRegistry()
|
||||||
|
|
Loading…
Reference in New Issue