数码资讯
在 pom.xml 中配置 Maven Repository 时的注意事项
选购提示
关注价格、性能、续航、售后和真实使用场景,理性比较后再下单。
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>xxx release</name>
<url>internal_release_repo</url>
</repository>
<repository>
<snapshots/>
<id>snapshots</id>
<name>xxx Snapshots</name>
<url>internal_snapshot_repo</url>
</repository>
</repositories>
注意如果将内部的 Maven Repository 的 id 配置为 central 或 snapshots,会导致 Maven 运行时将其当做默认的 Repo。如果某个依赖在此 Repo 不存在,也不会访问官方默认的 Repo
声明:本文内容用于数码产品信息整理与选购参考,具体价格、库存、售后政策以官方渠道和电商页面实时信息为准。