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]



