OpenSPG / openspg

OpenSPG is a Knowledge Graph Engine developed by Ant Group in collaboration with OpenKG, based on the SPG (Semantic-enhanced Programmable Graph) framework. Core Capabilities: 1) domain model constrained knowledge modeling, 2) facts and logic fused representation, 3) KAG will be natively supported soon, so please stay tuned...
https://spg.openkg.cn/en-US
Apache License 2.0
760 stars 93 forks source link

编译失败问题求助 #322

Closed hehsi closed 4 months ago

hehsi commented 4 months ago

jdk版本:1.8 maven版本:3.5.2 scala版本:2.11.12 如图所示。 在编译的过程中遇到如下错误: image 以及错误: [ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:4.3.0:compile (scala-compile-first) on project reasoner-udf: Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:4.3.0:compile failed.: CompileFailed -> [Help 1]

我已经将scala标注为Resouces root,请问如何解决这个问题呢? 4a025633ad455632989f41eb6ff97d23 150ac2586e5ec725a50713a01f4f2603 23865019777f4e0b77bec4c7771d1a13 a7e39698d85db97ef2c32efe9f71773a 错误信息.txt

andylau-55 commented 4 months ago

请在idea中安装好 scala插件 ,然后把各模块对应的/src/main/scala目录都变更为sources root 再执行编译打包命令进行尝试

hehsi commented 4 months ago

请在idea中安装好 scala插件 ,然后把各模块对应的/src/main/scala目录都变更为sources root 再执行编译打包命令进行尝试

scala插件已经安装好了,并且都变更为了sources root,但是还是会出现同样的错误。如图所示。 image image

andylau-55 commented 4 months ago

执行下 mvn clean install -Dmaven.test.skip=true -Dspotless.check.skip -Dspotless.apply.skip

hehsi commented 4 months ago

mvn clean install -Dmaven.test.skip=true -Dspotless.check.skip -Dspotless.apply.skip

是的,我执行的就是这段代码

andylau-55 commented 4 months ago

请提供下完整的异常日志信息

hehsi commented 4 months ago

请提供下完整的异常日志信息

完整日志信息如下: [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\builtin\udf\GeoDistance.java:19: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\builtin\udf\GeoDistance.java:20: 程序包org.locationtech.jts.io不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\builtin\udf\GeoDistance.java:33: 找不到符号 符号: 类 ParseException 位置: 类 com.antgroup.openspg.reasoner.udf.builtin.udf.GeoDistance [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\builtin\udf\GeoIntersectsArea.java:19: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\builtin\udf\GeoIntersectsShape.java:19: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\builtin\udf\GeoIsIntersects.java:19: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\builtin\udf\GeoWithin.java:19: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\builtin\udtf\GeoBufferAndConvert2S2CellId.java:28: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:30: 程序包org.geotools.geometry.jts不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:31: 程序包org.geotools.referencing不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:32: 程序包org.geotools.referencing.crs不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:33: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:34: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:35: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:36: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:37: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:38: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:39: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:40: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:41: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:42: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:43: 程序包org.locationtech.jts.io不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:44: 程序包org.locationtech.jts.io不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:45: 程序包org.locationtech.jts.io不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:46: 程序包org.locationtech.jts.operation.distance不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:47: 程序包org.opengis.referencing.crs不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:48: 程序包org.opengis.referencing.operation不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:83: 找不到符号 符号: 类 GeometryFactory 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:87: 找不到符号 符号: 类 WKTReader 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:90: 找不到符号 符号: 类 WKTWriter 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:99: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:99: 找不到符号 符号: 类 ParseException 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:109: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:128: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:128: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:135: 找不到符号 符号: 类 LineString 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:145: 找不到符号 符号: 类 Polygon 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:183: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:236: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:236: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:274: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:274: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:285: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:285: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:302: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:302: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:334: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:334: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] openspg-parent ..................................... SUCCESS [ 1.779 s] [INFO] server-parent ...................................... SUCCESS [ 0.144 s] [INFO] common-model ....................................... SUCCESS [ 3.696 s] [INFO] core-schema-model .................................. SUCCESS [ 3.505 s] [INFO] api-facade ......................................... SUCCESS [ 2.628 s] [INFO] common-util ........................................ SUCCESS [ 2.249 s] [INFO] api-http-client .................................... SUCCESS [ 2.640 s] [INFO] builder-parent ..................................... SUCCESS [ 0.108 s] [INFO] builder-model ...................................... SUCCESS [ 3.056 s] [INFO] testdata ........................................... SUCCESS [ 1.536 s] [INFO] builder-testdata ................................... SUCCESS [ 1.546 s] [INFO] cloudext-parent .................................... SUCCESS [ 0.100 s] [INFO] cloudext-interface-graph-store ..................... SUCCESS [ 5.282 s] [INFO] cloudext-interface-search-engine ................... SUCCESS [ 4.185 s] [INFO] common-service ..................................... SUCCESS [ 2.463 s] [INFO] biz-common ......................................... SUCCESS [ 4.094 s] [INFO] reasoner-parent .................................... SUCCESS [ 2.659 s] [INFO] reasoner-common .................................... SUCCESS [ 35.869 s] [INFO] reasoner-udf ....................................... FAILURE [ 2.592 s] [INFO] reasoner-lube-api .................................. SKIPPED [INFO] reasoner-kgdsl-parser .............................. SKIPPED [INFO] reasoner-openspg-catalog ........................... SKIPPED [INFO] reasoner-lube-logical .............................. SKIPPED [INFO] reasoner-lube-physical ............................. SKIPPED [INFO] reasoner-warehouse-common .......................... SKIPPED [INFO] reasoner-runner-common ............................. SKIPPED [INFO] cloudext-impl-graph-store-tugraph .................. SKIPPED [INFO] reasoner-cloudext-warehouse ........................ SKIPPED [INFO] reasoner-local-runner .............................. SKIPPED [INFO] cloudext-impl-search-engine-elasticsearch .......... SKIPPED [INFO] core-schema-service ................................ SKIPPED [INFO] biz-schema ......................................... SKIPPED [INFO] biz-service ........................................ SKIPPED [INFO] api-http-server .................................... SKIPPED [INFO] infra-dao .......................................... SKIPPED [INFO] arks-sofaboot ...................................... SKIPPED [INFO] test ............................................... SKIPPED [INFO] reasoner-thinker ................................... SKIPPED [INFO] builder-core ....................................... SKIPPED [INFO] builder-runner-local ............................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:22 min [INFO] Finished at: 2024-07-10T13:13:39+08:00 [INFO] Final Memory: 113M/1788M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:4.3.0:compile (scala-compile-first) on project reasoner-udf: Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:4.3.0:compile failed.: CompileFailed -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :reasoner-udf

andylau-55 commented 4 months ago

根据上述日志表示 idea未正确的builder出scala类及其依赖。 需要先确保本地idea环境能正确编译scala项目,您可以新建一个scala项目进行验证

hehsi commented 4 months ago

scala是可用的 3754c954f92fb0c6f6f0ae565610315c 但是还是出现如下错误: [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\builtin\udf\GeoDistance.java:19: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\builtin\udf\GeoDistance.java:20: 程序包org.locationtech.jts.io不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\builtin\udf\GeoDistance.java:33: 找不到符号 符号: 类 ParseException 位置: 类 com.antgroup.openspg.reasoner.udf.builtin.udf.GeoDistance [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\builtin\udf\GeoIntersectsArea.java:19: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\builtin\udf\GeoIntersectsShape.java:19: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\builtin\udf\GeoIsIntersects.java:19: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\builtin\udf\GeoWithin.java:19: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\builtin\udtf\GeoBufferAndConvert2S2CellId.java:28: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:30: 程序包org.geotools.geometry.jts不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:31: 程序包org.geotools.referencing不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:32: 程序包org.geotools.referencing.crs不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:33: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:34: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:35: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:36: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:37: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:38: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:39: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:40: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:41: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:42: 程序包org.locationtech.jts.geom不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:43: 程序包org.locationtech.jts.io不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:44: 程序包org.locationtech.jts.io不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:45: 程序包org.locationtech.jts.io不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:46: 程序包org.locationtech.jts.operation.distance不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:47: 程序包org.opengis.referencing.crs不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:48: 程序包org.opengis.referencing.operation不存在 [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:83: 找不到符号 符号: 类 GeometryFactory 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:87: 找不到符号 符号: 类 WKTReader 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:90: 找不到符号 符号: 类 WKTWriter 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:99: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:99: 找不到符号 符号: 类 ParseException 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:109: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:128: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:128: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:135: 找不到符号 符号: 类 LineString 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:145: 找不到符号 符号: 类 Polygon 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:183: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:236: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:236: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:274: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:274: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:285: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:285: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:302: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:302: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:334: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\utils\GeoUtils.java:334: 找不到符号 符号: 类 Geometry 位置: 类 com.antgroup.openspg.reasoner.udf.utils.GeoUtils [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] openspg-parent ..................................... SUCCESS [ 2.939 s] [INFO] server-parent ...................................... SUCCESS [ 0.266 s] [INFO] common-model ....................................... SUCCESS [ 5.053 s] [INFO] core-schema-model .................................. SUCCESS [ 4.599 s] [INFO] api-facade ......................................... SUCCESS [ 3.222 s] [INFO] common-util ........................................ SUCCESS [ 2.731 s] [INFO] api-http-client .................................... SUCCESS [ 3.249 s] [INFO] builder-parent ..................................... SUCCESS [ 0.129 s] [INFO] builder-model ...................................... SUCCESS [ 4.109 s] [INFO] testdata ........................................... SUCCESS [ 1.872 s] [INFO] builder-testdata ................................... SUCCESS [ 1.856 s] [INFO] cloudext-parent .................................... SUCCESS [ 0.123 s] [INFO] cloudext-interface-graph-store ..................... SUCCESS [ 7.292 s] [INFO] cloudext-interface-search-engine ................... SUCCESS [ 5.863 s] [INFO] common-service ..................................... SUCCESS [ 3.165 s] [INFO] biz-common ......................................... SUCCESS [ 5.701 s] [INFO] reasoner-parent .................................... SUCCESS [ 3.704 s] [INFO] reasoner-common .................................... SUCCESS [ 44.691 s] [INFO] reasoner-udf ....................................... FAILURE [ 3.002 s] [INFO] reasoner-lube-api .................................. SKIPPED [INFO] reasoner-kgdsl-parser .............................. SKIPPED [INFO] reasoner-openspg-catalog ........................... SKIPPED [INFO] reasoner-lube-logical .............................. SKIPPED [INFO] reasoner-lube-physical ............................. SKIPPED [INFO] reasoner-warehouse-common .......................... SKIPPED [INFO] reasoner-runner-common ............................. SKIPPED [INFO] cloudext-impl-graph-store-tugraph .................. SKIPPED [INFO] reasoner-cloudext-warehouse ........................ SKIPPED [INFO] reasoner-local-runner .............................. SKIPPED [INFO] cloudext-impl-search-engine-elasticsearch .......... SKIPPED [INFO] core-schema-service ................................ SKIPPED [INFO] biz-schema ......................................... SKIPPED [INFO] biz-service ........................................ SKIPPED [INFO] api-http-server .................................... SKIPPED [INFO] infra-dao .......................................... SKIPPED [INFO] arks-sofaboot ...................................... SKIPPED [INFO] test ............................................... SKIPPED [INFO] reasoner-thinker ................................... SKIPPED [INFO] builder-core ....................................... SKIPPED [INFO] builder-runner-local ............................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:46 min [INFO] Finished at: 2024-07-10T16:00:42+08:00 [INFO] Final Memory: 112M/1852M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:4.3.0:compile (scala-compile-first) on project reasoner-udf: Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:4.3.0:compile failed.: CompileFailed -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :reasoner-udf 我已经在项目中配置了scala 并且确保了scala的可用 image

andylau-55 commented 4 months ago

[ERROR] [Error] E:\openspg-master\reasoner\udf\src\main\java\com\antgroup\openspg\reasoner\udf\builtin\udf\GeoDistance.java:19: 程序包org.locationtech.jts.geom不存在。

提示依赖包不存在,请检查本地环境是否正确拉取了对应的jar包。 image

同时可在maven的settings.xml中添加


<mirror>
            <id>osgeo</id>
            <mirrorOf>*</mirrorOf>
            <name>osgeo</name>
            <url>https://repo.osgeo.org/repository/release/</url>
        </mirror>
hehsi commented 4 months ago

添加镜像后依旧报错,并且依赖出现了问题。 image image

andylau-55 commented 4 months ago

maven

根据错误提示,检查对应的jar包是否正常下载。上述错误为本地环境问题,需根据错误提示进行环境排查

hehsi commented 3 months ago

mvn的install下载是失败的,有什么办法解决吗?idea版本是2017,maven是3.5.2,java是1.8. 还是重新拉取项目进行mvn编译?