0

“big-data-plugin”是 Kettle 的插件,现在我需要用源代码构建它,所以我从1获取源代码,但是当我使用 ant 构建它时,它失败了。详细信息是:

    ---------------------------------------------------------------------
    |                  |            modules            ||   artifacts   |
    |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
    ---------------------------------------------------------------------
    |      default     |   40  |   10  |   0   |   2   ||   35  |   0   |
    ---------------------------------------------------------------------
[ivy:resolve]
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve]   io problem while parsing ivy file: http://repository.pentaho.org/artifactory/repo/org/apache/oozie/oozie-core/3.1.3-incubating/oozie-core-3.1.3-incubating.pom: Impossible to load parent for file:/C:/Users/***/.ivy2/cache/org.apache.oozie/oozie-core/ivy-3.1.3-incubating.xml.original. Parent=org.apache.oozie#oozie-main;3.1.3-incubating
[ivy:resolve]           module not found: org.apache.oozie#oozie-core;3.1.3-incubating
[ivy:resolve]   ==== local: tried
[ivy:resolve]     C:\Users\***\.ivy2\local\org.apache.oozie\oozie-main\3.1.3-incubating\ivys\ivy.xml
[ivy:resolve]     -- artifact org.apache.oozie#oozie-main;3.1.3-incubating!oozie-main.jar:
[ivy:resolve]     C:\Users\***\.ivy2\local\org.apache.oozie\oozie-main\3.1.3-incubating\jars\oozie-main-3.1.3-incubating.jar
[ivy:resolve]   ==== pentaho-ivy: tried
[ivy:resolve]     http://repo.pentaho.org/artifactory/repo/org.apache.oozie/oozie-main/3.1.3-incubating/oozie-main-3.1.3-incubating.ivy.xml
[ivy:resolve]   ==== pentaho-mvn: tried
[ivy:resolve]     http://repository.pentaho.org/artifactory/repo/org/apache/oozie/oozie-main/3.1.3-incubating/oozie-main-3.1.3-incubating.pom
[ivy:resolve]     -- artifact org.apache.oozie#oozie-main;3.1.3-incubating!oozie-main.jar:
[ivy:resolve]     http://repository.pentaho.org/artifactory/repo/org/apache/oozie/oozie-main/3.1.3-incubating/oozie-main-3.1.3-incubating.jar
[ivy:resolve]   ==== public: tried
[ivy:resolve]     http://repo1.maven.org/maven2/org/apache/oozie/oozie-core/3.1.3-incubating/oozie-core-3.1.3-incubating.pom
[ivy:resolve]     -- artifact org.apache.oozie#oozie-core;3.1.3-incubating!oozie-core.jar:
[ivy:resolve]     http://repo1.maven.org/maven2/org/apache/oozie/oozie-core/3.1.3-incubating/oozie-core-3.1.3-incubating.jar
[ivy:resolve]   ==== java-net-maven2: tried
[ivy:resolve]     http://download.java.net/maven/2/org/apache/oozie/oozie-core/3.1.3-incubating/oozie-core-3.1.3-incubating.pom
[ivy:resolve]     -- artifact org.apache.oozie#oozie-core;3.1.3-incubating!oozie-core.jar:
[ivy:resolve]     http://download.java.net/maven/2/org/apache/oozie/oozie-core/3.1.3-incubating/oozie-core-3.1.3-incubating.jar
[ivy:resolve]   ==== cloudera: tried
[ivy:resolve]     https://repository.cloudera.com/content/groups/cdh-build/org/apache/oozie/oozie-core/3.1.3-incubating/oozie-core-3.1.3-incubating.pom
[ivy:resolve]     -- artifact org.apache.oozie#oozie-core;3.1.3-incubating!oozie-core.jar:
[ivy:resolve]     https://repository.cloudera.com/content/groups/cdh-build/org/apache/oozie/oozie-core/3.1.3-incubating/oozie-core-3.1.3-incubating.jar
[ivy:resolve]   io problem while parsing ivy file: http://repository.pentaho.org/artifactory/repo/org/apache/oozie/oozie-client/3.1.3-incubating/oozie-client-3.1.3-incubating.pom: Impossible to load parent for file:/C:/Users/***/.ivy2/cache/org.apache.oozie/oozie-client/ivy-3.1.3-incubating.xml.original. Parent=org.apache.oozie#oozie-main;3.1.3-incubating
[ivy:resolve]           module not found: org.apache.oozie#oozie-client;3.1.3-incubating
[ivy:resolve]   ==== local: tried
[ivy:resolve]     C:\Users\***\.ivy2\local\org.apache.oozie\oozie-main\3.1.3-incubating\ivys\ivy.xml
[ivy:resolve]     -- artifact org.apache.oozie#oozie-main;3.1.3-incubating!oozie-main.jar:
[ivy:resolve]     C:\Users\***\.ivy2\local\org.apache.oozie\oozie-main\3.1.3-incubating\jars\oozie-main-3.1.3-incubating.jar
[ivy:resolve]   ==== pentaho-ivy: tried
[ivy:resolve]     http://repo.pentaho.org/artifactory/repo/org.apache.oozie/oozie-main/3.1.3-incubating/oozie-main-3.1.3-incubating.ivy.xml
[ivy:resolve]   ==== pentaho-mvn: tried
[ivy:resolve]     http://repository.pentaho.org/artifactory/repo/org/apache/oozie/oozie-main/3.1.3-incubating/oozie-main-3.1.3-incubating.pom
[ivy:resolve]     -- artifact org.apache.oozie#oozie-main;3.1.3-incubating!oozie-main.jar:
[ivy:resolve]     http://repository.pentaho.org/artifactory/repo/org/apache/oozie/oozie-main/3.1.3-incubating/oozie-main-3.1.3-incubating.jar
[ivy:resolve]   ==== public: tried
[ivy:resolve]     http://repo1.maven.org/maven2/org/apache/oozie/oozie-client/3.1.3-incubating/oozie-client-3.1.3-incubating.pom
[ivy:resolve]     -- artifact org.apache.oozie#oozie-client;3.1.3-incubating!oozie-client.jar:
[ivy:resolve]     http://repo1.maven.org/maven2/org/apache/oozie/oozie-client/3.1.3-incubating/oozie-client-3.1.3-incubating.jar
[ivy:resolve]   ==== java-net-maven2: tried
[ivy:resolve]     http://download.java.net/maven/2/org/apache/oozie/oozie-client/3.1.3-incubating/oozie-client-3.1.3-incubating.pom
[ivy:resolve]     -- artifact org.apache.oozie#oozie-client;3.1.3-incubating!oozie-client.jar:
[ivy:resolve]     http://download.java.net/maven/2/org/apache/oozie/oozie-client/3.1.3-incubating/oozie-client-3.1.3-incubating.jar
[ivy:resolve]   ==== cloudera: tried
[ivy:resolve]     https://repository.cloudera.com/content/groups/cdh-build/org/apache/oozie/oozie-client/3.1.3-incubating/oozie-client-3.1.3-incubating.pom
[ivy:resolve]     -- artifact org.apache.oozie#oozie-client;3.1.3-incubating!oozie-client.jar:
[ivy:resolve]     https://repository.cloudera.com/content/groups/cdh-build/org/apache/oozie/oozie-client/3.1.3-incubating/oozie-client-3.1.3-incubating.jar
[ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]           ::          UNRESOLVED DEPENDENCIES         ::
[ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]           :: org.apache.oozie#oozie-core;3.1.3-incubating: not found
[ivy:resolve]           :: org.apache.oozie#oozie-client;3.1.3-incubating: not found
[ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve]
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED

有人可以帮我吗?

4

1 回答 1

2

我搜索了 cloudera 存储库,找不到 oozie-core jar 的“3.1.3-incubating”修订版:

https://repository.cloudera.com/artifactory/webapp/search/artifact?1&q=oozie-cor

因此,我建议在 ivy 中使用动态修订,如下所示:

diff --git a/build.properties b/build.properties
..
..
-dependency.apache-oozie.revision=3.1.3-incubating
+dependency.apache-oozie.revision=[3.1.3,)
..

“[3.1.3,)”表示任何版本 >= 3.1.3。运行构建,常春藤会发现:

[ivy:resolve]   [4.0.0-cdh5.0.0-SNAPSHOT] org.apache.oozie#oozie-core;[3.1.3,)

希望这可以帮助。

于 2013-09-08T06:51:17.627 回答