Reputation: 1220
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
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