具有相同发布版本的2个不同功能分支的SNAPSHOT版本是什么 [英] What would be the SNAPSHOT version of 2 different feature branches with same released version

查看:230
本文介绍了具有相同发布版本的2个不同功能分支的SNAPSHOT版本是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们遇到的一个问题是,一个项目中有两个不同的功能,这些功能将以相同的发行版本提供.

We have encounter with an issue where we have two different features coming in a project that would be delivered with same released version.

例如-

该项目的当前发布版本是7.0.0.4,并且该项目中将有两种不同的功能实现,即并行功能和缓存功能.现在,我们需要从主干中取出两个分支用于缓存和并行项目功能,并且两个都将处于活动开发中,这两个功能都将在该项目的7.0.0.7版本中发布.
Maven坐标--

Current released version of the project is 7.0.0.4 and there will two different feature implementation say parallel and caching feature in the project. Now we need to take out two branches for both for Caching and Parallel project features from trunk and both will be in active development, both features will be released on 7.0.0.7 release build of the project.
Maven coordinate like -

用于并行功能

GroupId - com.tom.tomproject

artifactID - project

version - 7.0.0.7-SNAPSHOT

用于缓存功能

GroupId - com.tom.tomproject

artifactID - project

version - 7.0.0.7-SNAPSHOT

这两个分支的SNAPSHOT版本(7.0.0.7-SNAPSHOT)相同,这将导致歧义. 解决该问题的最佳方法是什么.

Here SNAPSHOT version(7.0.0.7-SNAPSHOT) for both branches getting same, it will leads to ambiguity. What would be the good approch to resolve this.

我应该更改groupID吗?还是有其他方法可以解决此问题?

Should I change groupID ? or is there any other way to resolve this issue ?

推荐答案

如果要构建这样的单独版本,请使用版本号来分隔分支,例如

If you want to build separate versions like that, use the version number to separate your branches, e.g.

7.0.0.7-Parallel-SNAPSHOT

7.0.0.7-Caching-SNAPSHOT

这篇关于具有相同发布版本的2个不同功能分支的SNAPSHOT版本是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆