执行maven指令时失败,‘modules.module[10]‘ specifies duplicate child module

当执行Maven指令时遇到'模块.module[10]'报错,提示子模块重复,解决方法是检查并移除父工程配置中重复的子模块定义,确保配置文件的一致性和准确性。

执行maven指令时失败,报错信息如下:

'modules.module[10]' specifies duplicate child module

原因:

上面的maven报错信息已经提示给我们:父工程中的子模块重复了

解决方法:

把重复的部分去除就ok了

"C:\Program Files\java\jdk-21\bin\java.exe" -Dmaven.multiModuleProjectDirectory=D:\my-workspace\my-education\study-project-master\study-project-master -Djansi.passthrough=true "-Dmaven.home=C:\Program Files\JetBrains\IntelliJ IDEA 2024.1.4\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Program Files\JetBrains\IntelliJ IDEA 2024.1.4\plugins\maven\lib\maven3\bin\m2.conf" "-Dmaven.ext.class.path=C:\Program Files\JetBrains\IntelliJ IDEA 2024.1.4\plugins\maven\lib\maven-event-listener.jar" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2024.1.4\lib\idea_rt.jar=27039:C:\Program Files\JetBrains\IntelliJ IDEA 2024.1.4\bin" -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 2024.1.4\plugins\maven\lib\maven3\boot\plexus-classworlds-2.7.0.jar;C:\Program Files\JetBrains\IntelliJ IDEA 2024.1.4\plugins\maven\lib\maven3\boot\plexus-classworlds.license" org.codehaus.classworlds.Launcher -Didea.version=2024.1.4 clean [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] 'modules.module[5]' specifies duplicate child module study-providers @ line 17, column 17 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.study.project:study-project-master:1.0-SNAPSHOT (D:\my-workspace\my-education\study-project-master\study-project-master\pom.xml) has 1 error [ERROR] 'modules.module[5]' specifies duplicate child module study-providers @ line 17, column 17 [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
08-05
"C:\Program Files\Java\jdk1.8.0_60\bin\java.exe" -Dmaven.multiModuleProjectDirectory=D:\学校中学习的课程\互联网微架构技术\作业1\springcloud -Djansi.passthrough=true -Dmaven.home=D:\soft\apache-maven-3.6.1 -Dclassworlds.conf=D:\soft\apache-maven-3.6.1\bin\m2.conf "-Dmaven.ext.class.path=C:\Program Files\Java\java破\IntelliJ IDEA 2023.2.5\plugins\maven\lib\maven-event-listener.jar" "-javaagent:C:\Program Files\Java\java破\IntelliJ IDEA 2023.2.5\lib\idea_rt.jar=51921:C:\Program Files\Java\java破\IntelliJ IDEA 2023.2.5\bin" -Dfile.encoding=UTF-8 -classpath D:\soft\apache-maven-3.6.1\boot\plexus-classworlds-2.6.0.jar org.codehaus.classworlds.Launcher -Didea.version=2023.2.5 -s D:\soft\apache-maven-3.6.1\conf\settings-hsnw.xml -Dmaven.repo.local=D:\apache-maven-3.5.4\repository clean [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] 'modules.module[6]' specifies duplicate child module eureka-ribbon-client @ line 18, column 17 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project org.example:springcloud:1.0-SNAPSHOT (D:\学校中学习的课程\互联网微架构技术\作业1\springcloud\pom.xml) has 1 error [ERROR] 'modules.module[6]' specifies duplicate child module eureka-ribbon-client @ line 18, column 17 [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 进程已结束,退出代码为 1
03-12
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值