问题描述
我了解您为什么要向pom添加存档信息.但是为什么要提供SCM信息?是否可以通过pom完全实现项目?
I understand why you would want to add archive information to a pom. But why SCM info? Is it possible to materialize a project completely from a pom?
我一直将Maven项目存储在svn中的方式是,将所有内容(包括eclipse项目,maven pom)添加到存储库中.每当我更改任何内容(包括pom)时,我都会执行SVN提交.
The way I've always stored maven projects in svn, is I add everything (including the eclipse project, maven pom), to a repository. Any time I make a change to anything (including the pom), I do a SVN commit.
有没有一种方法可以直接通过Maven执行SVN操作?这是最佳做法吗?
Is there a way to perform SVN operations directly through maven? Is this a best practice?
推荐答案
SCM插件等其他功能(例如网站生成)使用POM中的SCM配置. M2Eclipse插件将从SCM实现您的Maven项目.
The SCM plugin among other features such as site generation use the SCM configuration in the POM. The M2Eclipse plugin will materialize your Maven project from SCM using the configuration found in the POM.
这篇关于向Maven Pom添加scm信息的目的是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!