我使用基于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的适配器,这只是在尝试构建适配器的时候。
编辑:
下面是在Eclipse中使用MFP Studio插件时遇到的构建错误:
The installation directory is not valid. Check that the path points to a Liberty profile runtime environment (e.g. <path>/wlp).这里有个要点用于我们的JavaSampleAdapterResource.java实现。
发布于 2015-06-30 20:39:50
我能够通过重新安装CLI和eclipse插件来“修复”这个问题。
发布于 2015-09-10 10:58:59
对于MobileFirstVersion7.1,我也得到了同样的错误。在深层调试之后,我发现了它的根本原因。
我的错误是,在成功安装了MobileFirst 7.1之后,我将eclipse移到了新文件夹。
因此,每当我试图启动服务器或部署适配器时,都会出现此错误--安装目录无效。检查路径是否指向自由配置文件运行时环境(例如/wlp).
我通过以下步骤解决了这个问题:
https://stackoverflow.com/questions/31014315
复制相似问题