Apache Storm:风暴核心构建失败

时间:2016-08-25 11:42:38

标签: maven build apache-storm

当尝试构建从Git存储库下载的Apache Storm时,我得到storm-core(或者storm-hive?)构建错误:

[INFO] Reactor Summary:
[INFO] 
[INFO] Storm .............................................. SUCCESS [  1.366 s]
[INFO] multilang-javascript ............................... SUCCESS [  0.801 s]
[INFO] multilang-python ................................... SUCCESS [  0.138 s]
[INFO] multilang-ruby ..................................... SUCCESS [  0.111 s]
[INFO] maven-shade-clojure-transformer .................... SUCCESS [  1.482 s]
[INFO] storm-maven-plugins ................................ SUCCESS [  1.949 s]
[INFO] Storm Core ......................................... SUCCESS [02:08 min]
[INFO] storm-rename-hack .................................. SUCCESS [  1.966 s]
[INFO] storm-kafka ........................................ SUCCESS [  3.924 s]
[INFO] storm-hdfs ......................................... SUCCESS [01:23 min]
[INFO] storm-hbase ........................................ SUCCESS [ 13.381 s]
[INFO] storm-hive ......................................... FAILURE [ 43.185 s]
[INFO] storm-jdbc ......................................... SKIPPED
[INFO] storm-redis ........................................ SKIPPED
[INFO] storm-eventhubs .................................... SKIPPED
[INFO] flux ............................................... SKIPPED
....
....
....
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
...
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.2.1:process (default) on project storm-hive: 
Error resolving project artifact: Failure to transfer org.pentaho:pentaho-aggdesigner-algorithm:pom:5.1.3-jhyde from https://clojars.org/repo/ was cached in the local repository, resolution will not be reattempted until the update interval of clojars has elapsed or updates are forced. 
Original error: Could not transfer artifact org.pentaho:pentaho-aggdesigner-algorithm:pom:5.1.3-jhyde from/to clojars (https://clojars.org/repo/): sun.security.validator.ValidatorException: 
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target for project org.pentaho:pentaho-aggdesigner-algorithm:jar:5.1.3-jhyde -> [Help 1]
[ERROR]
....
.... 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :storm-hive

使用-e选项(mvn -e clean install -DskipTests)运行相同的版本时,我会获得以下附加信息:

[INFO] Reactor Summary:
[INFO] 
[INFO] Storm .............................................. SUCCESS [  4.136 s]
[INFO] multilang-javascript ............................... SUCCESS [  1.441 s]
[INFO] multilang-python ................................... SUCCESS [  0.151 s]
[INFO] multilang-ruby ..................................... SUCCESS [  0.150 s]
[INFO] maven-shade-clojure-transformer .................... SUCCESS [  1.915 s]
[INFO] storm-maven-plugins ................................ SUCCESS [  2.727 s]
[INFO] Storm Core ......................................... FAILURE [  9.685 s]
[INFO] storm-rename-hack .................................. SKIPPED
[INFO] storm-kafka ........................................ SKIPPED
[INFO] storm-hdfs ......................................... SKIPPED
[INFO] storm-hbase ........................................ SKIPPED
[INFO] storm-hive ......................................... SKIPPED
[INFO] storm-jdbc ......................................... SKIPPED
....
....
....
....
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
....
[ERROR] Failed to execute goal org.jacoco:jacoco-maven-plugin:0.7.2.201409121644:prepare-agent (prepare-agent) on project storm-core: 
Execution prepare-agent of goal org.jacoco:jacoco-maven-plugin:0.7.2.201409121644:prepare-agent failed: Plugin org.jacoco:jacoco-maven-plugin:0.7.2.201409121644 or one of its dependencies could not be resolved:
Failed to collect dependencies at org.jacoco:jacoco-maven-plugin:jar:0.7.2.201409121644 -> org.apache.maven:maven-project:jar:2.2.1 -> org.apache.maven:maven-settings:jar:2.2.1 -> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1 -> junit:junit:jar:4.8.2: 
Failed to read artifact descriptor for junit:junit:jar:4.8.2: 
Could not transfer artifact junit:junit:pom:4.8.2 from/to central (https://repo.maven.apache.org/maven2):
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: 
unable to find valid certification path to requested target -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: 
Failed to execute goal org.jacoco:jacoco-maven-plugin:0.7.2.201409121644:prepare-agent (prepare-agent) on project storm-core:
Execution prepare-agent of goal org.jacoco:jacoco-maven-plugin:0.7.2.201409121644:prepare-agent failed: 
Plugin org.jacoco:jacoco-maven-plugin:0.7.2.201409121644 or one of its dependencies could not be resolved: 
Failed to collect dependencies at org.jacoco:jacoco-maven-plugin:jar:0.7.2.201409121644 -> org.apache.maven:maven-project:jar:2.2.1 ->
....
....
....
....
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
... 90 more

任何想法如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

Maven正试图从https repo&#34; https://clojars.org/repo/&#34;下载罐子。但是java没有客户端证书。按照以下步骤导入客户端证书

第1步:下载客户端证书

  1. 在浏览器中打开https://clojars.org/repo/网址(即firefox)
  2. 点击网址栏右侧的锁定图标
  3. 显示服务器URL,单击以获取右箭头,然后点击&#34;更多信息&#34;
  4. 打开弹出窗口以查看服务器的证书。
  5. 点击&#34;查看证书&#34;,在&#34;详细信息&#34;表导出到文件CERT_FILE_NAME.crt
  6. 步骤2:将客户端证书导入maven正在使用的JDK

    keytool -import -noprompt -trustcacerts -alias&#34; clojars.org&#34; -file C:\ CERT_FILE_NAME.crt -keystore C:\ java \ jre \ lib \ security \ cacerts -storepass&#34; changeit&#34;