mirror of https://github.com/apache/maven.git
o Fixed NPE
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@749293 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
612a1f3fea
commit
494b72ea2c
|
@ -206,15 +206,15 @@ public class DefaultMavenProjectBuilder
|
||||||
}
|
}
|
||||||
catch ( ArtifactResolutionException e )
|
catch ( ArtifactResolutionException e )
|
||||||
{
|
{
|
||||||
throw new ProjectBuildingException( project.getId(), "Error resolving project artifact.", e );
|
throw new ProjectBuildingException( artifact.getId(), "Error resolving project artifact.", e );
|
||||||
}
|
}
|
||||||
catch ( ArtifactNotFoundException e )
|
catch ( ArtifactNotFoundException e )
|
||||||
{
|
{
|
||||||
throw new ProjectBuildingException( project.getId(), "Error finding project artifact.", e );
|
throw new ProjectBuildingException( artifact.getId(), "Error finding project artifact.", e );
|
||||||
}
|
}
|
||||||
catch ( InvalidRepositoryException e )
|
catch ( InvalidRepositoryException e )
|
||||||
{
|
{
|
||||||
throw new ProjectBuildingException( project.getId(), "Error with repository specified in project.", e );
|
throw new ProjectBuildingException( artifact.getId(), "Error with repository specified in project.", e );
|
||||||
}
|
}
|
||||||
|
|
||||||
ProjectBuilderConfiguration config = new DefaultProjectBuilderConfiguration().setLocalRepository( localRepository );
|
ProjectBuilderConfiguration config = new DefaultProjectBuilderConfiguration().setLocalRepository( localRepository );
|
||||||
|
|
Loading…
Reference in New Issue