You are viewing a plain text version of this content. The canonical link for it is here.
Posted to builds@apache.org by "P. Ottlinger" <po...@apache.org> on 2022/11/14 12:07:19 UTC

[Creadur/Maven] antrun plugin not triggered during site build - is there a working way to copy over files to /target

Hi,

over at Creadur we use the maven-antrun-plugin to copy over a file 
during site build. I just realized that this mechanism does not work 
anymore as the file is not copied during the build.

Does anyone experience the same problem or has a different solution? We 
want to copy the existing RELEASE_NOTES.txt into the target/site-folder 
during the build.

https://github.com/apache/creadur-rat/blob/master/pom.xml#L390
https://github.com/apache/creadur-tentacles/blob/master/pom.xml#L192
calls the plugin to copy the file

But if I run
$ mvn site:site site:stage
no file is found under /target/site.

Thanks for any hints or references.

Cheers,
Phil

Re: [Creadur/Maven] antrun plugin not triggered during site build - is there a working way to copy over files to /target

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

Please check https://maven.apache.org/plugins/maven-site-plugin/usage.html
It works fine with: mvn site-deploy

On Mon, Nov 14, 2022 at 2:07 PM P. Ottlinger <po...@apache.org> wrote:

> Hi,
>
> over at Creadur we use the maven-antrun-plugin to copy over a file
> during site build. I just realized that this mechanism does not work
> anymore as the file is not copied during the build.
>
> Does anyone experience the same problem or has a different solution? We
> want to copy the existing RELEASE_NOTES.txt into the target/site-folder
> during the build.
>
> https://github.com/apache/creadur-rat/blob/master/pom.xml#L390
> https://github.com/apache/creadur-tentacles/blob/master/pom.xml#L192
> calls the plugin to copy the file
>
> But if I run
> $ mvn site:site site:stage
> no file is found under /target/site.
>
> Thanks for any hints or references.
>
> Cheers,
> Phil
>