背景:
maven构建时默认从其官网下载更新所需要的jar,但有些特殊的jar是其官网没有的,我们需要为其提供额外的来源地址,供其下载更新。
步骤:
只需在pom.xml文件中的<project>标签下添加如下标签:
<repositories>
<repository>
<id>mvn-repo</id>
<url>http://maven.nlpcn.org/</url>
</repository>
</repositories>
url视具体需求而定。