Broadleaf Commerce is an enterprise eCommerce platform that provides the next-level eCommerce functionality. With a streamlined and centralized interface, you can enable multiple sites for multiple brands using the same underlying codes. Not only can do manage your sites but broadleaf commerce includes product manage, order management, catalog management order, checkout modules, and more. It has comprehensive product features for small, medium, and large businesses that want a platform designed on some of the hottest open-source technologies such as JAVA, Maven, and JavaScript framework. For more about Broadleaf commerce, please check out its homepage. To get Broadleaf Commerce installed on Ubuntu, follow the steps below:

Install OpenJDK 8

Broadleaf is a Java-based app so you’ll need Java installed. First, download the Java 8 Development Kit: either the official Oracle JDK or Open JDK For this tutorial, we’re going to install OpenJDK. To do that, run the commands below: After installing Java, you can verify it by running the commands below: It should output something similar as shown below: After, continue below to install Maven.

Download and Install Maven

After installing OpenJDK version 8 above, use the steps below to download Maven. You will also need the latest version of Maven (at least version 3.3.1, version 3.3.9 is recommended). Next, go and download Apache Maven latest from its download page. The recommended version of Apache Maven is 3.3.9. Make sure to check the Maven download page to see if a newer version is available for you to download. If there are, select those and download them instead. Run the commands below to download version 3.3.9. Next, run the commands below to extract the downloaded package to the /opt directory. If you want to have separate versions and update them as they become available, create a symbolic link to the version folder. When the next version is released. all you have to do is update the symbolic link to reference the new release folder by running the command above and updating the release number in the folder name. Setup Maven Environment Variables After downloading and extracting the Maven package, go and set up its environment variables. To do that, run the commands below: Then copy and paste the lines below and save them into the file. Finally, run the commands below to update and load the changes. Now run the commands below to check the version number. You should see the content below.

Install Broadleaf Commerce

Now that both OpenJDK and Maven are installed, follow the steps below to download and install Broadleaf Commerce. First, change into the /tmp directory and download the broadleaf-commerce package. Then extract the content into your home directory. Change into the directory and use Maven to download and build all dependencies. That should download all dependencies and build Broadleaf. After a successful build, you should see a similar message as below: Next, go to the admin folder and start up the service. When you’re done, open your browser and browser to the server hostname or IP address followed by port 8081. That should brief up the Broadleaf commerce login page. Login with the credentials below: Username: admin Password: admin Conclusion: You’ve learned how to install broadleaf commerce on Ubuntu 18.04 | 16.04. If you find any error above, please use the comment form below to report it. Thanks!