无法构建“大数据插件”项目

时间:2013-09-08 01:46:33

标签: plugins ant ivy pentaho kettle

“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

有人可以帮助我吗?

1 个答案:

答案 0 :(得分:2)

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

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

所以,我建议在常春藤中使用dynamic revision,如下所示:

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,)

希望这有帮助。