栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

Maven什么操作都失败Process terminated

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Maven什么操作都失败Process terminated

C:Users20646.jdkscorretto-1.8.0_312binjava.exe -Dmaven.multiModuleProjectDirectory=C:Users20646IdeaProjectsMyPractiseWriteFlightQueryReservationCloudSystemflight-storage -Dmaven.home=F:IDEAIntelliJ_IDEA_2021.2.1pluginsmavenlibmaven3 -Dclassworlds.conf=F:IDEAIntelliJ_IDEA_2021.2.1pluginsmavenlibmaven3binm2.conf -Dmaven.ext.class.path=F:IDEAIntelliJ_IDEA_2021.2.1pluginsmavenlibmaven-event-listener.jar -javaagent:F:IDEAIntelliJ_IDEA_2021.2.1libidea_rt.jar=51620:F:IDEAIntelliJ_IDEA_2021.2.1bin -Dfile.encoding=UTF-8 -classpath F:IDEAIntelliJ_IDEA_2021.2.1pluginsmavenlibmaven3bootplexus-classworlds-2.6.0.jar;F:IDEAIntelliJ_IDEA_2021.2.1pluginsmavenlibmaven3bootplexus-classworlds.license org.codehaus.classworlds.Launcher -Didea.version=2021.2.1 -s D:mavenapache-maven-3.6.1confsettings.xml -DskipTests=true clean
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] 'dependencies.dependency.version' for org.mybatis.spring.boot:mybatis-spring-boot-starter:jar is missing. @ line 17, column 21
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project com.yinpeng:flight-storage:1.0-SNAPSHOT (C:Users20646IdeaProjectsMyPractiseWriteFlightQueryReservationCloudSystemflight-storagepom.xml) has 1 error
[ERROR]     'dependencies.dependency.version' for org.mybatis.spring.boot:mybatis-spring-boot-starter:jar is missing. @ line 17, column 21
[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/ProjectBuildingException

Process finished with exit code 1

 这是具体的报错内容

原因是因为我在子模块中添加了

        
            org.mybatis.spring.boot
            mybatis-spring-boot-starter
        

但是父类的mybatis依赖注释掉了

            

导致报错:

[ERROR]   The project com.yinpeng:flight-storage:1.0-SNAPSHOT (C:Users20646IdeaProjectsMyPractiseWriteFlightQueryReservationCloudSystemflight-storagepom.xml) has 1 error
[ERROR]     'dependencies.dependency.version' for org.mybatis.spring.boot:mybatis-spring-boot-starter:jar is missing. @ line 17, column 21
[ERROR] 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/895085.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号