Grails - 没有安装SCM供应商 [英] Grails - No SCM provider installed

查看:118
本文介绍了Grails - 没有安装SCM供应商的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将我的插件部署到Nexus存储库中,并在我的SCM(Subversion)中创建标签。
插件中 BuildConfig.groovy 我写了 build:release:3.0.1部分并设置存储库:

I need deploy my plugin into Nexus repository and create tag in my SCM (Subversion). In BuildConfig.groovy I wrote build ":release:3.0.1" in plugin section and set up repository:

grails.project.repos.releases.url =http:// my-nexus: 8081 / content / repositories / releases
grails.project.repos.releases.username =deployment
grails.project.repos.releases.password =deployment123

当我启动 grails publish-plugin --repository = releases 命令时,我得到 WARN :没有安装SCM供应商。

When I launched grails publish-plugin --repository=releasescommand, I get WARN: No SCM provider installed.

如果我解决了这个警告,它会在Subversion上创建一个标签?
如何解决这个警告?请解决这个问题。

If I fix this warning, it will create a tag on Subversion? How can I fix this warning, please?

推荐答案

BuildConfig中必需的依赖关系。我没有意识到它被故意删除。事实上,我确实希望在迁移到Git之后让它工作,这导致我在这里。我可能会诉诸让构建服务器为Git做标记,但是下面是如何让它为SVN工作:

SVN tagging actually still works in 2.4.4 if you include the necessary dependencies in your BuildConfig. I didn't realize that it was removed intentionally. In fact, I was actually looking to get this working after migrating to Git, which led me here. I'll probably resort to letting the build server do the tagging for Git, but here's how to get it working for SVN:

   repositories {
        //Required for SVN dependencies
        mavenRepo "http://maven.tmatesoft.com/content/repositories/releases/"
    }
    dependencies {
        build("org.tmatesoft.svnkit:svnkit:1.8.6") {
            //excludes "jna", "trilead-ssh2", "sqljet"
            export = false
        }
    }
    plugins {
        build (":release:3.0.1") {
            export = false
        }
        build (":svn:1.0.2") {
            export = false
        }
    }

这篇关于Grails - 没有安装SCM供应商的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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