【发布时间】:2015-06-23 22:03:13
【问题描述】:
我正在使用基于 MFP 7.0 Java 的适配器,当我尝试通过 CLI 和 Eclipse 构建时,我收到以下错误:
Error:
BUILD FAILED
/Applications/IBM/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib/build.xml:133: The following error occurred while executing this line:
/Applications/IBM/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib/build.xml:159: /wlp/dev does not exist.
我可以很好地构建基于 JavaScript 的适配器,这只是在尝试构建 Java 适配器时。
编辑:
这是我在 Eclipse 中使用 MFP Studio 插件时遇到的构建错误:
The installation directory is not valid. Check that the path points to a Liberty profile runtime environment (e.g. <path>/wlp).
Here's a gist 用于我们的 JavaSampleAdapterResource.java 实现。
【问题讨论】:
-
您能否提供更多有关您正在做的事情的背景信息,或者提供一个示例项目以及触发此错误的示例 Java 适配器?
-
另外,我假设 Studio 的错误实际上看起来不同,因为它没有使用 CLI...
标签: java ibm-mobilefirst mobilefirst-adapters mobilefirst-server mobilefirst-cli