最近要用到一个包:spark-1.6.0-cdh5.8.2
,在https://mvnrepository.com
网站上搜到该包的pom.xml语句。但是看到下面有这样一句话:
该包在图中所述repository
中。因此要添加该repository
到mvn
远程数据仓库,才能获取到该依赖包。
下面给出添加远程仓库的方法:
在maven 的conf/settings.xml
文件下,找到<profiles>
标签下添加以下配置:
<profile>
<id>cdh</id>
<repositories>
<repository>
<