当前位置:首页> 正文

在 pom.xml 中配置 Maven Repository 时的注意事项

在 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

展开全文阅读

相关内容