Spark pom.xml有以下一组执行:特别是我对此代码段底部的“attach-scaladocs”感兴趣:
<execution>
<id>attach-scaladocs</id>
<phase>verify</phase>
<goals>
<goal>doc-jar</goal>
</goals>
</execution>
以下是片段所处的较大环境:
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>scala-compile-first</id>
<phase>process-resources</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>scala-test-compile-first</id>
<phase>process-test-resources</phase>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
<execution>
<id>attach-scaladocs</id>
<phase>verify</phase>
<goals>
<goal>doc-jar</goal>
</goals>
</execution>
</executions>
特定的执行非常耗时且不需要我的需求。但是,由于git合并问题,修改pom.xml(通过注释掉它 - 工作正常BTW)不符合我的最佳利益。
通过maven命令行开关禁用该执行的任何方法?