sbt / sbt/sbt-git

JGit from sbt shell doesn't work:Could not find or load main class org.eclipse.jgit.pgm.Main

Open
#147 4 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.