Dependency problem looking for ha-api-3.1.8.hk2-jar

1,307 views
Skip to first unread message

MattR

unread,
May 14, 2012, 5:39:48 AM5/14/12
to simple-b...@googlegroups.com
I'm having trouble declaring the following dependency, which can be used fine from within a Maven project:

  libraryDependencies += "com.sun.xml.ws" % "jaxws-tools" % "2.2.6"

I get (with sbt 0.11.2):

[warn] [NOT FOUND ] org.glassfish.ha#ha-api;3.1.8!ha-api.hk2-jar (121ms)
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/org/glassfish/ha/ha-api/3.1.8/ha-api-3.1.8.hk2-jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.glassfish.ha#ha-api;3.1.8!ha-api.hk2-jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[error] {file:/C:/Users/Matt.Russell/delme2/}default-a21902/*:update: sbt.ResolveException: download failed: org.glassfish.ha#ha-api;3.1.8!ha-api.hk2-jar
[error] Total time: 3 s, completed 14-May-2012 10:32:52

I'm not sure why it's looking for a ".hk2-jar" download -- the Maven build just retrieves "ha-api-3.1.8.jar". I was hoping someone might have some pointers...

Thanks,

-- Matt

Mark Harrah

unread,
May 15, 2012, 10:05:53 PM5/15/12
to simple-b...@googlegroups.com
The <packaging> in that module's pom is listed as hk2-jar, which Ivy takes as its extension if it doesn't recognize it. I don't have a better solution right now than to hard-code these custom packagings that should be handled as plain jars by default. It is a trivial change to add this, but can you open a bug for it?

As a workaround, you can either exclude that dependency or declare it directly with an explicit artifact, probably something like:

libraryDependencies += "org.glassfish.ha" % "ha-api" % "3.1.8" artifacts(
Artifact("ha-api", "jar", "jar")
)

See: http://harrah.github.com/xsbt/latest/api/sbt/Artifact%24.html

-Mark

> Thanks,
>
> -- Matt
>

MattR

unread,
May 16, 2012, 4:24:18 AM5/16/12
to simple-b...@googlegroups.com
On Wednesday, May 16, 2012 3:05:53 AM UTC+1, Mark Harrah wrote:
It is a trivial change to add this, but can you open a bug for it? 

As a workaround, you can either exclude that dependency or declare it directly with an explicit artifact 

Thanks, that works great. I've raised https://github.com/harrah/xsbt/issues/463.

Cheers,

-- Matt


Reply all
Reply to author
Forward
0 new messages