[
http://jira.codehaus.org/browse/MOJO-1374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matthew Jensen updated MOJO-1374:
---------------------------------
Attachment: MOJO-1374.patch
Patch to not copy artifactFile if there isn't one.
> If your module creates no artifact then osxbundle mojo fails with
> NullPointerException
> --------------------------------------------------------------------------------------
>
> Key: MOJO-1374
> URL: http://jira.codehaus.org/browse/MOJO-1374
> Project: Mojo
> Issue Type: Bug
> Components: osxappbundle
> Reporter: Matthew Jensen
> Attachments: MOJO-1374.patch
>
>
> 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.
> {code}
> 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 );
> }
> {code}
> Throws a NPE inside FileUtils, because artifactFile is null.
> Protecting it with {code}if(artifactFile!=null){code} allows the plugin to
> continue and creates a workable .dmg.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email