odinson
odinson copied to clipboard
Suggested clarification to documentation to fix "Error downloading org.clulab:glove-840b-300d-10f" issue
Hi,
Cool project! I am interested in Odinson but don't have much experience with sbt. I had some trouble with the build instructions on the docs page that I was eventually able to fix. I am posting this here in case others run into the same issue. I think updating the docs to describe this issue would save others time and headaches in the future.
Backstory
I tried to build by following the sbt build instructions here but got an error "Error downloading org.clulab:glove-840b-300d-10f".
I did some research, including looking at the processors library and eventually realized I needed to add a resolver to the build file. I thought that was all I needed but I kept hitting more errors. From this stackoverflow post I realized I needed to add withAllowInsecureProtocol(true)
when adding the resolver.
Improvements requested:
If you could show how to add an http resolver by adding the following line to the demo build.sbt I think it would be very helpful for those unfamiliar with sbt.
resolvers += ("Artifactory" at "http://artifactory.cs.arizona.edu:8081/artifactory/sbt-release").withAllowInsecureProtocol(true)
libraryDependencies ++= {
val odinsonVer = "0.5.0"
Seq(
"ai.lum" %% "odinson-core" % odinsonVer,
"ai.lum" %% "odinson-extra" % odinsonVer
)
}
Thanks, @AbeHandler .
Just to confirm: things are working for you after you added that resolver?
(That one relates to a dependency of odinson-extra).
@myedibleenso yes things are working in the sense that $sbt compile
runs successfully and without error with the change I outlined above. Note you have to add the withAllowInsecureProtocol
call (as shown above) or things do not work.
Hi, @AbeHandler , after adding resolvers += ("Artifactory" at "http://artifactory.cs.arizona.edu:8081/artifactory/sbt-release").withAllowInsecureProtocol(true)
I got some error messges. Things do not work for me.
K:\software\odinson-0.5.0>sbt compile
[info] Loading settings for project odinson-0-5-0-build from plugins.sbt ...
[info] Loading project definition from K:\software\odinson-0.5.0\project
K:\software\odinson-0.5.0\build.sbt:178: error: value withAllowInsecureProtocol is not a member of sbt.librarymanagement.MavenRepository
resolvers += ("Artifactory" at "http://artifactory.cs.arizona.edu:8081/artifactory/sbt-release").withAllowInsecureProtocol(true)
^
[error] Type error in expression
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? r
[info] Loading settings for project odinson-0-5-0-build from plugins.sbt ...
[info] Loading project definition from K:\software\odinson-0.5.0\project
K:\software\odinson-0.5.0\build.sbt:178: error: value withAllowInsecureProtocol is not a member of sbt.librarymanagement.MavenRepository
resolvers += ("Artifactory" at "http://artifactory.cs.arizona.edu:8081/artifactory/sbt-release").withAllowInsecureProtocol(true)
^
[error] Type error in expression
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?
Whether or not .withAllowInsecureProtocol(true) is needed or allowed is dependent on sbt version. It looks like it isn't being allowed, so please try without.