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:
Benjamin Bentmann 2009-03-02 12:37:54 +00:00
parent 612a1f3fea
commit 494b72ea2c
1 changed files with 3 additions and 3 deletions

View File

@ -206,15 +206,15 @@ public class DefaultMavenProjectBuilder
}
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 )
{
throw new ProjectBuildingException( project.getId(), "Error finding project artifact.", e );
throw new ProjectBuildingException( artifact.getId(), "Error finding project artifact.", 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 );