Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 在项目源或资源GWT中找不到类_Java_Maven_Gwt - Fatal编程技术网

Java 在项目源或资源GWT中找不到类

Java 在项目源或资源GWT中找不到类,java,maven,gwt,Java,Maven,Gwt,我正在用Maven构建GWT应用程序。我的应用程序使用一些自定义UI表单而不是标准表单。我有带有自定义UI表单的文件,打包在.jar文件中 我的.ui.xml文件包含以下内容: <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' xmlns:nc='custompackage.gw

我正在用Maven构建GWT应用程序。我的应用程序使用一些自定义UI表单而不是标准表单。我有带有自定义UI表单的文件,打包在
.jar
文件中

我的
.ui.xml
文件包含以下内容:

<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
             xmlns:g='urn:import:com.google.gwt.user.client.ui'
             xmlns:nc='custompackage.gwt.fields.client.widgets.reference'
>
...    
<nc:UIReferenceField width="100%" text = "123" nc:field="rf"/>
...
当我构建Maven模块时,我得到:

我也研究过类似的问题,但他们的解决方案对我毫无帮助。你能帮我吗


附言:我的模块没有自定义字段,构建得很好。

我没有在.pom文件中添加一些依赖项。我继承的模块依赖于它们,因此无法编译

我没有向.pom文件添加一些依赖项。我继承的模块依赖于它们,因此无法编译

您可以发布
custompackage.gwt.fields.fields.gwt.xml
文件吗?该文件是否包含在
.jar
中?您是否提供了该.jar的详细信息?您是否可以发布
custompackage.gwt.fields.fields.gwt.xml
文件?该文件是否包含在
.jar
中?你提供了吗?jar?@Ajax是的,我有。@Ajax是的,我有。
...
<inherits name="custompackage.gwt.fields.Fields"/>
...
Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.6.0:compile (default)
on project geographical-view-for-osp-gwt-2: GWT Module
com.netcracker.platform.ui.toolkit.gwt.i18n.i18n not found in project sources or resources.