Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Set Up Anypoint Studio: All You Need to Know

DZone's Guide to

Set Up Anypoint Studio: All You Need to Know

While you can have an appropriate set of skills, without a good toolkit, you won't be as efficient as you could. Learn how to configure your development environment.

· Integration Zone ·
Free Resource

SnapLogic is the leading self-service enterprise-grade integration platform. Download the 2018 GartnerMagic Quadrant for Enterprise iPaaS or play around on the platform, risk free, for 30 days.

What is the most important thing that a Mule developer needs? I think that a well-configured IDE is the answer. While you can have an appropriate set of skills, without a good toolkit, you won'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.

Checklist

  • 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 is 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 the PATH system variable or in Anypoint Studio configuration.

Version Control

I have never met a developer who 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 article is published on GitHub.

Dependency Management

Anypoint Studio has an 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 RESTful and/or SOAP web services, we need a 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 share requests with the team. With SOAP web services, I use Soap UI. It is a software that accepts WSDL file definition and generates sample requests. I also like that tool for mock features. I am able, just based on WSDL files, to test the service without actually calling a real implementation.

Anypoint Studio

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

Runtime

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

  1. Go to 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 only supports Maven for Mule applications. However, there are times when you would like to import a Java project that is Maven-enabled. Without an additional plugin, that would not be possible. In order to enable it, we need to install the M2Elipse plugin.

  1. Go to menu Help > Install New Software...
  2. In the Work with field, paste the 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, for the 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 the Maven installation home directory click Browse... and navigate to your private Maven installation.
  9. Click Test Maven Configuration to verify if the selected Maven installation is not corrupted.
  10. Click the Apply button.
  11. Navigate to Maven and then the Installations position.
  12. Click Add button.
  13. Select the Maven installation directory and click Finish.
  14. Finally, click the Apply button.

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 the Work with field, paste the 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.

This is all you need to know about setting up Anypoint Studio!

With SnapLogic’s integration platform you can save millions of dollars, increase integrator productivity by 5X, and reduce integration time to value by 90%. Sign up for our risk-free 30-day trial!

Topics:
integration ,anypoint studio ,tutorial

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}