DJI后端依赖
已完成后端使用maven 进行打包时出现报错,导致服务器也无法启动,显示找不到主类错误: 找不到或无法加载主类 com.dji.sample.CloudApiSampleApplication
原因: java.lang.ClassNotFoundException: com.dji.sample.CloudApiSampleApplication
-
[INFO]
[INFO] ---------------------------< com.dji:sample >---------------------------
[INFO] Building sample 1.10.0
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for com.dji:cloud-sdk:jar:1.0.3 is missing, no dependency information available
[WARNING] The POM for com.alibaba:druid:jar:1.2.6 is invalid, transitive dependencies (if any) will not be available: 2 problems were encountered while building the effective model for com.alibaba:druid:1.2.6
[ERROR] 'dependencies.dependency.systemPath' for com.sun:tools:jar must specify an absolute path but is ${project.basedir}/lib/openjdk-1.8-tools.jar @
[ERROR] 'dependencies.dependency.systemPath' for com.sun:jconsole:jar must specify an absolute path but is ${project.basedir}/lib/openjdk-1.8-jconsole.jar @[WARNING] The artifact mysql:mysql-connector-java:jar:8.0.31 has been relocated to com.mysql:mysql-connector-j:jar:8.0.31: MySQL Connector/J artifacts moved to reverse-DNS compliant Maven 2+ coordinates.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.102 s
[INFO] Finished at: 2025-02-19T11:29:50+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project sample: Could not resolve dependencies for project com.dji:sample:jar:1.10.0
[ERROR] dependency: com.dji:cloud-sdk:jar:1.0.3 (compile)
[ERROR] com.dji:cloud-sdk:jar:1.0.3 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced
[ERROR]
[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/DependencyResolutionException
(base) PS C:\Users\wyk31\Desktop\DJI-Cloud-API-Demo-main> 截图有点糊,进行报错补充,在maven中未能找到相关dji依赖
请先登录再写评论。
评论
1 条评论