Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Unable to read Git commit information: Missing unknown ... #13

nemoo opened this Issue · 9 comments

2 participants



When trying to run mavanagaiata i get this error:

[ERROR] Failed to execute goal com.github.koraktor:mavanagaiata:0.3.2:commit (load-git-branch) on project abc: Unable to read Git commit information: Missing unknown f164090b251da87c67077a2476fd0519... -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.koraktor:mavanagaiata:0.3.2:commit (load-git-branch) on project sep: Unable to read Git commit information
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(
at org.apache.maven.DefaultMaven.doExecute(
at org.apache.maven.DefaultMaven.execute(
at org.apache.maven.cli.MavenCli.execute(
at org.apache.maven.cli.MavenCli.doMain(
at org.apache.maven.cli.MavenCli.main(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(
at org.codehaus.plexus.classworlds.launcher.Launcher.main(
Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to read Git commit information
at com.github.koraktor.mavanagaiata.GitCommitMojo.execute(
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
... 19 more
Caused by: org.eclipse.jgit.errors.MissingObjectException: Missing unknown f164090b251da87c67077a2476fd051...
at org.eclipse.jgit.revwalk.RevWalk.parseAny(
at org.eclipse.jgit.revwalk.RevWalk.parseCommit(
at com.github.koraktor.mavanagaiata.AbstractGitMojo.getHead(
at com.github.koraktor.mavanagaiata.GitCommitMojo.execute(
... 21 more

in the pom, i call it somehow like this (cannot display the xml here, is not rendered correctly on github):
mavanagaiata version 0.3.2
execution - id: load-git-branch
goal: commit

Any ideas what this might be about?



oh, and btw thanks for updating to jgit 2.0. before that it was impossible to get a hold of jgit.


This seems to be the same bug of 0.3.2 mentioned in issue #8. Can you test the current code in master?


i tried to test it but .. im doing it wrong.

i downloaded your code via zip file from github.

i changed the version in your pom to 0.3.3-SNAPSHOT

then made mvn install and copied the resulting jar to my project folder.

then i tried to reference the local dependency like that:
groupId-com.github.koraktor /groupId
artifactId-mavanagaiata /artifactId
version-0.3.3-SNAPSHOT /version
scope-system /scope
systemPath- /myprojectdir/mavanagaiata-0.3.3-SNAPSHOT.jar /systemPath

then i got this error:

[WARNING] The POM for com.github.koraktor:mavanagaiata:jar:0.3.3-SNAPSHOT is missing, no dependency information available

how should i proceed?


Why do you copy it (and change the dependecy scope to system)?

Remove the scope and mvn install it into your local repository.


ok :)


ok, did as you said and managed to get it to run in my program.

so basically you can release a new version based on the current master, that seems to fix it. so thanks for that!


This is fixed in 0.3.3. It should be available from Central soon.

@koraktor koraktor closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.