<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
。