Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Issues while building Ambari

avatar
Rising Star

I am trying to build the ambari source. While doing so i am facing issues with a dependency

[ERROR] Failed to execute goal on project ambari-metrics-storm-sink-legacy: Could not resolve dependencies for project org.apache.ambari:ambari-metrics-storm-sink-legacy:jar:2.4.1.0.0: The following artifacts could not be resolved: clj-time:clj-time:jar:0.8.0, compojure:compojure:jar:1.1.3, hiccup:hiccup:jar:0.3.6, ring:ring-devel:jar:1.3.0, ring:ring-jetty-adapter:jar:1.3.0, ring:ring-json:jar:0.3.1, com.twitter:carbonite:jar:1.4.0: Failure to find clj-time:clj-time:jar:0.8.0 in http://repo.hortonworks.com/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of apache-hadoop has elapsed or updates are forced -> [Help 1]

I tried looking into http://repo.hortonworks.com/content/groups/public/ but couldnot find 'clj-time'. Is there something i am missing?

1 ACCEPTED SOLUTION

avatar
Rising Star

I did a grep and couldn't find any reference. But it can be a cyclic dependency where on of our dependency dependency on this. So for the time being i added

<repository> <id>clojars.org</id> <url>http://clojars.org/repo</url> </repository>

in ambari-metrics/pom.xml and it worked

View solution in original post

4 REPLIES 4

avatar

@Aman Poonia

I do not see any reference to "clj-time" in the apache ambari repo. https://github.com/apache/ambari

Please do a search in your ambari code base to see which file has this entry?

git clone git://git.apache.org/ambari.git

cd ambari

find . -name "*.*" | xargs grep -il "clj-time"

No result.

avatar

I will also suggest you to try the following:

Try setting the correct version first like: Choose version "2.4.1.0.1" instead of "2.4.1.0.0"

Example:

cd  ambari/ambari-metrics 
mvn clean versions:set -DnewVersion=2.4.1.0.1
mvn clean install  -DskipTests -Drat.ignoreErrors=true  -Drat.skip=true

Then build it again.

avatar
Rising Star

As per the documentation, it suggests setting 2.4.1.0.0, so I did that. I am not sure if 2.4.1.0.1 is the right one. Is there any reference around this which I go through which i might have missed!

avatar
Rising Star

I did a grep and couldn't find any reference. But it can be a cyclic dependency where on of our dependency dependency on this. So for the time being i added

<repository> <id>clojars.org</id> <url>http://clojars.org/repo</url> </repository>

in ambari-metrics/pom.xml and it worked