I use maven release plugin for generating release of my project. I do not want to generate Javadoc all time I build. On the other hand when I call release:perform I would like if maven would generate sources.jar and javadoc.jar and would deploy it to maven release repository. Just because I am curious how deploying source.jar can be disabled, since It looks like it is deployed by default.
From the documentation of Maven Release Plugin, there is a useReleaseProfile
parameter, which determines Whether to use the release profile that adds sources and javadocs to the released artifact, if appropriate
. This is true
by default. You can try changing this as appropriate to enable/disable source/javadocs.
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