Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cordova 在mfpdev中部署适配器时出错_Cordova_Maven_Ibm Mobilefirst_Cordova Plugins - Fatal编程技术网

Cordova 在mfpdev中部署适配器时出错

Cordova 在mfpdev中部署适配器时出错,cordova,maven,ibm-mobilefirst,cordova-plugins,Cordova,Maven,Ibm Mobilefirst,Cordova Plugins,我在IBM MobileFirst platform 8.0上工作,部署创建的适配器时遇到一些错误。我是新来的。请帮助我。 这是我得到的错误。我可以成功创建适配器。但是我无法部署它,当我部署它时,我得到了这些错误。我的MFPDEV版本是8.0.0-2016101416 [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective mod

我在IBM MobileFirst platform 8.0上工作,部署创建的适配器时遇到一些错误。我是新来的。请帮助我。 这是我得到的错误。我可以成功创建适配器。但是我无法部署它,当我部署它时,我得到了这些错误。我的MFPDEV版本是8.0.0-2016101416

[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for
com.ll:two:adapter:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for com.ibm.mfp:adapter-maven-plugin is
 missing. @ line 44, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten t
he stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support buildin
g such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building two 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- adapter-maven-plugin:8.0.2017021701:deploy (default-cli) @ two ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.670 s
[INFO] Finished at: 2017-03-16T17:57:39+05:30
[INFO] Final Memory: 10M/155M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.ibm.mfp:adapter-maven-plugin:8.0.2017021701:d
eploy (default-cli) on project two: Error accessing http://localhost:9080/mfpadm
in/management-apis/2.0/runtimes/mfp/adapters: D:\mars2\workspace\newproject.app\
two\target\two.adapter (The system cannot find the path specified). Check proper
ties details in pom.xml -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception

Error deploying adapter
undefined
Error: An error occurred during an attempt to deploy the adapter. See the preced
ing messages for details.

我注意到的第一件事是你的插件版本

适配器maven插件:8.0.2017021701

比您的devkit版本更新很多

8.0.0-2016101416


在过去的4-5个月中,出现了一些重大更改/改进/修复,其中之一要求服务器与开发环境保持同步。请尝试升级您的devkit/服务器,看看是否有帮助。

我对同一问题的解决方案是在
adapter.xml
中仔细检查
(用于适配器)或
securityCheckDefinition
中的
类(用于安全检查)存在,并且它与.java类同名(提供MFP 8.0的精确构建版本)。2) 你的mfpdev版本是什么?3) 只看到了警告。您遇到了什么错误?您的适配器部署正常吗?您好,我用cli中的全部内容编辑了这篇文章。请检查并回复
访问错误http://localhost:9080/mfpadm 在/management api/2.0/runtimes/mfp/adapters:D:\mars2\workspace\newproject.app\two\target\two.adapter(系统找不到指定的路径)
是否为
two。适配器是否位于该位置?服务器URL是否正确?您可能需要发布您的
pom.xml