Page 1 of 1
Grails on top of Broadleaf
Posted: Tue Mar 27, 2012 5:04 am
by shponter
Hi,
I am trying to get Grails (1.3.7) running on top of Broadleaf without any success.
Has anybody did it already? Is it possible?
Thanks in advance!
Cheers
Re: Grails on top of Broadleaf
Posted: Wed Mar 28, 2012 11:08 am
by ktisdell
I recently got Broadleaf Commerce running on Grails 2.0. Unfortunately, it was not a trivial task. Therefore, what I did was create a Grails Plugin for Broadleaf Commerce to simplify the process for Grails users. This plugin has not been released yet. It will be released soon as part of the Broadleaf 1.7 project. The most difficult part of this was related to the following:
- Dependency resolution
- Broadleaf's merge process and lifecycle management on Grails
- Unifying GORM and JPA
Broadleaf Commerce currently depends heavily on Spring 3.0 and JPA 2.0. In order to get it running on Grails we needed to update Broadleaf's dependencies to use Spring 3.1. The use of Spring 3.1 will be officially part of the Broadleaf 1.7 branch. We also needed to make use of the GORM JPA Plugin (
http://grails.org/plugin/gorm-jpa). That plugin currently supports JPA 1.0, but we were able to make it work. Broadleaf also requires three data sources and three transaction managers to be defined. Technically, they can all reference the same physical database, but they need to be defined as three separate ones for flexibility. The GORM JPA Plugin currently only allows for one of each. We were, however, able to make it work with some limitations. More thorough testing is required for all of this.
We believe that Broadleaf Commerce is the best eCommerce solution for use with Groovy and Grails. We are committed to ensuring that Broadleaf runs well on Grails. More work is required to get an enterprise-ready solution to market. As I mentioned, it is not trivial. But we are working on it now.
I don't believe we will be supporting a plugin for, or integration with, Grails 1.x, though.
Re: Grails on top of Broadleaf
Posted: Fri Jun 22, 2012 4:03 pm
by ktisdell
The Broadleaf Grails Plugin is published. However, it is not currently working. There seems to be some dependency issues that we have not resolved. I believe that they may, in part, be related to SLF4J. Although we plan to fix this problem and get it working, it is not at the top of our current backlog. If anyone in the community has any interest in contributing a fix for this it would be much appreciated. Essentially, the Broadleaf Grails Plugin is a wrapper around the Broadleaf Commerce framework and core libraries. It provides a lifecycle hook to allow Broadleaf's unique application context merge process to work within a Grails application. I have had this working, but it has required quite a bit of manual work. Things seemed to stop working when the plugin was moved into the public repository. Again, we are interested in fixing this, but it is unlikely that the core Broadleaf team will be working on it for the next few months, simply because there are a number of higher priority features that we are focusing on. If you are interested in using this plugin in the near term, please feel free to download the source from GitHub (
https://github.com/BroadleafCommerce/br ... ils-plugin) and submit a pull request. The real issue seems to be with some of the transitive dependencies.
Re: Grails on top of Broadleaf
Posted: Fri Jan 25, 2013 4:46 am
by gomzie
Has there been any progress in this? Is there any documentation about using broadleaf with grails?
Re: Grails on top of Broadleaf
Posted: Fri Jan 25, 2013 5:41 am
by gomzie
I get following while installing the plugin.
$ grails install-plugin broadleaf
| Error resolving plugin [name:broadleaf, group:org.grails.plugins, version:latest.integration]. Plugin not found.
| Error Plugin not found for name [broadleaf] and version [not specified]
Re: Grails on top of Broadleaf
Posted: Thu May 08, 2014 6:04 am
by surajpanda
HI,
I am trying to use broadleaf-grails-plugin on top of grails, but could not.
Can I find some documents saying : How to use this plugin to run the application as Grails?
Also, I found the DemoSite application (Maven application).
Thanks,
Suraj
Re: Grails on top of Broadleaf
Posted: Thu May 08, 2014 1:30 pm
by phillipuniverse
The Grails plugin has not been updated in a very very long time (~2 years).
Re: Grails on top of Broadleaf
Posted: Tue May 13, 2014 5:22 am
by surajpanda
Thanks Phillip,
Thanks for your reply.
Can I get the use case for "how to use broadleaf grails-plugin in earlier version of grails" ?
I believe the plugin is developed with grails 2.0.3 compatibility.
PS:
Is the developed broadleaf plugin a stable version and in use?
Thanks,
Suraj
Re: Grails on top of Broadleaf
Posted: Tue May 13, 2014 12:12 pm
by phillipuniverse
No, the Grails plugin is not considered stable and in use. I would not recommend using it at all for the sole reason that it was built using Broadleaf 1.7 and our current stable version is 3.1.2-GA.
What should really be done is investigation for the latest version of Broadleaf and the latest version of Grails. We would love to support any research or information that you can provide us in this area.