我试图执行使用Maven的EXEC我的项目:EXEC目标,我一直试图在这个片段中进行配置:的Maven Exec插件不读取配置
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.1.1</version>
<configuration>
<executable>java</executable>
<arguments>
<argument>-jar ${staging.dir}/project.jar</argument>
</arguments>
</configuration>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
</plugin>
当我运行mvn exec:exec
我得到的输出:
------------------------------------------------------------------------
[ERROR]BUILD ERROR
------------------------------------------------------------------------
One or more required plugin parameters are invalid/missing for 'exec:exec'
[0] Inside the definition for plugin 'exec-maven-plugin' specify the following:
<configuration>
...
<executable>VALUE</executable>
</configuration>
-OR-
on the command line, specify: '-Dexec.executable=VALUE'
我试过重组<plugin>
我可以想到但是没有什么区别?该项目是一个POM不是一个罐子。
任何想法?
配置元素不属于此插件的执行元素内部。 – 2009-07-14 13:48:06