maven-javadoc-plugin

How can I disable the Maven Javadoc plugin from the command line?

不羁岁月 提交于 2019-11-28 15:26:09
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. mswientek The Javadoc generation can be skipped by setting the property maven.javadoc.skip to true [ 1 ], i.e. -Dmaven.javadoc.skip=true (and not false) It seems, that the simple way -Dmaven.javadoc.skip=true does

How can I disable the Maven Javadoc plugin from the command line?

做~自己de王妃 提交于 2019-11-27 09:13:00
问题 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. 回答1: The Javadoc generation can be skipped by setting the property maven.javadoc.skip to true [1], i.e.