mirror of https://github.com/apache/maven.git
change to override.xml
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163077 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8e9bdca246
commit
bc287e0e8b
|
@ -110,7 +110,7 @@ public class DefaultMavenProjectBuilder
|
||||||
|
|
||||||
Model userModel = null;
|
Model userModel = null;
|
||||||
// TODO: use maven home local instead of user.home/.m2
|
// TODO: use maven home local instead of user.home/.m2
|
||||||
File userModelFile = new File( System.getProperty( "user.home" ) + "/.m2", "pom.xml" );
|
File userModelFile = new File( System.getProperty( "user.home" ) + "/.m2", "override.xml" );
|
||||||
if ( userModelFile.exists() )
|
if ( userModelFile.exists() )
|
||||||
{
|
{
|
||||||
userModel = modelReader.read( new FileReader( userModelFile ) );
|
userModel = modelReader.read( new FileReader( userModelFile ) );
|
||||||
|
|
|
@ -71,6 +71,7 @@ public class MBoot
|
||||||
"maven-plugin",
|
"maven-plugin",
|
||||||
"maven-plugin-tools",
|
"maven-plugin-tools",
|
||||||
"maven-artifact",
|
"maven-artifact",
|
||||||
|
"maven-1.x-integration",
|
||||||
"maven-core",
|
"maven-core",
|
||||||
"maven-core-it-verifier"
|
"maven-core-it-verifier"
|
||||||
};
|
};
|
||||||
|
@ -139,7 +140,7 @@ public class MBoot
|
||||||
public void run( String[] args )
|
public void run( String[] args )
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
File userPomFile = new File( System.getProperty( "user.home" ), ".m2/pom.xml" );
|
File userPomFile = new File( System.getProperty( "user.home" ), ".m2/override.xml" );
|
||||||
|
|
||||||
reader = new ModelReader();
|
reader = new ModelReader();
|
||||||
|
|
||||||
|
@ -154,7 +155,7 @@ public class MBoot
|
||||||
|
|
||||||
if ( mavenRepoLocal == null )
|
if ( mavenRepoLocal == null )
|
||||||
{
|
{
|
||||||
System.out.println( "You must have a ~/.m2/pom.xml file and must contain the following entries:" );
|
System.out.println( "You must have a ~/.m2/override.xml file and must contain the following entries:" );
|
||||||
System.out.println( "<local>" );
|
System.out.println( "<local>" );
|
||||||
System.out.println( " <repository>/path/to/m2/repository</repository> (required)" );
|
System.out.println( " <repository>/path/to/m2/repository</repository> (required)" );
|
||||||
System.out.println( " <online>true</online> (optional)" );
|
System.out.println( " <online>true</online> (optional)" );
|
||||||
|
|
Loading…
Reference in New Issue