You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Steven Coco <ma...@stevencoco.com> on 2006/02/28 23:29:37 UTC

Copying resources to the javadoc output directory.

Hello.

Say you have LICENSE.txt in the base directory of your project.  Now 
also say you want to copy that file into your JavaDoc output directory 
when JavaDoc runs -- or into the site directory when that runs.  HOW do 
you do that!?...

Thanks in advance,
Steven Coco.

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


Re: Copying resources to the javadoc output directory.

Posted by Barrie Treloar <ba...@gmail.com>.
On 3/1/06, Wayne Fay <wa...@gmail.com> wrote:
> I haven't done it myself, but I believe you can use the Assembly
> plugin to achieve this, though its rather convoluted...
>
> http://maven.apache.org/plugins/maven-assembly-plugin/howto.html
>
> Basically you create the package like normal, and include the
> LICENSE.txt in the Jar, and then use Assembly to unpack those files
> during the site phase.
>
> If you get this working, please respond with your pom.xml so the rest
> of us can benefit and perhaps it will be documented.

I've tried the assembly task.

It will create the files under target/<finalName>-<id> from the
assembly configuration in pom.xml

Which means I have to manually move the files out of this directory
into target/site

I have tried fiddling with the values in finalName and id to get it
into target/site but nothing has worked.

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


Re: Copying resources to the javadoc output directory.

Posted by Wayne Fay <wa...@gmail.com>.
I haven't done it myself, but I believe you can use the Assembly
plugin to achieve this, though its rather convoluted...

http://maven.apache.org/plugins/maven-assembly-plugin/howto.html

Basically you create the package like normal, and include the
LICENSE.txt in the Jar, and then use Assembly to unpack those files
during the site phase.

If you get this working, please respond with your pom.xml so the rest
of us can benefit and perhaps it will be documented.

Wayne

On 2/28/06, Barrie Treloar <ba...@gmail.com> wrote:
> On 3/1/06, Steven Coco <ma...@stevencoco.com> wrote:
> > Hello.
> >
> > Say you have LICENSE.txt in the base directory of your project.  Now
> > also say you want to copy that file into your JavaDoc output directory
> > when JavaDoc runs -- or into the site directory when that runs.  HOW do
> > you do that!?...
>
> I'm still looking for an answer to this question too,
> http://www.nabble.com/forum/ViewPost.jtp?post=3043044&framed=y
>
> The only response I have received so far is to use ant to do this.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


Re: Copying resources to the javadoc output directory.

Posted by Barrie Treloar <ba...@gmail.com>.
On 3/1/06, Steven Coco <ma...@stevencoco.com> wrote:
> Hello.
>
> Say you have LICENSE.txt in the base directory of your project.  Now
> also say you want to copy that file into your JavaDoc output directory
> when JavaDoc runs -- or into the site directory when that runs.  HOW do
> you do that!?...

I'm still looking for an answer to this question too,
http://www.nabble.com/forum/ViewPost.jtp?post=3043044&framed=y

The only response I have received so far is to use ant to do this.

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