Hello Maven users,

Is there a way to configure source plugin to skip execution for a single
module, or at least not to fail build because module doesn't contain any
sources?

In my project source plugin is being run by release plugin's perform goal
(with default useReleaseProfile=test parameter value), and it fails a build
because a war module has no sources. That war module just depends on a jar
module and is used to start spring application context from that jar in web
application container.

Temporary workaround was to set useReleaseProfile to false but this skips
releasing source and javadoc for all modules. Not sure if configuring
release plugin not to useReleaseProfile for that war module only would do
the trick.

Regards,
Stevo.

Reply via email to