【Maven】有关 snapshots、releases 的说明

1、nexus-snapshots 用于发布 快照版(SNAPSHOT)

      nexus-releases  用于发布 发布版(RELEASE)

2、pom.xml 中的版本定义:

  快照版:0.0.1-SNAPSHOT

  发布版:1.0.1-RELEASE

例如:
<groupId>com.test</groupId> <artifactId>cloud</artifactId> <version>1.0.1-RELEASE</version> <groupId>com.test</groupId> <artifactId>cloud</artifactId> <version>0.0.1-SNAPSHOT</version>

3、pom.xml 中含有 SNAPSHOT 符号的发布到私有仓库中都为快照版,其余都是 RELEASE 版本。

4、快照版 会自动加一个时间作为标识,如:0.0.1-SNAPSHOT 发布后变成 0.0.1-SNAPSHOT-20200304.123456-1.jar 。

5、快照版 可以多次发布一个版本,但仓库 jar包后缀 会递增,如:0.0.1-SNAPSHOT-20200304.123478-2.jar发布版 不会。

原文地址:https://www.cnblogs.com/humor-bin/p/12790254.html