On Tue, 2005-05-31 at 20:44 +1200, Simon Kitching wrote:
> Hi,
>
> Target maven:dist creates a target/distributions/${artifactId}.tar.gz
> file whose "docs" subdir contains:
> * the javadoc html files [good]
> * all the html files generated by reports [bad]
>
> I do want the report stuff for "maven site" but not in the binary
> distribution.
>
> Can anyone suggest how to achieve this?
>
> I've been experimenting with a preGoal for "dist:build-bin" that deletes
> the stuff out of ${maven.dist.bin.archive.dir} but I've not quite got it
> working. And it's not the best solution anyway; it would be better to
> avoid executing the reports in the first place for the "dist" goal.
Ok, I've got this working:
<preGoal name="dist:build-bin">
<delete includeEmptyDirs="true">
<fileset dir="${maven.dist.bin.assembly.dir}/docs">
<exclude name="apidocs/**"/>
</fileset>
</delete>
</preGoal>
It would still be appreciated if someone could show me how to simply
suppress the report generation rather than deleting it afterward [while
still allowing reports to be generated for the site:generate goal].
Regards,
Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]