构建时传输 maven-metadata.xml 失败的警告和解析依赖项的错误

Warning for transfering maven-metadata.xml failed and errors for resolving denpencies when building

从 GitHub 上的 Saiku 存储库下载代码。切换到分支 2.6.x.

使用命令“./saiku build all”进行构建。

但是,那里有很多警告和错误:

<pre>
 [WARNING] Could not transfer metadata org.olap4j:olap4j-xmla:1.2.0-SNAPSHOT/maven-metadata.xml from/to pentaho-third-party (http://repo.pentaho.org/artifactory/third-party/): Failed to transfer file: http://repo.pentaho.org/artifactory/third-party/org/olap4j/olap4j-xmla/1.2.0-SNAPSHOT/maven-metadata.xml. Return code is : 503 , ReasonPhrase: Service Temporarily Unavailable.
[WARNING] .. from/to alabs-repo (http://repo.analytical-labs.com/repo/): Connection to http://repo.analytical-labs.com refused
...
Downloading: http://repo.pentaho.org/artifactory/third-party/org/olap4j/olap4j-xmla/1.2.0-SNAPSHOT/olap4j-xmla-1.2.0-SNAPSHOT.pom
...
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5:44.581s
[INFO] Finished at: Fri Sep 18 23:57:43 CST 2015
[INFO] Final Memory: 7M/18M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project saiku-bi-platform-plugin-p5: Could not resolve dependencies for project org.saiku:saiku-bi-platform-plugin-p5:jar:2.6.1-SNAPSHOT: Failed to collect dependencies for [org.saiku:saiku-service:jar:2.6.1-SNAPSHOT (compile), org.saiku:saiku-web:jar:2.6.1-SNAPSHOT (compile), org.saiku:saiku-olap-util:jar:2.6.1-SNAPSHOT (compile), pentaho:cpf-core:jar:REFACTOR-SNAPSHOT (compile), pentaho:cpf-pentaho5:jar:REFACTOR-SNAPSHOT (compile), pentaho:mondrian:jar:3.6.5 (compile), eigenbase:eigenbase-properties:jar:1.1.0.10924 (compile), eigenbase:eigenbase-resgen:jar:1.3.0.11873 (compile), eigenbase:eigenbase-xom:jar:1.3.0.11999 (compile), org.olap4j:olap4j-xmla:jar:1.2.0-SNAPSHOT (compile), org.slf4j:slf4j-log4j12:jar:1.6.1 (compile), org.slf4j:slf4j-api:jar:1.6.1 (compile), log4j:log4j:jar:1.2.14 (compile), pentaho:pentaho-platform-api:jar:5.0.0 (provided), pentaho:pentaho-platform-core:jar:5.0.0 (provided), pentaho:pentaho-platform-extensions:jar:5.0.0 (provided), com.sun.jersey:jersey-core:jar:1.11 (compile), com.sun.jersey:jersey-server:jar:1.11 (compile), com.sun.jersey.contribs:jersey-multipart:jar:1.11 (compile), org.jvnet:mimepull:jar:1.6 (compile), com.sun.jersey:jersey-servlet:jar:1.11 (compile), com.sun.jersey.contribs:jersey-spring:jar:1.11 (compile), com.sun.jersey:jersey-client:jar:1.11 (compile), javax.servlet:servlet-api:jar:2.4 (compile), org.springframework.security:spring-security-core:jar:2.0.5.RELEASE (compile), com.itextpdf:itextpdf:jar:5.5.0 (compile), com.itextpdf.tool:xmlworker:jar:5.5.0 (compile), rhino:js:jar:1.7R2 (compile)]: Failed to read artifact descriptor for org.saiku:saiku-service:jar:2.6.1-SNAPSHOT: Could not transfer artifact org.saiku:saiku-service:pom:2.6.1-SNAPSHOT from/to pentaho-third-party (http://repo.pentaho.org/artifactory/third-party/): Failed to transfer file: http://repo.pentaho.org/artifactory/third-party/org/saiku/saiku-service/2.6.1-SNAPSHOT/saiku-service-2.6.1-SNAPSHOT.pom. Return code is: 503 , ReasonPhrase:Service Temporarily Unavailable. -> [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/DependencyResolutionException  
</pre>

问题:

  1. “maven-metadata.xml”和“olap4j-xmla-1.2.0-SNAPSHOT.pom”文件有什么区别?

  2. 为什么下载“maven-metadata.xml”时响应是503码?

  3. 为什么会出错?

  4. 是否有任何其他 Maven 存储库来解决这些依赖关系?

回复 2. & 3.:

(http://repo.pentaho.org/artifactory/third-party/): Failed to transfer file: ...
  Return code is: 503 , ReasonPhrase:Service Temporarily Unavailable.

(http://repo.analytical-labs.com/repo/): 
  Connection to http://repo.analytical-labs.com refused

回复 4.:

https://mvnrepository.com/artifact/org.olap4j

谢谢。维特里

我发现也可以通过http://repo.pentaho.org/artifactory/repo/ or  http://nexus.pentaho.org/content/groups/omni/解决。

我用了http://repo.pentaho.org/artifactory/repo/。但是,我还需要将 org.olap4j:olap4j-xmla:1.2.0-SNAPSHOT 更改为 org.olap4j:olap4j-xmla:1.2.0。