Add a check for null files in system dependencies

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@566135 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Carlos Sanchez Gonzalez 2007-08-15 12:55:09 +00:00
parent 8df4a9dab7
commit d632bc8a07

View File

@ -89,6 +89,12 @@ private void resolve( Artifact artifact, List remoteRepositories, ArtifactReposi
{
File systemFile = artifact.getFile();
if ( systemFile == null )
{
throw new ArtifactNotFoundException(
"System artifact: " + artifact + " has no file attached", artifact );
}
if ( !systemFile.exists() )
{
throw new ArtifactNotFoundException(