`
sillycat
  • 浏览: 2560202 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

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


分享到:
评论

相关推荐

    lenskit-eval-maven-plugin-2.0.3.1.zip

    《开源项目:lenskit-eval-maven-plugin-2.0.3.1与composite-logging-deploy在Grails中的应用》 在IT领域,开源项目一直是推动技术进步的重要力量,它们提供了丰富的资源和工具,使得开发者能够快速构建、部署和...

    grails-maven-archetype-2.3.4.zip

    标题 "grails-maven-archetype-2.3.4.zip" 暗示这是一个Grails框架的Maven构建模板,版本为2.3.4。Grails是基于Groovy语言的开源Web应用框架,它简化了开发过程,提供了一种更加简洁、高效的编程模型。Maven则是一个...

    SpringBoot-Gradle-Maven-Java-Groovy

    SpringBoot、Gradle、Maven、Java和Groovy是Java生态系统中的重要组成部分,它们在现代软件开发中扮演着至关重要的角色。这篇详细的知识点解析将深入探讨这些技术及其相互关系。 1. **SpringBoot**: SpringBoot是...

    Grails入门指南书籍和源码----下载不扣分,回帖加1分,欢迎下载,童叟无欺

    getting started with grails chinese Grails入门指南书籍和源码----下载不扣分,回帖加1分,欢迎下载,童叟无欺 getting started with grails chinese Grails入门指南书籍和源码----下载不扣分,回帖加1分,欢迎...

    grails-plugins-metadata

    标题“grails-plugins-metadata”指的是Grails框架中的一个关键组件,它是Grails插件系统的重要组成部分。Grails是一个基于Groovy语言的开源Web应用框架,它借鉴并融合了Ruby on Rails的设计理念,提供了高效的开发...

    grails3.2.8的maven依赖

    在实际开发中,Grails 3.2.8与Maven的结合使得开发者能够充分利用Maven的强大功能,如依赖管理和构建自动化,同时享受Grails带来的便捷和高效。通过熟练掌握这两个工具的集成使用,你可以更有效地构建和管理复杂的...

    阿里云Maven仓库镜像.docx

    阿里云Maven仓库镜像提供了多种类型的仓库,包括central仓、jcenter仓、public仓、google仓、gradle-plugin仓、spring仓、spring-plugin仓、grails-core仓、apache snapshots仓等。每种仓库都提供了不同的依赖项,...

    grails 中文文档+grails-fckeditor-0.9.5.zip插件

    本文将深入探讨Grails的中文文档以及“grails-fckeditor-0.9.5”插件的相关知识点。 一、Grails框架基础 1. Groovy语言:Grails的基础是Groovy,这是一种面向对象、动态类型的编程语言,语法简洁且与Java高度兼容...

    grails-datastore-gorm-plugin-support-2.0.4.RELEASE.zip

    总之,"grails-datastore-gorm-plugin-support-2.0.4.RELEASE.zip"提供了一个宝贵的资源,让开发者有机会学习和实践Grails的ORM功能和Android的MVC设计模式。无论是对Grails框架的探索,还是对Android开发的深化,这...

    Getting-Started-with-Grails-Chinese

    这本书《Getting Started with Grails 中文版》是为初学者准备的一份指南,帮助他们快速理解 Grails 框架的基本概念和工作流程。书中可能涵盖了以下内容: 1. **安装与配置**:介绍如何在各种操作系统上设置 Grails...

    grails-fck-editor-0.3.zip_grails_grails-fck-editor

    标题中的"grails-fck-editor-0.3.zip_grails_grails-fck-editor"表明这是一个与Grails框架相关的插件,具体来说是FCKeditor的一个版本。FCKeditor是一款广泛使用的开源富文本编辑器,它允许用户在网页上创建和编辑...

    grails-doc-CN-1.0.rar

    `grails-doc-CN-1.0.rar` 文件包含的是 Grails 1.0 版本的中文参考文档,对于那些不熟悉英文文档或者想要深入了解 Grails 的中文用户来说,这是一个极其宝贵的资源。 文档主要涵盖以下几个关键知识点: 1. **...

    Agile Development with Groovy and Grails.pdf

    在《Agile Development with Groovy and Grails》这本著作中,作者Christopher M. Judd(Judd Solutions, LLC 的总裁兼顾问)详细介绍了如何运用Groovy和Grails框架进行敏捷软件开发。此书不仅适合那些对敏捷方法论...

    grails-web-url-mappings-2.5.4.zip

    这个名为"grails-web-url-mappings-2.5.4.zip"的压缩包包含了Grails 2.5.4版本中的Web URL映射相关代码,让我们深入探讨这一关键组件。 Grails是一个基于Groovy语言的全栈式Java web框架,其设计理念是“简洁、生产...

    Grails Persistence with GORM and GSQL

    Grails Persistence with GORM and GSQL

    grails-datastore-gorm-tck-1.0.9.RELEASE.zip

    标题 "grails-datastore-gorm-tck-1.0.9.RELEASE.zip" 提供的信息表明,这是一个与Grails框架相关的数据存储(Datastore)和GORM(Grails Object Relational Mapping)测试兼容性工具包(Test Compatibility Kit,...

    Grails-2.4.4-用户手册

    2. **创建新项目**:通过`grails create-app`命令创建项目,理解`grails-app`目录结构。 3. **编写Domain Class**:学习如何定义领域类,包括关系映射和验证规则。 4. **创建Controller**:了解如何创建控制器,处理...

    Getting-Started-with-Grails-Chinese.rar_Getting Started_grails

    《Getting Started with Grails》是一本面向初学者的指南,主要介绍了Grails这一现代Web开发框架的使用。Grails是一个基于Groovy语言的开源框架,它简化了Java平台上的Web应用开发,提供了丰富的功能和高效的生产力...

Global site tag (gtag.js) - Google Analytics