【发布时间】:2011-11-02 12:23:23
【问题描述】:
目前,我正在从事一个 gwt-maven 项目。与每个 GWT 项目一样,它具有以下 gwt.xml
<module rename-to='myProject'>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User' />
.
.
...
我创建了另一个 gwt.xml 来设置持续集成的配置。 (定义为here。)
<module rename-to='myProject'>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.myCompany.myProject' />
.
.
...
这是我用来管理配置文件和更改 gwt.xml 的 pom。
<profile>
<id>ci</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<configuration>
<module>com.myCompany.myProject</module>
<style>OBF</style>
</configuration>
</plugin>
</plugins>
</build>
</profile>
如果我尝试使用配置文件 ci (mvn package -Pci) 打包项目,我会收到以下错误。
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.3.0-1:compile (default) on project MyProject: GWT Module com.myCompany.myProject not found in project sources or resources. -> [Help 1]
我该如何解决?
【问题讨论】: