Can I download jar files and just replace them to migrate?

Forum for questions and issues related to 3.0 migration.

Those wishing to upgrade should start by looking at the migration documents published on the Broadleaf Commerce documentation site.

Moderator: jocanas

gowthamgutha
Intermediate
Intermediate
Posts: 98
Joined: Sat Mar 01, 2014 6:19 am

Can I download jar files and just replace them to migrate?

Postby gowthamgutha » Sun Aug 31, 2014 11:33 am

For migration, instead of modifying in my application, could I download the latest jar files and replace them in my project?

Thanks in advance. Hope you will reply as soon as possible.

phillipuniverse
Team Member
Team Member
Posts: 1563
Joined: Tue Dec 20, 2011 12:11 pm

Re: Can I download jar files and just replace them to migrate?

Postby phillipuniverse » Wed Sep 03, 2014 11:22 pm

Sorry, don't really understand your question. Could you elaborate some?

gowthamgutha
Intermediate
Intermediate
Posts: 98
Joined: Sat Mar 01, 2014 6:19 am

Re: Can I download jar files and just replace them to migrate?

Postby gowthamgutha » Tue Sep 09, 2014 5:32 am

I mean, I downloaded the Broadleaf 3.1.0-GA release, now, I need to upgrade to the latest version. Is it enough to just update the maven dependencies to the latest version to get to Broadleaf latest version?

Thanks in advance.

phillipuniverse
Team Member
Team Member
Posts: 1563
Joined: Tue Dec 20, 2011 12:11 pm

Re: Can I download jar files and just replace them to migrate?

Postby phillipuniverse » Tue Sep 09, 2014 8:30 am

Yes. You will want the Broadleaf 3.1.8-GA release. All you need to do is update your pom.xml to target this version.

gowthamgutha
Intermediate
Intermediate
Posts: 98
Joined: Sat Mar 01, 2014 6:19 am

Re: Can I download jar files and just replace them to migrate?

Postby gowthamgutha » Wed Sep 10, 2014 6:04 am

Also, am I allowed to modify the source of the broadleaf framework according to my project?

Thanks.

phillipuniverse
Team Member
Team Member
Posts: 1563
Joined: Tue Dec 20, 2011 12:11 pm

Re: Can I download jar files and just replace them to migrate?

Postby phillipuniverse » Wed Sep 10, 2014 12:52 pm

Sure, but that is not something that I recommend doing. That question is the same as asking "can I modify the source of the Spring Framework according to my project?" Sure you can, if you fork the Spring Framework and then customize it but that is not something that you should be doing for your project specifically. You should instead pull in Spring as a dependency of your project just like you should pull in Broadleaf as a dependency of your project.

In Broadleaf we have a ton of extension points to customize how Broadleaf works for your own custom application. If there is an extension point in Broadleaf that is missing, then maybe we need to change the framework in some way to support the use case you are trying to implement (which we would love to hear about).

gowthamgutha
Intermediate
Intermediate
Posts: 98
Joined: Sat Mar 01, 2014 6:19 am

Re: Can I download jar files and just replace them to migrate?

Postby gowthamgutha » Thu Sep 11, 2014 6:09 am

One thing I would like to tell is to allow the developers to completely replace the existing broadleaf entities with their own ones.

For example, the entire ProductImpl in the product should be able to be replaced MyProductImpl pointing to the same table BLC_PRODUCT.

Thank you.

phillipuniverse
Team Member
Team Member
Posts: 1563
Joined: Tue Dec 20, 2011 12:11 pm

Re: Can I download jar files and just replace them to migrate?

Postby phillipuniverse » Sat Sep 13, 2014 2:14 pm

One thing I would like to tell is to allow the developers to completely replace the existing broadleaf entities with their own ones.


Not really what I would call a good idea. If you are just trying to add more columns to the BLC_PRODUCT table without extending it into a new table, I would instead use single-table inheritance. Check out http://www.broadleafcommerce.com/docs/c ... s-tutorial near the bottom for the section 'Single Table Inheritance'.


Return to “3.0 Upgrade and Migration”

Who is online

Users browsing this forum: No registered users and 1 guest