課程
/后端開發
/Java
/項目管理利器——maven
我手動下載了一個junit jar 包 也不知道放在什么目錄下
2018-08-02
源自:項目管理利器——maven 2-2
正在回答
maven的settings.xml里設置為阿里云私服 mirror部分替換如下
<mirrors>
<!-- mirror
| Specifies a repository mirror site to use instead of a given repository. The repository that
| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
|
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://my.repository.com/repo/path</url>
</mirror>
-->
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirrors>
你好,我的也報這個錯,后來我把jdk1.7.0_80 ?換成了jdk1.8.0_152, 再重新運行,就成功了。
都兩天了,還沒有解決呢
有人回答嗎?我的也是這個錯誤。。。
這個不用你手動下載,你把pom寫好了,在這里mvn compile 第一次運行它會自己下些東西的
慕函數3438982
舉報
使用maven來構建和管理Java項目,從環境配置,到maven核心知識
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2019-05-01
maven的settings.xml里設置為阿里云私服 mirror部分替換如下
<mirrors>
<!-- mirror
| Specifies a repository mirror site to use instead of a given repository. The repository that
| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
|
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://my.repository.com/repo/path</url>
</mirror>
-->
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
</mirrors>
2018-10-01
你好,我的也報這個錯,后來我把jdk1.7.0_80 ?換成了jdk1.8.0_152, 再重新運行,就成功了。
2018-09-07
都兩天了,還沒有解決呢
2018-09-07
有人回答嗎?我的也是這個錯誤。。。
2018-08-04
這個不用你手動下載,你把pom寫好了,在這里mvn compile 第一次運行它會自己下些東西的