<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
,但我得到這個
[錯誤]未能執行目標 org.codehaus.mojo:上 項目EXEC(默認CLI):EXEC-Maven的插件:1.3.2安藤:參數 '可執行' 爲目標 org.codehaus.mojo:EXEC-行家-插件:1.3.2:EXEC缺失或無效 - > [幫助1]
此外,錯誤輸出指示版本1.3.2
,但我正在使用1.4.0
。