In pom.xml I have declaration like this
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
is there any way to turn that off from command line?
I do know I can extract that into a profile, but that is not what I want.
Add to the release plugin config in the root-level pom.xml:
It seems, that the simple way
does not work with the release-plugin. in this case you have to pass the parameter as an "argument"
You can use the
maven.javadoc.skip
property to skip execution of the plugin, going by the Mojo's javadoc. You can specify the value as a Maven property:or as a command-line argument:
-Dmaven.javadoc.skip=true
, to skip generation of the Javadocs.The Javadoc generation can be skipped by setting the property
maven.javadoc.skip
to true [1], i.e.(and not false)