JGit from sbt shell doesn't work:Could not find or load main class org.eclipse.jgit.pgm.Main
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 355
- Forks
- 104
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 4
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure using plugins.sbt, build.sbt, and git.sbt with the documented sbt-git setup, then run git status in the sbt shell. Start by tracing the useJGit entry point and its class loading; done means the command no longer reports that org.eclipse.jgit.pgm.Main cannot be found.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, scala
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100