Page 1 of 1

broadleafcommerce Development workspace

Posted: Tue Jun 07, 2016 4:44 pm
by gustavo.ponce
Hi broadleafcommerce team,

I am a java developer and I would like to participate in this project as collaborator in order to share and improve my knowledge.

I have been playing with DemoSite (building and deploying admin and site war files, MySQL configuration, etc.) but my idea is to setup the full project in eclipse in order to debug and analyze the code locally at runtime, so I would like to know if there is a way to debug BroadleafCommerce repository from Eclipse? (please refer the attached images in order to see my current configuration)

Can you please let me know if I am in the right path?

Thanks
Gustavo

Environment:
Git Repository: https://github.com/BroadleafCommerce/Br ... mmerce.git
Version: 4.0.x
Eclipse: Mars
MySQL: 5.7
Server: Tomcat 7.0

Re: broadleafcommerce Development workspace

Posted: Tue Jul 25, 2017 4:04 pm
by phillipuniverse
If you import the DemoSIte project in Eclipse then you will have access to the Broadleaf classes within Eclipse that you can open with CTRL + SHIFT + T ('Open Type'). Then you can set whatever breakpoints you want on these classes.

If you would like to try your hand at doing some modifications to the framework, if you pull down the latest version locally (currently the develop-5.2.x branch on GitHub) then you must make sure the version that you are targeting in your DemoSIte is the same that you have pulled down.

For instance, this is the current version that you will be compiling of Broadleaf if you pull down the develop-5.2.x branch from GitHub: https://github.com/BroadleafCommerce/Br ... pom.xml#L8 (at the time of writing this is 5.2.1-SNAPSHOT). If you were to compile this and do 'mvn clean install' to use this version of Broadleaf, it would build the 5.2.1-SNAPSHOT version.

IF you were to download the latest release of DemoSite, that version is currently targeting 5.2.0-GA and thus it will not use the version that you just compiled locally.

To remedy this, you should change the DemoSite version to 5.2.1-SNAPSHOT. I wouldn't recommend this but you can also check out the broadleaf-5.2.0-GA version of the Broadleaf framework to get the versions to match up.

The Broadleaf forums are being retired as a readonly archive of questions. For active discussions and questions, check out the broadleaf-commerce tag on Stack Overflow which is actively monitored by the Broadleaf team.