当尝试从 maven 命令行运行我们的 GWT 应用程序时,我收到以下错误:
目标 org.codehaus.mojo:gwt-maven-plugin:2.4.0:run 的参数“runTarget”丢失或无效。
但是,这是 pom.xml 中的以下内容:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<!-- <version>2.5.0</version> 2.1.0-1 -->
<version>${gwt.version}</version>
<configuration>
<configuration>
<runTarget>com.magick.webtrader/Webtrader.html</runTarget>
<buildOutputDirectory>${project.build.outputDirectory}</buildOutputDirectory>
<generateDirectory>${project.build.directory}/generated-sources/gwt</generateDirectory>
<hostedWebapp>${webappDirectory}</hostedWebapp>
<copyWebApp>true</copyWebApp>
<draftCompile>true</draftCompile>
<webXml>${basedir}/war/WEB-INF/web.xml</webXml>
</configuration>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test</goal>
<goal>generateAsync</goal>
</goals>
</execution>
</executions>
</plugin>
我做错了什么?
谢谢