问题描述
我有一个简单的Grails 2.2.4
应用程序,该应用程序仅在页面上列出了一堆项目.因此,我只有一个控制器,甚至没有使用数据库.
I have a simple Grails 2.2.4
application that simply lists a bunch of items on a page. So I only have one controller and I'm not even using the database.
现在,我想将此应用程序转换为OSGi吊索包,以便可以在Adobe CQ下运行它.
Now, I want to convert this application into an OSGi sling bundle so that I can run it under Adobe CQ.
当我准备Grails应用程序时,它会创建一个WAR文件...如何对其进行调整,以使其创建一个OSGi捆绑包的war/jar文件?
when I prepare the Grails app it creates a WAR file...how can I tweak it such that it creates a war/jar file that is an OSGi bundle?
作为一个例子,我遇到了这个 Slingbucks 例子.我能够构建它(JAR)并将其上传到Adobe CQ,并且能够在Adobe CQ中运行它.
As an example, I came across this Slingbucks example. I was able to built it (JAR) and upload the JAR to Adobe CQ and I was able to run it inside Adobe CQ.
问题
我想知道是否有一种方法可以调整Grails应用程序,使其可以在Adobe CQ中作为捆绑软件运行
I'm wondering if there is a way to tweak a Grails app such that can be run as a bundle in Adobe CQ
推荐答案
首先安装 grails osgi插件或 jira grails插件(最新)
grails install-plugin osgi
然后,您可以按照 Groovy 网站上的说明将其转换为罐子
then you can follow the instructions at the Groovy site to convert it to a jar.
这篇关于是否可以将简单的grails应用程序转换为可以在Adobe CQ中运行的OSGi捆绑软件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!