What is the most important thing that a mule developer needs? I think that well configured IDE is the answer. While you can have an appropriate set of skills, without a good toolkit you wouldn’t be as efficient as you could. In this article, I explain how I configure my development environment. I hope that you will enjoy it :)!

If you have some interesting tips feel free to post them in a comment below.

Check list

Java JDK 8
GIT / SVN
TortoiseGIT  / TortoiseSVN
Maven
Soap UI
Postman
Anypoint Studio

Environment

I work on a day-to-day basis on Windows OS, however you can apply tips on Linux as well. The only one exception here are Tortoise Apps. TortoiseGIT and TortoiseSVN are only available for Windows OS while they are designed to integrate with Windows Explorer.

Around Anypoint Studio

Java

In order to work with anypoint studio Java JDK 8 should be installed. Either path to Java should be specified in PATH system variable or in Anypoint Studio configuration.

Version Control

I have never met developer that did not use any versioning control system. The most popular are GIT and SVN. I use for most of the projects GIT versioning system.
Each application that I am describing or building on this blog is published on GIT server known as GitHub.

Dependency management

Anypoint Studio has already bundled maven installation. I prefer to have my own maven installation as I know where it is installed and I can connect to the same maven repository from different IDEs.

Testing toolkit

Since we write RESTfull and/or SOAP web services we need toolkit that allows us to test them. I use standalone Postman for REST calls. I much appreciate the possibility to synchronize content between devices and sharing requests with the team. In case of SOAP web services I use Soap UI. It is a software that accepts WSDL file definition and generate sample requests. I like that tool as well for mock feature. I am able just based on WSDL file test service without actually calling real implementation.

Anypoint Studio

When we have set Java, versioning control software and maven installed we may set up Anypoint Studio. First you need to unzip file that you have downloaded. Start application and select default workspace.

Runtime

Mule ESB is delivered as a Community Edition and an Enterprise Edition. If you do not have license you need to download community edition, as Studio is equipped by default only with enterprise edition. In order to do it perform next steps:

  1. Go to menu Help → Install New Software…
  2. Select Mule Runtimes for Anypoint Studio in Work with
  3. Next extend Anypoint Studio Community Runtimes
  4. Select desired version like Mule ESB Server Runtime 3.9.0 CE
  5. Proceed with installation

Useful plugins

By default Anypoint Studio support maven only for mule applications. However there are times when you would like to import java project that is maven-enabled. Without additional plugin that will not be possible. In order to enable it we need to install M2Elipse plugin.

  1. Go to menu Help → Install New Software…
  2. In Work with: field paste following URL: http://download.eclipse.org/technology/m2e/releases and press Enter
  3. After a while you should be able to pick m2e – Maven Integration for Eclipse (includes Incubating components)
  4. Proceed with installation keeping default values. Except of course page with license acceptance :).
  5. Restart Anypoint Studio
  6. Navigate to Window → Preferences
  7. Go to Anypoint Studio and then to Maven.
  8. Next to Maven installation home directory click Browse… button and navigate to you private maven installation
  9. Click Test Maven Configuration to verify if selected maven installation is not corrupted
  10. Click Apply button
  11. Navigate to Maven and then Installations position
  12. Click Add button
  13. Select maven installation directory and click Finish
  14. Finally click Apply button
Maven installation configuration

I assure you that it is a frequent scenario, when we develop both mule and java projects that are maven enabled.

As I mentioned it earlier GIT/SVN systems are used in every projects. I do not like switching back and forth between my IDE and Windows Explorer to perform GIT/SVN operations on file system. I would prefer to do that directly from IDE. We will install EGit plugin.

  1. Go to menu Help → Install New Software…
  2. In Work with: field paste following URL: http://download.eclipse.org/egit/updates and press Enter
  3. After a while you should be able to pick Git integration for Eclipse
  4. Proceed with installation, keeping default values
  5. Restart Anypoint Studio

 

Well done. You are now ready to develop Mule and Java applications in a single IDE.

Set up Anypoint Studio – all you need to know
Tagged on:                 

Leave a Reply

Your email address will not be published. Required fields are marked *