mirror of
https://github.com/apache/maven.git
synced 2025-02-21 01:15:42 +00:00
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:
parent
8df4a9dab7
commit
d632bc8a07
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user