【发布时间】:2016-05-01 01:27:34
【问题描述】:
<profile>
<id>integration-tests</id>
<activation>
<property>
<name>integrations</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.4.0</version>
<executions>
<execution>
<id>script-chmod</id>
<phase>integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>chmod</executable>
<arguments>
<argument>+x</argument>
<argument>integration-test-docker/integrations.sh</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>script-exec</id>
<phase>integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>integration-test-docker/integrations.sh</executable>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
此配置文件中有更多内容,但我只包含了我想要运行的内容。我怎样才能执行这个特定插件的这个特定目标?
我试过mvn exec:exec,但我明白了
[ERROR] 未能执行目标 org.codehaus.mojo:exec-maven-plugin:1.3.2:exec (default-cli) on 项目ando:目标的参数“可执行” org.codehaus.mojo:exec-maven-plugin:1.3.2:exec 丢失或无效 -> [帮助 1]
此外,错误输出指示版本1.3.2,但我使用的是1.4.0。
【问题讨论】:
标签: maven maven-3 pom.xml exec-maven-plugin maven-profiles