Mule CE DevEnv 3.x.x

Setting up an env for development with the Mule ESB community edition could be quite a challenge. The following sections describe the necessary steps to set up one. After I most of the time work  on a Mac, all the steps are described for OS X but you can apply everything on Linux or Windows.


Your Toolbox

  • Java Development Kit 8 (jdk8)
  • Anypoint Studio (6.6)
  • Mule runtime ( >3.8.x)
  • Apache Maven (>3.6.1)
  • Git
  • Postman

JDK

Install the Java Development Kit first. It is the foundation of everything. If you don't know how to install the JDK on your operating system, follow the link for your OS.


Anypoint Studio 6

Anypoint Studio is basically a customised Eclipse IDE where you write your code/flows and thereby design various middle layer applications. You can also create there your unittests or run your applications on the integrated Mule runtime.

So lets head over to Mulesoft and download Anypoint Studio.

Unzip it and place it somewhere you will find your IDE again (for example Applications). When you start your Studio for the first time, you will be asked for your default Workspace. This ist where your Mule applications will be stored.

After hitting "Launch" your IDE opens up and now you are able to install new runtimes and configure your environment.


Mule runtime

The Mule runtime can be downloaded in enterprise (license key) and community versions. The easiest way to download a new community runtime (on Mac) goto >>Help | Install new Software | Work with:<< and select in the dropdown your community runtime.

Follow the flow until the end and accept the terms of licence agreement. After a few moments your new runtime will be downloaded and installed. After a restart you can find below >>Anypoint Studio | Preferences... | Anypoint Studio | Runtimes<< your installed versions.

Another thing to do is to install and configure Maven. You basically will need it to automate some boring tasks.


Maven

Unfamiliar with Maven? Do a fast dive here. After downloading and unzipping Maven you should point your Anypoint Studio to it. Goto >>Anypoint Studio | Preferences... | Anypoint Studio | Maven<< browse for your installation directory. After pointing to it, test the configuration.


GIT

Git is a speedy version control system to help you keep track of changes in your source code. You can download it here. After your installation finished, you should grab a terminal and verify that git is working proper by entering git --version in your preferred shell. If you don't get any response, something have gone wrong.

If you are new to GIT i recommend you to read Roger Dudlers simple GIT tutorial.


Postman

The output of Mule development will mostly be a REST services. To test them we will need a great toolkit like Postman. Download and install it from here.

You are now good to go to create a new Mule Community Application.