vi apache-ranger-2.1.0/pom.xml
找到apache.snapshots.https和apache.public.https,修改如下
<repository>
<id>apache.snapshots.https</id>
<name>Apache </name>
<url>https://maven.aliyun.com/repository/apache-snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>apache.public.https</id>
<name>Apache Development Snapshot Repository</name>
<url>https://maven.aliyun.com/repository/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>