简体   繁体   English

SCM和Maven-通过Maven或Eclipse使用SCM?

[英]SCM and maven - using SCM through Maven or Eclipse?

If I am using subversion through eclipse (subclipse, subclipse maven handler), then I don't need to add maven:scm information to settings.xml, right? 如果我通过eclipse(subclipse,subclipse Maven处理程序)使用Subversion,那么我不需要在settings.xml中添加maven:scm信息,对吗? Are there any other reasons why I may need to add the SCM information to my project or maven settings file? 还有其他原因为什么我可能需要将SCM信息添加到我的项目或Maven设置文件中? I plan on using continuous integration in the future. 我计划将来使用持续集成。

It just seems kind of pointless to add SCM information anywhere within the maven project object model, if eclipse is managing all of that for me, but then again I may naive. 如果eclipse可以为我管理所有这些内容,那么在Maven项目对象模型中的任何地方添加SCM信息似乎毫无意义,但我还是会天真。 I heard somewhere down the grapevine that CI tools look for SVN info inside of poms? 我在小道消息中听到CI工具在poms内查找SVN信息?

You need to put the SCM information in your maven build to be able to do a release via Maven. 您需要将SCM信息放入您的Maven构建中,以便能够通过Maven发布。 Furthermore it is a good idea to put the information for information purposes if you creating the web-site via maven site. 此外,如果您通过maven网站创建网站,则出于信息目的放置信息是一个好主意。 The information about using scm information via CI is not correct. 有关通过CI使用scm信息的信息不正确。 You can decide not to put the scm information into your pom but it's best practice to do in particular in relationship with release process where it's necessary. 您可以决定不将scm信息放入pom中,但是最好的做法是特别在需要时与释放过程关联。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM