You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.9.3") in plugins.sbt
enablePlugins(GitBranchPrompt) in build.sbt
enablePlugins(GitVersioning) in build.sbt
useJGit in git.sbt
Using the git command in the sbt shell
I get git status Error: Could not find or load main class org.eclipse.jgit.pgm.Main [error] Nonzero exit code (1) running JGit.
Looks related to the class loading.
The text was updated successfully, but these errors were encountered:
I'm seeing this error in 2019 not just in Windows, but also on Travis running Linux. JGitRunner is apparently not getting the classpath that it needs on line 77. It wouldn't work right for Windows for sure, but Travis should be OK. Perhaps sbt is not arranging the classpath as before. This seems not to work:
getClass.getClassLoader match {
case cl: java.net.URLClassLoader =>
val cp = cl.getURLs map (_.getFile) mkString ":"
From the documentation I did these things
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.9.3") in plugins.sbt
enablePlugins(GitBranchPrompt) in build.sbt
enablePlugins(GitVersioning) in build.sbt
useJGit in git.sbt
Using the git command in the sbt shell
I get git status Error: Could not find or load main class org.eclipse.jgit.pgm.Main [error] Nonzero exit code (1) running JGit.
Looks related to the class loading.
The text was updated successfully, but these errors were encountered: