I would like to deploy an artifact together with javadoc and a Maven site. I use
clean javadoc:jar site deploy site:deploy
(the split between site
and site:deploy
is just to avoid the deployment of a site if deploy
fails).
Now the javadoc is created twice - once in javadoc:jar
and once in site
. Is it possible to create it just once and use it both for the javadoc-jar
in Nexus and the Maven site?
I'm pretty sure the plugin is missing a check if the output is already generated as part of the Maven session. Would be a nice improvement to verify if the output is generated after Maven had started. (and let's add a force-parameter to enforce the creation anyway).
Possible solution that may you use is creation two different scripts for build/deploy and run them one by one:
Also, maybe next link help you:
So, you can specify execution phase of javadoc plugin and specify reportSet.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With