You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Simon Kitching <sk...@apache.org> on 2005/05/31 10:44:15 UTC

building binary distributions without report information

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.


One other thing: there isn't any Maven info on wiki.apache.org; it might
be nice to at least have a welcome page.

Thanks,

Simon


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: building binary distributions without report information

Posted by Simon Kitching <sk...@apache.org>.
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: building binary distributions without report information

Posted by Brett Porter <br...@gmail.com>.
On 5/31/05, Simon Kitching <sk...@apache.org> wrote:
> Can anyone suggest how to achieve this?

I think dist would need to be modified to allow exclusions, it doesn't
have anything AFAICT.

> One other thing: there isn't any Maven info on wiki.apache.org; it might
> be nice to at least have a welcome page.

It was only just created a little while back. I'll put something up.

- Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org