Page 1 of 1
How to setup eclipse for framework src and demo?
Posted: Wed Jan 01, 2014 1:56 am
by jay
Happy new year, I have a large project that needs an ecommerce solution as part of the whole application, and i am thinking to use broadleaf. I need make changes to broadleaf source code in order to integrate with other applications and to fit the requirements.
I've downloaded the 3.0.7-GA framework source code from guthub, and the demo workspace, I've successfully setup & run the demo site alone in eclipse, now I want to import the framework source into eclipse and starting development based on the demo. How can I do it?
Thanks
Re: How to setup eclipse for framework src and demo?
Posted: Thu Jan 02, 2014 3:32 am
by sunily
You have to create a new java project in eclipse and point the source to framework source code.Then open command promt and go to framework source code and run the following commands 1. mvn clean, 2.mvn install.
After successful execution you will see that latest version of jars is created with framework source and it is copied into .m2 directory for maven repository.
Please let me know if you get any issue.
Re: How to setup eclipse for framework src and demo?
Posted: Thu Jan 02, 2014 11:11 pm
by jay
Thanks sunily, I worked it out the day I posted this thread.
For the code changes in framework to take effect immediately on the demo site without a "maven clean install", after importing all projects into eclipse like you described, I set up demo to use tomcat within eclipse, then make eclipse to copy framework modules into WEB-INF/lib (in deployment assembly) when tomcat starts, and enabled jrebel.
Cheers.
Re: How to setup eclipse for framework src and demo?
Posted: Wed Jan 08, 2014 9:37 am
by reaganrosario
Hi Jay,
Can you elaborate on the steps? If I understand correctly you set the framework source and not the source for the demo correct? Cos the later happens when you setup the demo.
Now all the framework source is available as a jar file and I want them as a part of the source demo project so that I can change it. Let me know of your steps if you can.
Re: How to setup eclipse for framework src and demo?
Posted: Wed Jan 08, 2014 1:51 pm
by phillipuniverse
We do not recommend modifying the Broadleaf framework to suit your specific needs. We have provided a large amount of extension points designed for you to override in your own code with zero modifications to the actual framework code.
What are you trying to extend that you believe you need to modify the Broadleaf framework code for?
Re: How to setup eclipse for framework src and demo?
Posted: Thu Oct 09, 2014 3:47 pm
by zohaa
All of your entities and persistence should be in core. It might be that you have that dao declared in core but the orm.xml file declared in site?