我正在使用mfpdev adapter build
构建我的适配器,并且我得到了类似的内容:
PS C:\Users\XXXXXX\adapters\exampleCode> mfpdev adapter build
Building adapter...
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for XX.XXX.XXX :exampleCode:adapter:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for com.ibm.mfp:adapter-maven-plugin is missing. @ line 103, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building exampleCode 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.007 s
[INFO] Finished at: 2017-09-14T11:15:16+02:00
[INFO] Final Memory: 7M/182M
[INFO] ------------------------------------------------------------------------
[ERROR] 11353
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
Error building adapter
undefined
Error: An error occurred during an attempt to build the adapter. See the preceding messages for details.
11353
是错误代码还是其他什么?我该如何解决这个问题?
答案 0 :(得分:1)
此问题的解决方案是从以下位置删除所有子文件夹:
C:\Users\yourUserName\.m2\repository
然后我没有使用:
mfpdev adapter build
但mvn compile
。
Maven只需下载所有必要的文件,然后我就用MF命令构建它来构建。