已安装AnypointStudio
已在本地安装AnypointStudio
- 安装社区版
- Help > Install New Software> Mule ESB Server Runtime 3.9.0 CE
- Maven Tools for Mule工具安装
- Help > Install New Software> Maven Tools for Mule
- 配置eclipse
-
Wondows -> Preferences -> Java-> installed JREs
-
Wondows -> Preferences -> Anypoint Studio -> Maven maven路径要配置
-
D:\javatools\apache-maven-3.6.3\conf settings.xml 配置仓库与插件仓库
setting.xml
<profiles>
<profile>
<id>mule-extra-repos</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>mule-public</id>
<url> https://repository.mulesoft.org/nexus/content/repositories/public </url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>mule-public</id>
<url> https://repository.mulesoft.org/nexus/content/repositories/public </url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
- Wondows -> Preferences -> Java->Build Path -> Classpath Variable -> M2_REPO 配置为你的maven repository路径 M2_REPO Classpath Variable 配置
- 项目右键 Mule 添加依赖,添加到本地仓库、更新依赖等
- 项目右键 RunAs
开始mule项目
- File -> NEW -> Mule Project
参考文档
Step-by-step-guide-to-using-mule-esb
using-maven-with-mule
maven-tools-for-mule-esb