开发者

Maven: Result of Antrun is in target, but not in output of site-stage and site-deploy. Why?

I have configured the ant-run-plugin to run in the post-site phase. By the way, it transforms to findbugs-report. I find its result in my target/site-folder. Calling site-stage produces the entire multi-module site in an extra directory. There, my transformed findbugs-report is missing. Why is that?

I assumend stage-site copies the pieces from every target/site to my stating directory. It does not do that. It seems to recreate everything, but overlooks my transformed report. Ho开发者_运维知识库w can I tell it to pick it up?


Actually, you've almost answered this question yourself. About the site:stage goal, the documentation writes:

Generates a site in a local staging or mock directory based on the site URL specified in the <distributionManagement> section of the POM.

It can be used to test that links between module sites in a multi module build works.

So, no, site:stage doesn't copy files generated by site:site, it generates "another" site.

Thus, processing target/site when running the antrun plugin is fine when you run site:site, but not when you run site:stage. When running site:stage, you need to tell it to process the staging directory.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜