Page 1 of 1

how to upgrade broadleafcommerce?

Posted: Thu Feb 23, 2012 10:50 am
by kossel
Hi I'm using 1.5.2-GA, and the developement is already began. and I just noticed the the archtype now is 1.5.3-GA. is there an instruction of how to update to 1.5.3-ga?
I would like to keep my project updated

thanks

Re: how to upgrade broadleafcommerce?

Posted: Fri Feb 24, 2012 10:11 am
by jearles
As long as you have retained the "archetype" project structure, and are using Maven, you can upgrade by changing the parent POM.

Find all the references to broadleaf dependencies in your root pom.xml and change the version from 1.5.2-GA to 1.5.3-GA.

Even better, introduce a pom property (broadleaf.version) and reference that in all the broadleaf dependencies. This way you only have one place to change when upgrading.

e.g.

Code: Select all

  <properties>
   <broadleaf.version>1.5.3-GA</broadleaf.version>
  </properties>

  ...

  <dependency>
      <groupId>org.broadleafcommerce</groupId>
      <artifactId>broadleaf-framework</artifactId>
      <version>${broadleaf.version}</version>
      <type>jar</type>
      <scope>compile</scope>
  </dependency>

  ... more broadleaf dependencies


--

Based on the JIRA entries assigned to 1.5.3 (http://www.broadleafcommerce.org/jira/b ... sion/10071) it looks like it should be a drop-in replacement (with no schema updates).