Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nemoo opened this issue Jul 4, 2012 · 9 comments
Closed

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

nemoo opened this issue Jul 4, 2012 · 9 comments
Labels

Comments

@nemoo
Copy link

nemoo commented Jul 4, 2012

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
Copy link
Author

nemoo commented Jul 4, 2012

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

@koraktor
Copy link
Owner

koraktor commented Jul 4, 2012

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

@nemoo
Copy link
Author

nemoo commented Jul 5, 2012

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
Copy link
Owner

koraktor commented Jul 5, 2012

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

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

@nemoo
Copy link
Author

nemoo commented Jul 5, 2012

ok :)

@nemoo
Copy link
Author

nemoo commented Jul 5, 2012

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
Copy link
Owner

koraktor commented Jul 5, 2012

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

@koraktor koraktor closed this as completed Jul 5, 2012
@nemoo
Copy link
Author

nemoo commented Nov 30, 2012

Hallo Sebastian,

Gibt es eine Abschätzung wann ca. die neue Version 0.4.1 auf Maven Central verfügbar sein wird?

Die Versionen dort hören bei 0.3.4 auf. 
http://mvnrepository.com/artifact/com.github.koraktor/mavanagaiata

Danke!

@koraktor
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants