mirror of https://github.com/apache/maven.git
remove some unused constants
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163863 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e62f087f24
commit
a0f5cbce3d
|
@ -19,8 +19,6 @@ package org.apache.maven;
|
|||
|
||||
public class MavenConstants
|
||||
{
|
||||
public static final String MAVEN_VERSION = "2.0-alpha-1-SNAPSHOT";
|
||||
|
||||
public static final String MAVEN_MODEL_VERSION = "4.0.0";
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
@ -29,13 +27,5 @@ public class MavenConstants
|
|||
|
||||
public static final String MAVEN_USER_CONFIGURATION_DIRECTORY = ".m2";
|
||||
|
||||
public static final String MAVEN_PROPERTIES = "maven.properties";
|
||||
|
||||
public static final String MAVEN_REPOSITORY = "repository";
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// maven.properties
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
public static final String MAVEN_ONLINE = "maven.online";
|
||||
}
|
||||
|
|
|
@ -51,14 +51,11 @@ import org.codehaus.plexus.logging.LoggerManager;
|
|||
import org.codehaus.plexus.util.FileUtils;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
import java.net.URL;
|
||||
import java.util.Collections;
|
||||
import java.util.Enumeration;
|
||||
import java.util.List;
|
||||
import java.util.Properties;
|
||||
|
||||
/**
|
||||
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
|
||||
|
@ -368,21 +365,6 @@ public class MavenCli
|
|||
return mavenUserConfigurationDirectory;
|
||||
}
|
||||
|
||||
protected static Properties getMavenProperties( File mavenHomeLocal )
|
||||
{
|
||||
Properties mavenProperties = new Properties();
|
||||
File mavenPropertiesFile = new File( mavenHomeLocal, MavenConstants.MAVEN_PROPERTIES );
|
||||
try
|
||||
{
|
||||
mavenProperties.load( new FileInputStream( mavenPropertiesFile ) );
|
||||
}
|
||||
catch ( IOException e )
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
return mavenProperties;
|
||||
}
|
||||
|
||||
protected static ArtifactRepository getLocalRepository( MavenSettings settings,
|
||||
ArtifactRepositoryFactory repoFactory,
|
||||
ArtifactRepositoryLayout repositoryLayout )
|
||||
|
@ -398,7 +380,7 @@ public class MavenCli
|
|||
|
||||
if ( localRepository == null )
|
||||
{
|
||||
String userConfigurationDirectory = System.getProperty( "user.home" ) + "/.m2";
|
||||
File userConfigurationDirectory = getUserConfigurationDirectory();
|
||||
localRepository =
|
||||
new File( userConfigurationDirectory, MavenConstants.MAVEN_REPOSITORY ).getAbsolutePath();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue