offline:
Determines whether maven should attempt to connect to the network when executing a build.
This will have an effect on artifact downloads, artifact deployment, and others.
Default: false
<offline>false</offline>
...
...
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<updatePolicy>daily</updatePolicy>
</snapshots>
<id>maven-repoid</id>
<url>/</url>
</repository>
...
...
本文讨论了Maven中控制在执行构建时是否连接网络的<offline>配置,影响了 artifact下载和部署。默认情况下为false。还介绍了如何配置仓库的更新策略。
9409

被折叠的 条评论
为什么被折叠?



