0
org.codehaus.mojo GWT 플러그인을 사용하여 만든 GWT 라이브러리를 가져 오는 데 문제가 있습니다. 동일한 프로젝트 내에서 진입 점을 만들면 프로젝트 클래스가 올바르게 컴파일되고 올바르게 작동합니다. 나는의 .jar로 프로젝트를 컴파일하고, 다른 프로젝트로 가져 오려고 할 때, 내가 얻을 : 다음은GWT : "가져온 소스 코드가 없습니다."
<build>
<!-- Output classes directly into the webapp, so that IDEs and "mvn process-classes" update them in DevMode -->
<outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
<plugins>
<!-- Mojo's Maven Plugin for GWT -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.8.0-beta1</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test</goal>
<goal>generateAsync</goal>
</goals>
</execution>
</executions>
<configuration>
<runTarget>GwtyLeaflet.html</runTarget>
<modules>
<module>com.gwidgets.GwtyLeaflet</module>
</modules>
<jsInteropMode>JS_RC</jsInteropMode>
</configuration>
</plugin>
</plugins>
</build>
: 여기
Tracing compile failure path for type 'com.test.client.test'
[INFO] [ERROR] Errors in 'file:/C:/Users/zakaria/Desktop/myWork/GWidgets/workspace/testing/src/main/java/com/test/client/test.java'
[INFO] [ERROR] Line 23: No source code is available for type com.gwidgets.leaflet.options.MapOptions; did you forget to inherit a required module?
[INFO] [ERROR] Line 23: No source code is available for type com.gwidgets.leaflet.options.ZoomPanOptions; did you forget to inherit a required module?
[INFO] [ERROR] Line 23: No source code is available for type com.gwidgets.leaflet.L; did you forget to inherit a required module?
[INFO] [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
는 pom.xml 파일의 추출물 또한 모듈 설명자 :
<module rename-to='GwtyLeaflet'>
<inherits name='com.google.gwt.user.User' />
<inherits name="com.google.gwt.core.Core"/>
<inherits name='com.gwidgets.api.GwtyLeaflet' />
<source path='leaflet'/>
</module>
나는 뭔가가 없습니까?
또한 라이브러리를 가져올 프로젝트에서 .gwt.xml을 상속받습니다. –
이 맵 라이브러리를 사용하고 있습니까? https://github.com/branflake2267/GWT-Maps-V3-Api? 그렇다면 상속 물이 누락되었습니다. – Branflake2267
절대로, 패키지 경로가 다릅니다. – Branflake2267