Designing Mule Domains (Anypoint Studio)
Go to File > New > Mule Domain Project.
You can also right click in your Package Explorer view and select New > Mule Domain Project.
Set a name for your project.
This is also the artifactId of your domain’s POM file.
When editing your Mule domain, all related applications in your classpath get updated accordingly.
Right click your Mule application project in your Packager Explorer view.
Select Mule and Open Mule Project Properties.
Select your domain project from the Domain drop-down menu.
The drop-down menu only displays Mule domain projects in your workspace.
To point to an external domain in a remote M2 repository click Custom… and configure your domain coordinates.
Keep in mind that the Mule domains must be either available in your Studio Workspace or installed in the repository declared on your application project.
In a terminal, cd into your domain project’s folder.
mvn clean install.