allow no repo in settings.xml

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@189875 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-06-10 01:56:51 +00:00
parent cb291e9fa2
commit fc0ec82e84
1 changed files with 6 additions and 2 deletions

View File

@ -348,7 +348,11 @@ public class Verifier
{
userModelReader.parse( userXml );
repo = new File( userModelReader.getLocalRepository() ).getAbsolutePath();
String localRepository = userModelReader.getLocalRepository();
if ( localRepository != null )
{
repo = new File( localRepository ).getAbsolutePath();
}
}
}
catch ( Exception e )