菩提树下丶写代码 2021-09-27 11:22 采纳率: 33.3%
浏览 104
已结题

cmd启动微服务报错mvn spring-boot:run

cmd启动,本地idea中启动可以启动 但是cmd启动就启动不了,求大家指点一下

PS G:\xm\Probects\分布式项目\Yc-Margin\yc-margin-modules\yc-margin-file> mvn spring-boot:run
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.yc:yc-modules-file:jar:3.0.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ com.yc:yc:3.0.0, G:\xm\Probects\分布式项目\Yc-Margin\pom.xml, line 280, column 21
[WARNING] 'build.plugins.plugin.version' for org.springframework.boot:spring-boot-maven-plugin is missing. @ line 74, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] -----------------------< com.yc:yc-modules-file >-----------------------
[INFO] Building yc-modules-file 3.0.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] >>> spring-boot-maven-plugin:2.5.5:run (default-cli) > test-compile @ yc-modules-file >>>
Downloading from alimaven: http://maven.aliyun.com/nexus/content/repositories/central/com/yc/yc-common-swagger/3.0.0/yc-common-swagger-3.0.0.pom
[WARNING] The POM for com.yc:yc-common-swagger:jar:3.0.0 is missing, no dependency information available
Downloading from alimaven: http://maven.aliyun.com/nexus/content/repositories/central/com/yc/yc-common-swagger/3.0.0/yc-common-swagger-3.0.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.615 s
[INFO] Finished at: 2021-09-27T10:53:15+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project yc-modules-file: Could not resolve dependencies for project com.yc:yc-modules-file:jar:3.0.0: Could not find artifact com.yc:yc-common-swagger:jar:3.0.0 in alimaven (http://maven.aliyun.com/
nexus/content/repositories/central/) -> [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

  • 写回答

6条回答 默认 最新

  • 普通网友 2021-09-27 11:54
    关注

    看日志可以知道,缺少某个依赖

    Could not find artifact com.yc:yc-common-swagger:jar:3.0.0 
    
    评论

报告相同问题?

问题事件

  • 系统已结题 10月5日
  • 创建了问题 9月27日

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog