wso2am 21.0u14从源构建-拒绝一个或多个证书

时间:2018-11-24 14:05:56

标签: wso2 wso2-am p2

尝试从source重建wso2am-2.1.0-update14以解决问题

(由于进行了一些自定义,升级到较新的版本可能会很麻烦)

建立一个例外

[INFO] WSO2 API Manager - P2 Profile Generation ........... FAILURE [ 34.790 s]
[ERROR] Failed to execute goal org.wso2.maven:carbon-p2-plugin:1.5.4:materialize-product (creating-gateway-manager-profile) on project am-p2-profile: Cannot generate P2 metadata: P2 publisher return code was 13 -> [Help 1]

Failed build step is [INFO] --- carbon-p2-plugin:1.5.4:materialize-product (creating-gateway-manager-profile) @ am-p2-profile ---

[INFO] Command line:
        /bin/sh -c cd /home/ec2-user/dev2/product-apim-2.1.0-update14/modules/p2-profile/product && /usr/lib/jvm/java-1.8.0-amazon-corretto.x86_64/jre/bin/java -jar /home/ec2-user/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar -nosplash -application org.eclipse.equinox.p2.director -metadataRepository file:/home/ec2-user/dev2/product-apim-2.1.0-update14/modules/p2-profile/product/target/p2-repo -artifactRepository file:/home/ec2-user/dev2/product-apim-2.1.0-update14/modules/p2-profile/product/target/p2-repo -installIU carbon.product.id -profileProperties org.eclipse.update.install.features=true -profile gateway-manager -bundlepool file:/home/ec2-user/dev2/product-apim-2.1.0-update14/modules/p2-profile/product/target/wso2carbon-core-4.4.24/repository/components -shared file:/home/ec2-user/dev2/product-apim-2.1.0-update14/modules/p2-profile/product/target/wso2carbon-core-4.4.24/repository/components/p2 -destination file:/home/ec2-user/dev2/product-apim-2.1.0-update14/modules/p2-profile/product/target/wso2carbon-core-4.4.24/repository/components/gateway-manager -p2.os linux -p2.ws gtk -p2.arch x86 -roaming
Installing carbon.product.id 4.4.24.
Installation failed.
One or more certificates rejected. Cannot proceed with installation.

P2日志文件:

cat /home/ec2-user/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1543067992663.log
!SESSION 2018-11-24 13:59:52.546 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_192
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  -application org.eclipse.equinox.p2.director -metadataRepository file:/home/ec2-user/dev2/product-apim-2.1.0-update14/modules/p2-profile/product/target/p2-repo -artifactRepository file:/home/ec2-user/dev2/product-apim-2.1.0-update14/modules/p2-profile/product/target/p2-repo -installIU carbon.product.id -profileProperties org.eclipse.update.install.features=true -profile gateway-manager -bundlepool file:/home/ec2-user/dev2/product-apim-2.1.0-update14/modules/p2-profile/product/target/wso2carbon-core-4.4.24/repository/components -shared file:/home/ec2-user/dev2/product-apim-2.1.0-update14/modules/p2-profile/product/target/wso2carbon-core-4.4.24/repository/components/p2 -destination file:/home/ec2-user/dev2/product-apim-2.1.0-update14/modules/p2-profile/product/target/wso2carbon-core-4.4.24/repository/components/gateway-manager -p2.os linux -p2.ws gtk -p2.arch x86 -roaming
Command-line arguments:  -application org.eclipse.equinox.p2.director -metadataRepository file:/home/ec2-user/dev2/product-apim-2.1.0-update14/modules/p2-profile/product/target/p2-repo -artifactRepository file:/home/ec2-user/dev2/product-apim-2.1.0-update14/modules/p2-profile/product/target/p2-repo -installIU carbon.product.id -profileProperties org.eclipse.update.install.features=true -profile gateway-manager -bundlepool file:/home/ec2-user/dev2/product-apim-2.1.0-update14/modules/p2-profile/product/target/wso2carbon-core-4.4.24/repository/components -shared file:/home/ec2-user/dev2/product-apim-2.1.0-update14/modules/p2-profile/product/target/wso2carbon-core-4.4.24/repository/components/p2 -destination file:/home/ec2-user/dev2/product-apim-2.1.0-update14/modules/p2-profile/product/target/wso2carbon-core-4.4.24/repository/components/gateway-manager -p2.os linux -p2.ws gtk -p2.arch x86 -roaming

!ENTRY org.eclipse.equinox.p2.engine 8 0 2018-11-24 13:59:55.314
!MESSAGE One or more certificates rejected. Cannot proceed with installation.

检查目的地/home/ec2-user/dev2/product-apim-2.1.0-update14/modules/p2-profile/product/target/wso2carbon-core-4.4.24/repository/components/gateway-manager不存在

建立发行版之前我需要进行任何设置吗?

编辑:

阅读另一篇Installation failed. One or more certificates rejected. Cannot proceed with installation似乎真的不信任证书。

我正在使用OpenJDK 1.8.0_192 Corretto构建发行版。我需要在任何地方导入任何证书吗? (导入wso2carbon证书也无济于事)

1 个答案:

答案 0 :(得分:0)

似乎使用Oracle JDK解决了该问题。尽管我不太清楚这个问题的原因(哪些组件不信任哪些证书)