Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
nemoo opened this Issue · 9 comments

2 participants

@nemoo

Hi!

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(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to read Git commit information
at com.github.koraktor.mavanagaiata.GitCommitMojo.execute(GitCommitMojo.java:79)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: org.eclipse.jgit.errors.MissingObjectException: Missing unknown f164090b251da87c67077a2476fd051...
at org.eclipse.jgit.storage.file.WindowCursor.open(WindowCursor.java:125)
at org.eclipse.jgit.lib.ObjectReader.open(ObjectReader.java:228)
at org.eclipse.jgit.revwalk.RevWalk.parseAny(RevWalk.java:812)
at org.eclipse.jgit.revwalk.RevWalk.parseCommit(RevWalk.java:725)
at com.github.koraktor.mavanagaiata.AbstractGitMojo.getHead(AbstractGitMojo.java:137)
at com.github.koraktor.mavanagaiata.GitCommitMojo.execute(GitCommitMojo.java:57)
... 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?

thanks!

@nemoo

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

@koraktor
Owner

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

@nemoo

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:
dependency-
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
/dependency-

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?

@koraktor
Owner

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

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

@nemoo

ok :)

@nemoo

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!

@koraktor
Owner

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

@koraktor koraktor closed this
@nemoo
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.