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
|
@ -56,10 +56,14 @@ public class DefaultPluginRegistryBuilder
|
|||
{
|
||||
userRegistryFile = getFile( userRegistryPath, "user.home", MavenPluginRegistryBuilder.ALT_USER_PLUGIN_REG_LOCATION );
|
||||
|
||||
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() + "'" );
|
||||
getLogger().debug( "Building Maven user-level plugin registry from: '" + userRegistryFile.getAbsolutePath() + "'" );
|
||||
}
|
||||
}
|
||||
|
||||
public PluginRegistry buildPluginRegistry()
|
||||
|
|
Loading…
Reference in New Issue