日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

使用maven聚合安装多个maven工程到本地仓库报错的解决方法:child module pom.xml does not exist

發(fā)布時間:2023/12/3 编程问答 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 使用maven聚合安装多个maven工程到本地仓库报错的解决方法:child module pom.xml does not exist 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

轉(zhuǎn)自:?https://stackoverflow.com/questions/26021141/maven-child-module-does-not-exist

1)在maven項(xiàng)目Parent中的 pom.xml 中 使用聚合安裝多個 maven工程到本地倉庫,pom配置如下:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><groupId>com.atguigu.maven</groupId><artifactId>Parent</artifactId><version>0.0.1-SNAPSHOT</version><packaging>pom</packaging><modules><module>../Hello</module><module>../HelloFriend</module><module>../OutFriends</module><module>../MakeFriends</module></modules>

右鍵該pom.xml 執(zhí)行 mvn install , 報錯信息如下:

[INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] Child module E:\bench-cluster\spring_in_action_eclipse\Parent\..\Hello of E:\bench-cluster\spring_in_action_eclipse\Parent\pom.xml does not exist @ [ERROR] Child module E:\bench-cluster\spring_in_action_eclipse\Parent\..\HelloFriend of E:\bench-cluster\spring_in_action_eclipse\Parent\pom.xml does not exist @

解決方法是:使用如下聚合配置

<!-- 通過modules 聲明聚合安裝的工程名稱 ,然后統(tǒng)一install,且工程間的放置順序可以隨意 --> <profiles><profile><modules><module>../Hello</module><module>../HelloFriend</module><module>../OutFriends</module><module>../MakeFriends</module></modules></profile></profiles>最后 pom.xml 右鍵 -> maven install 安裝成功。 bingo。


總結(jié)

以上是生活随笔為你收集整理的使用maven聚合安装多个maven工程到本地仓库报错的解决方法:child module pom.xml does not exist的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。