Grails(23)Grails with Multi Tenant and Executor Plugins - Maven Deploy

Grails(23)Grails with Multi Tenant and Executor Plugins - Maven Deploy

Multi Tenant Plugin
http://grails.org/plugin/multi-tenant

Executor Plugin
http://www.grails.org/plugin/executor

It seem that these 2 plugins will not work if we put them together. Fetch and get the source codes from Multi Tenant.

>git clone https://github.com/multi-tenant/grails-multi-tenant-core.git

Change some of the codes in here.
if (currentTenant.get() != 0 && setTenantId != currentTenant.get()) {
        println "Failed Update Because TenantId Doesn't Match"
        shouldFail = true;
}

The class is grails.plugin.multitenant.core.hibernate.TenantEventHandler

Build and Package this plugin.
>grails clean
>grails upgrade
>grails compile
>grails package-plugin

This command will generate the eclipse project configuration files.
>grails integrate-with --eclipse

Install the maven publisher plugin
>grails install-plugin maven-publisher

These configuration in BuildConfig.groovy will publish to target server
grails.project.dependency.distribution = {
     remoteRepository(id: "pluginSnapshots", url: "http://repository.sillycat.com/artifactory/plugins-snapshot-local/") {
          authentication username: "builder", password: “change me"
     }
     remoteRepository(id: "pluginReleases", url: "http://repository.sillycat.com/artifactory/plugins-release-local/") {
          authentication username: "builder", password: “change me"
     }
     remoteRepository(id: "pluginFeature", url: "http://repository.sillycat.com/artifactory/plugins-feature-local/") {
          authentication username: "builder", password: “change me"
     }
}

This command will do to publish the jar to the repository.
>grails "maven-deploy --repository=pluginSnapshots"


References:
http://grails.org/plugin/multi-tenant


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值