代码之家  ›  专栏  ›  技术社区  ›  chebad

Cordova-mfpdev构建适配器时出现11353错误

  •  0
  • chebad  · 技术社区  · 7 年前

    我正在使用 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 是错误代码还是其他什么?我如何解决这个问题?

    1 回复  |  直到 7 年前
        1
  •  1
  •   chebad    7 年前

    此问题的解决方案是从以下位置删除所有子文件夹: C:\Users\yourUserName\.m2\repository

    然后我没有使用: mfpdev adapter build

    mvn compile .

    Maven只需下载所有必要的文件,然后我就用MF命令构建了它。