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.
我知道我可以把它提取出来,但这不是我想要的。
4 个解决方案
#1
317
The Javadoc generation can be skipped by setting the property maven.javadoc.skip
to true [1], i.e.
通过设置属性maven.javadoc可以跳过生成Javadoc。跳转到真正的[1],即。
-Dmaven.javadoc.skip=true
(and not false)
(而不是假)
#2
105
It seems, that the simple way
看起来,就是这么简单
-Dmaven.javadoc.skip=true
does not work with the release-plugin. in this case you have to pass the parameter as an "argument"
不使用发布-插件。在这种情况下,必须将参数作为“参数”传递
mvn release:perform -Darguments="-Dmaven.javadoc.skip=true"
#3
98
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:
您可以使用maven.javadoc。通过Mojo的javadoc跳过属性来跳过插件的执行。可以将值指定为Maven属性:
<properties>
<maven.javadoc.skip>true</maven.javadoc.skip>
</properties>
or as a command-line argument: -Dmaven.javadoc.skip=true
, to skip generation of the Javadocs.
或者作为命令行参数:-Dmaven.javadoc。skip=true,跳过Javadocs的生成。
#4
9
Add to the release plugin config in the root-level pom.xml:
在root-level poml .xml中添加到发布插件配置:
<configuration>
<arguments>-Dmaven.javadoc.skip=true</arguments>
</configuration>
#1
317
The Javadoc generation can be skipped by setting the property maven.javadoc.skip
to true [1], i.e.
通过设置属性maven.javadoc可以跳过生成Javadoc。跳转到真正的[1],即。
-Dmaven.javadoc.skip=true
(and not false)
(而不是假)
#2
105
It seems, that the simple way
看起来,就是这么简单
-Dmaven.javadoc.skip=true
does not work with the release-plugin. in this case you have to pass the parameter as an "argument"
不使用发布-插件。在这种情况下,必须将参数作为“参数”传递
mvn release:perform -Darguments="-Dmaven.javadoc.skip=true"
#3
98
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:
您可以使用maven.javadoc。通过Mojo的javadoc跳过属性来跳过插件的执行。可以将值指定为Maven属性:
<properties>
<maven.javadoc.skip>true</maven.javadoc.skip>
</properties>
or as a command-line argument: -Dmaven.javadoc.skip=true
, to skip generation of the Javadocs.
或者作为命令行参数:-Dmaven.javadoc。skip=true,跳过Javadocs的生成。
#4
9
Add to the release plugin config in the root-level pom.xml:
在root-level poml .xml中添加到发布插件配置:
<configuration>
<arguments>-Dmaven.javadoc.skip=true</arguments>
</configuration>