默认情况下是没有 CE Runtime(即:社区版)的,需要点击 Runtime 模块右下角的 Install
Runtimes。
选择最新社区版下载安装,安装完重启即可。
Mule 的 Maven 依赖并不在 Maven2 仓库中,需要在 pom.xml 添加以下两个 repository
<repository>
<id>mule-public</id>
<name>MuleSoft Public Repository</name>
<url>https://repository.mulesoft.org/nexus/content/repositories/public/</url>
<layout>default</layout>
</repository>
<pluginRepository>
<id>MuleSoft-public</id>
<name>MuleSoft public repository</name>
<layout>default</layout>
<url>https://repository.mulesoft.org/nexus/content/repositories/public/</url>
</pluginRepository>
三、 项目打包
Mule 项目默认是打 mule 包(zip),需要如下操作:
1. 把 pom 文件改为 war 模式
2. 删除 dependencies 下所有依赖的 scope(test 除外,去掉 provided 的)
<!-- <scope>provided</scope> -->