【问题标题】:Installation failed. One or more certificates rejected. Cannot proceed with installation安装失败。一个或多个证书被拒绝。无法继续安装
【发布时间】:2017-08-17 18:25:57
【问题描述】:

我的系统是 Linux Mint SERENA; 正在尝试构建存储库https://github.com/wso2/product-iots/releases/tag/v1.0.0-alpha

Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T12:57:37+01:00)
Maven home: /home/caleb/apache-maven
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-openjdk-i386/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-53-generic", arch: "i386", family: "unix"

命令发布:mvn clean install

错误日志:

  `Installing carbon.product.id 4.4.11.
Installation failed.
One or more certificates rejected. Cannot proceed with installation.
Application failed, log file location: /media/caleb/DATA/REPOS/java/mvn/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1502873665554.log

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] WSO2 IoT - Parent .................................. SUCCESS [  1.205 s]
[INFO] WSO2 IoT - Broker Parent ........................... SUCCESS [  0.033 s]
[INFO] WSO2 IoT - Broker - P2 Profile Gen ................. SUCCESS [ 20.512 s]
[INFO] WSO2 IoT - Broker - Product Distribution ........... SUCCESS [ 35.205 s]
[INFO] WSO2 IoT - Core Parent ............................. SUCCESS [  0.016 s]
[INFO] WSO2 IoT - Core - Tools ............................ SUCCESS [  0.013 s]
[INFO] WSO2 IoT - Device Type Archetype ................... SUCCESS [  1.954 s]
[INFO] WSO2 IoT - Core - UI Styles ........................ SUCCESS [  0.884 s]
[INFO] WSO2 IoT - Core - Server UI Features ............... SUCCESS [  0.032 s]
[INFO] WSO2 IoT - Core - Server Styles Feature ............ SUCCESS [  0.095 s]
[INFO] WSO2 IoT - Core - P2 Profile Gen ................... FAILURE [ 39.359 s]
[INFO] WSO2 IoT - Core - Distribution ..................... SKIPPED
[INFO] WSO2 IoT - Analytics Parent ........................ SKIPPED
[INFO] WSO2 IoT - Analytics - P2 Profile Gen .............. SKIPPED
[INFO] WSO2 IoT - Analytics - Product Distribution ........ SKIPPED
[INFO] WSO2 IoT - Distribution Parent ..................... SKIPPED
[INFO] >WSO2 IoT - Integration Tests ...................... SKIPPED
[INFO] WSO2 IoT - Integration Test Artifacts .............. SKIPPED
[INFO] WSO2 IoT Server - Integration Test Common .......... SKIPPED
[INFO] WSO2 IoT - Integration Test Common Web UI Pages .... SKIPPED
[INFO] WSO2 IoT - Integration Test UI Module .............. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:40 min
[INFO] Finished at: 2017-08-16T09:54:27+01:00
[INFO] Final Memory: 59M/419M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.wso2.maven:carbon-p2-plugin:1.5.4:materialize-product (p2-profile-generation-http-gateway-profile) on project wso2iot-core-profile-gen: Cannot generate P2 metadata: P2 publisher return code was 13 -> [Help 1]
[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] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :wso2iot-core-profile-gen
`

非常感谢任何帮助以成功构建产品

【问题讨论】:

    标签: java wso2 maven-3 wso2iot


    【解决方案1】:

    您正在尝试的是一个非常旧的标签,请您尝试this。这是WSO2 IoT 3.1.0的最新发布标签

    【讨论】:

    • 安装 carbon.product.id 4.4.14 时同样的错误。安装失败。一个或多个证书被拒绝。无法继续安装。应用程序失败,日志文件位置:/media/caleb/DATA/REPOS/java/mvn/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1502893364759.log
    • 由于证书不受 jvm 信任而引发此错误。尝试下载新的 jdk 并替换安装文件夹中的所有证书。
    • 天哪,我想通了,卸载了默认的jdk,下载了一个新的,仍然有同样的错误
    【解决方案2】:

    此错误是由 Equinox 框架中的 bug 引起的。根据该错误,最新的 Oracle VM 不信任证书。作为解决方案,您可以下载新的 JDK 并替换当前的 JDK,或者替换 $JAVA_HOME/jre/lib/security 中的所有证书。

    【讨论】:

    • Madawa,我可以获得我要替换的证书,或者您的 JDK 版本可以正常工作吗?我会很高兴
    【解决方案3】:

    好吧,我卸载了所有东西,重新安装了 maven,然后下载了一个新的 jdk-netbeans 文件,安装了,一切都运行良好,感谢 Input geeth 和 Madawa

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-09-09
      • 2013-12-07
      • 1970-01-01
      • 1970-01-01
      • 2015-12-20
      • 2012-11-01
      • 1970-01-01
      相关资源
      最近更新 更多