我正在使用这个 Maven 插件:
<groupId>de.saumya.mojo</groupId>
<artifactId>gem-maven-plugin</artifactId>
我希望能够传入一个参数来跳过指定目标的执行。 (例如mvm install -skipGemPlugin=true
)
我该怎么做?
最佳答案
我最终创建了一个单独的配置文件来运行 tomcat 并跳过目标执行:
<profile>
<id>foo</id>
<build>
<plugins>
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>gem-maven-plugin</artifactId>
<executions>
<execution>
<id>compassProcessSource</id>
<phase>none</phase>
</execution>
</executions>
...
关于maven-3 - Maven - 通过传递参数跳过目标执行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21918487/