在 mule 3.2 中使用 mule magento 连接器
我尝试在 mule 3.2 上使用最新版本的 magento 连接器。但是,我不断收到此错误:
SAXParseException: cos-all-limited.1.2: An all model group must come in a有{min发生} = {max发生} = 1的粒子,并且该粒子必须是构成的一对的一部分复杂类型定义的{内容类型}。
我用谷歌搜索了一下,我认为问题是 mule 开发套件中的一个错误。我得到它是因为 magento 连接器是使用 devkit 构建的。该错误显然已根据此链接修复:
https://github.com/mulesoft/ mule-devkit/issues/10
在哪里可以下载 devkit 的修复版本?如何在 mule 3.2 中安装它?
干杯 狮子座
I have tried to use the lastest version of magento connector on mule 3.2. However I keep getting this error:
SAXParseException: cos-all-limited.1.2: An all model group must appear in a particle with {min occurs} = {max occurs} = 1, and that particle must be part of a pair which constitutes the {content type} of a complex type definition.
I have googled it and I think the problem is a bug in mule's devkit. And I am getting it because the magento connector is built using the devkit. The bug apparently has been fixed according to this link:
https://github.com/mulesoft/mule-devkit/issues/10
Where can I download the fixed version of the devkit? and how do I install it in mule 3.2?
Cheers
Leo
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这个错误确实已经被修复了。如果您使用的 Magento 连接器是使用最新的 DevKit 编译的,那么一切应该没问题。您从哪里获得您正在使用的 Magento 连接器?您是否尝试过从源构建一个新的连接器?
DevKit 可以在 MuleSoft Maven 版本存储库中找到: https:// /repository.mulesoft.org/nexus/content/repositories/releases/org/mule/tools/devkit
这就是说,你不需要在 Mule 中安装 DevKit 它本身。 DevKit 主要在编译时用作模块的代码生成器(如 Magento 的代码生成器)。它可能会带来运行时依赖项,但它们将与模块分发存档一起打包(与模块 Jar 本身一起)。
This bug have been fixed indeed. If the Magento connector you're using has been compiled with a recent DevKit, things should be fine. Where did you get the Magento connector you're using? Have you tried building a fresh one from source?
DevKit can be found in MuleSoft Maven releases repository: https://repository.mulesoft.org/nexus/content/repositories/releases/org/mule/tools/devkit
This said, you do not need to install DevKit it in Mule per se. DevKit is primarily used at compile time as a code generator for modules (like the Magento one). It may bring runtime dependencies but they'll be packaged with the module distribution archive (alongside the module Jar itself).