sirineBEJI
sirineBEJI

Reputation: 1220

How to skip javadoc for all modules?

I need to skip generating javadoc while making a release with -Dmaven.javadoc.skip=true but this does not make skipping javadocs for submodules. Is there a way to skip javadoc for all modules ? Note that I can't update the pom file (not my right). Is there a way to do it with the command line ?

Upvotes: 3

Views: 3123

Answers (1)

m4gic
m4gic

Reputation: 1513

It is not possible as you could see in the source code. The best thing that you can do is either ask the owner to introduce a maven profile for that and for you or you can do it in the dirty way: copy the pom.xml to somewhere, edit it and call the maven with

mvn -f [other pom file]

Update: Maybe I was wrong. Please check How can I disable the Maven Javadoc plugin from the command line?

Upvotes: 1

Related Questions