mirror of https://github.com/apache/maven.git
Fix user pom filename
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163083 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
27738439ee
commit
f26be7d1a5
|
@ -189,11 +189,11 @@ public class Verifier
|
|||
{
|
||||
try
|
||||
{
|
||||
// parse ~/.m2/pom.xml for it...
|
||||
// parse ~/.m2/override.xml for it...
|
||||
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
|
||||
DocumentBuilder builder = factory.newDocumentBuilder();
|
||||
|
||||
File pom = new File( System.getProperty( "user.home" ), ".m2/pom.xml" );
|
||||
File pom = new File( System.getProperty( "user.home" ), ".m2/override.xml" );
|
||||
Document dom = builder.parse( pom );
|
||||
|
||||
repo = XPathAPI.selectSingleNode( dom, "/project/local/repository/text()" ).getNodeValue();
|
||||
|
|
Loading…
Reference in New Issue