场景:私库里面认证包跟非认证同时支持下载,比如我要从my_repository仓库中下载一个groupId=ai.grakn,artifactId=redis-mock,version=0.1.6的二方包,这个包只在my_repository仓库有,除了这个包,其他的二方包都从maven-public仓库下载,配置如下:
1、pom.xml配置如下
my-repository http://nexus.xxx.com/repository/my_repository/
2、settings.xml配置如下
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">



