I've been reading the docs for the deploy plugin, and am confused about the altDeployment repository parameters.
我一直在阅读deploy插件的文档,并对altDeployment存储库参数感到困惑。
There are these three params:
有这三个参数:
- altDeploymentRepository
- altReleaseDeploymentRepository
- altSnapshotDeploymentRepository
Whereas the altRelease and altSnapshot seem to be fairly straightfoward, I'm not sure what the altDeploymentRepository setting is for. Is that supposed to be a superset of the Snapshot and Release?
虽然altRelease和altSnapshot似乎相当直接,但我不确定altDeploymentRepository设置的用途。这应该是快照和发布的超集吗?
Can someone clarify the difference between the three settings and when to use which?
有人可以澄清三种设置之间的区别以及何时使用哪种?
1 个解决方案
#1
altDeploymentRepository
No idea
altReleaseDeploymentRepository
Let's say you are going to build the artifact which does not have any SNAPSHOT
attached to your pom file. Ex: 43.0.1
(this is release version) 43.0.1-SNAPSHOT
(this is SNAPSHOT
version), release version will always be unique...also it means you have properly tested all the code. So when you define releaseRepo
, your artifact will load into the release repository
假设您要构建没有任何SNAPSHOT附加到您的pom文件的工件。例:43.0.1(这是发布版本)43.0.1-SNAPSHOT(这是SNAPSHOT版本),发行版本将始终是唯一的...也意味着您已经正确测试了所有代码。因此,当您定义releaseRepo时,您的工件将加载到发布存储库中
altSnapshotDeploymentRepository
SNAPSHOT
artifact is useful for initial testing: once you build the code, respective artifact will load into the snapshot repository
SNAPSHOT工件对初始测试很有用:一旦构建代码,相应的工件将加载到快照存储库中
#1
altDeploymentRepository
No idea
altReleaseDeploymentRepository
Let's say you are going to build the artifact which does not have any SNAPSHOT
attached to your pom file. Ex: 43.0.1
(this is release version) 43.0.1-SNAPSHOT
(this is SNAPSHOT
version), release version will always be unique...also it means you have properly tested all the code. So when you define releaseRepo
, your artifact will load into the release repository
假设您要构建没有任何SNAPSHOT附加到您的pom文件的工件。例:43.0.1(这是发布版本)43.0.1-SNAPSHOT(这是SNAPSHOT版本),发行版本将始终是唯一的...也意味着您已经正确测试了所有代码。因此,当您定义releaseRepo时,您的工件将加载到发布存储库中
altSnapshotDeploymentRepository
SNAPSHOT
artifact is useful for initial testing: once you build the code, respective artifact will load into the snapshot repository
SNAPSHOT工件对初始测试很有用:一旦构建代码,相应的工件将加载到快照存储库中