1 在Idea中确认你的maven地址和本地仓库地址
2 找到maven的settins配置文件并打开
3:获取公司镜像的认证数据和仓库地址
4:添加认证数据
<server>
<id>取一个名称1</id>
<username>admin</username>
<password>xxxxxxxxx</password>
</server>
5:添加私有仓库地址数据
<profiles>
<profile>
<id>取一个名称2</id>
<repositories>
<repository>
<id>取一个名称1</id>
<url>公司仓库地址</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
6:激活这个服务
<activeProfiles>
<activeProfile>取一个名称2</activeProfile>
</activeProfiles>
7:就可以去maven中下载公司的内部依赖包啦~