GravityLabs / HPaste

HBase DSL for Scala with MapReduce support
http://www.gravity.com/technology/
Apache License 2.0
127 stars 32 forks source link

Unresolved dependency #16

Open alexanderdean opened 10 years ago

alexanderdean commented 10 years ago

On a fresh SBT project including HPaste:

[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.apache.hadoop#hadoop-core;0.20-append-r1056497: not found
[warn]  :: org.apache.thrift#thrift;0.2.0: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::

Details as follows:

// HPaste version
val hpaste        = "com.gravity"                %  "gravity-hpaste"      % "0.1.11"
// SBT version
sbt.version=0.12.3
// Scala version
scalaVersion  := "2.10.0",
alexanderdean commented 10 years ago

See also: #15

alexanderdean commented 10 years ago

Here is my hacky workaround for now:

.settings(
  libraryDependencies ++= Seq(
    Libraries.hadoopCore,
    ...
  ),
  libraryDependencies ++= Seq(
    Libraries.hpaste.exclude("org.apache.thrift", "thrift").exclude("org.apache.hadoop", "hadoop-core")) // Bad includes from HBase
)

Obviously only works if you have another hadoop-core being added as a dependency in the first block.

alexanderdean commented 10 years ago

Edit: I updated to:

val hpaste        = "0.1.24"

and the unresolved deps went down to:

::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.apache.thrift#thrift;0.2.0: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::

Requiring:

libraryDependencies ++= Seq(
    Libraries.hpaste.exclude("org.apache.thrift", "thrift"))
mfirry commented 10 years ago

news on this?