骡子 3 进口 |所选文件夹不包含有效的 Studio 项目(缺少 mule-project.xml 文件)

Mule 3 Import | The selected folder does not contain a valid Studio project (missing mule-project.xml file)

如错误所示,当我尝试导入 Mule 项目时,我收到错误提示“Missing mule-project.xml”,但我收到的源不包含它。请问有什么解决方法吗?

是否可以在开发环境中创建一个新项目,将 mule-project.xml 文件从该项目复制到您的旧项目,然后,如果需要,手动修改mule-project.xml 在旧项目中?

Mule 4 中的分身是 Missing pom.xml

在 Mule 4 中也可以遵循 Ivan 建议的相同解决方案。

只是为这个问题增加更多的价值,以帮助新手。

Never import an previously exported jar unless it's a mule deployable archive. The pom.xml file needs to be present on the top level of the directory.

如果您的 pom.xml 不在根目录的最上层,则可能发生了文件夹操作。

确保您确实使用了正确的代码。

Always check your project structure. 

Jar 存档往往会根据正确执行的需要来操纵您的文件夹结构;只是让它们对部署有用,但对代码返工没用。