【发布时间】:2016-11-04 10:31:14
【问题描述】:
我没有在 gwt 和将其中一个 gwt 项目 ant 迁移到 maven 以进行 devops 迁移方面的经验。
在 ant build 中它工作正常。
但是当我使用带有 gwt-maven-plugin 的 maven 来生成低于错误的代码时。
[DEBUG] 找到类:类 com.google.gwt.dev.GWTCompile [INFO] 编译 GWT 模块 com.companyname.projectname.branch.gwt.Dto [调试] 调用 GWTCompiler#main(String[]) [错误] 模块没有定义入口点 [错误] 构建失败
这是示例结构
主模块 xml
<module>
<inherits name='com.google.gwt.user.User' />
<inherits name='com.google.gwt.i18n.I18N' />
<inherits name='com.google.gwt.http.HTTP' />
<inherits name='com.companyname.projectname.branch.gwt.Dto' />
<inherits name='com.companyname.projectname.commons.Commons' />
<servlet path="/projectnamePLServicesImpl"
class="com.companyname.projectname.pr.gwt.server.projectnamePLServicesImpl" />
<entry-point class='com.companyname.projectname.ui.gwt.client.MainModule' />
dto xml
<?xml version="1.0" encoding="UTF-8"?>
<module>
<inherits name='com.google.gwt.user.User' />
<inherits name='com.google.gwt.i18n.I18N' />
</module>
和maven插件
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.0</version>
<configuration>
<moduleName>com.companyname.projectname.ui.gwt.client.MainModule</moduleName>
<!-- <logLevel></logLevel> -->
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
【问题讨论】:
标签: java spring maven jakarta-ee gwt