Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: osxappbundle
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
My pom doesn't create an artifact, just brings together a few dependencies and creates a few installers. It has no java source and does not produce an artifact.
try { FileUtils.copyFile( artifactFile, new File(repoDirectory, layout.pathOf(project.getArtifact())) ); } catch ( IOException e ) { throw new MojoExecutionException( "Could not copy artifact file " + artifactFile + " to " + javaDirectory ); }
Throws a NPE inside FileUtils, because artifactFile is null.
Protecting it with
if(artifactFile!=null)
Patch to not copy artifactFile if there isn't one.