I want maven-javadoc-plugin
to be skipped by default, during the
mvn clean install
command, so I have added <skip>true<skip>
in the pom.xml
But I want it to be executed whenever needed, so I am trying something like
mvn clean install -Dmaven.javadoc.skip=false
But it seems that it is overriding this setting with that in pom.xml
and not executing the javadoc plugin.
What can I do to resolve this problem?