mirror of https://github.com/apache/maven.git
o Added warnings in case the artifact file does not exist (yet)
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@751803 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
49452abaa0
commit
a9671864f7
|
@ -104,6 +104,11 @@ public class AttachMojo
|
|||
artifactFile = new File( project.getBasedir(), attachedFile );
|
||||
}
|
||||
|
||||
if ( !artifactFile.exists() )
|
||||
{
|
||||
getLog().warn( "[MAVEN-CORE-IT-LOG] Attached artifact file does not exist: " + artifactFile );
|
||||
}
|
||||
|
||||
helper.attachArtifact( project, artifactType, artifactClassifier, artifactFile );
|
||||
|
||||
getLog().info( "[MAVEN-CORE-IT-LOG] Attached artifact file: " + artifactFile );
|
||||
|
|
|
@ -83,6 +83,11 @@ public class SetMojo
|
|||
artifactFile = new File( project.getBasedir(), mainFile );
|
||||
}
|
||||
|
||||
if ( !artifactFile.exists() )
|
||||
{
|
||||
getLog().warn( "[MAVEN-CORE-IT-LOG] Main artifact file does not exist: " + artifactFile );
|
||||
}
|
||||
|
||||
Artifact artifact = project.getArtifact();
|
||||
artifact.setFile( artifactFile );
|
||||
|
||||
|
|
Loading…
Reference in New Issue