mirror of https://github.com/apache/maven.git
fix error handling when there is no active profile
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@168624 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
216a640dd0
commit
d4c059226c
|
@ -152,7 +152,7 @@ public class MBoot
|
|||
|
||||
Profile activeProfile = userModelReader.getActiveProfile();
|
||||
|
||||
if ( mavenRepoLocal == null )
|
||||
if ( mavenRepoLocal == null && activeProfile != null )
|
||||
{
|
||||
mavenRepoLocal = new File( activeProfile.getLocalRepo() ).getAbsolutePath();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue