WeBankFinTech / DataSphereStudio

DataSphereStudio is a one stop data application development& management portal, covering scenarios including data exchange, desensitization/cleansing, analysis/mining, quality measurement, visualization, and task scheduling.
https://github.com/WeBankFinTech/DataSphereStudio-Doc
Apache License 2.0
3.09k stars 1k forks source link

DSS编译报错 #315

Open lordk911 opened 3 years ago

lordk911 commented 3 years ago

[INFO] Compiling 2 source files to D:\idea_projects\DataSphereStudio-0.9.1\dss-appjoint-auth\target\classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /D:/idea_projects/DataSphereStudio-0.9.1/dss-appjoint-auth/src/main/java/com/webank/wedatasphere/dss/appjoint/auth/AppJointAuth.java:[20,54] 程序包com.webank.wedatasphere.dss.appjoint.auth.impl不存在 [ERROR] /D:/idea_projects/DataSphereStudio-0.9.1/dss-appjoint-auth/src/main/java/com/webank/wedatasphere/dss/appjoint/auth/AppJointAuth.java:[35,33] 程序包AppJointAuthImpl$不存在 [INFO] 2 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.921 s [INFO] Finished at: 2021-04-28T10:25:55+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project dss-appjoint-auth: Compilation failure: Compilation failure: [ERROR] /D:/idea_projects/DataSphereStudio-0.9.1/dss-appjoint-auth/src/main/java/com/webank/wedatasphere/dss/appjoint/auth/AppJointAuth.java:[20,54] 程序包com.webank.wedatasphere.dss.appjoint.auth.impl不存在 [ERROR] /D:/idea_projects/DataSphereStudio-0.9.1/dss-appjoint-auth/src/main/java/com/webank/wedatasphere/dss/appjoint/auth/AppJointAuth.java:[35,33] 程序包AppJointAuthImpl$不存在 [ERROR] -> [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/MojoFailureException

lordk911 commented 3 years ago

因为实现类是scala写的,需要在编译时指定优先编译scala 才行 mvn clean scala:compile compile package 说明:在 compile 前加 scala:compile,这是该插件提供的选项,表示:先编译 Scala,再编译 Java,最后打包。

lordk911 commented 3 years ago

只在windows下编译遇到此问题,Linux没有遇到问题