Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » ERROR occured when Building JGit using Maven
ERROR occured when Building JGit using Maven [message #660732] Mon, 21 March 2011 12:33
YiFei  is currently offline YiFei Friend
Messages: 6
Registered: March 2011
Junior Member
I download JGit zipped src, then followed the guide: http://wiki.eclipse.org/EGit/Contributor_Guide#JGit

the command below:
[~/src/jgit] $ mvn clean install

and here are the results:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project org.eclipse.jgit: Compilation failure: Compilation failure:
[ERROR] C:\Documents and Settings\XXX\git\jgit\org.eclipse.jgit\src\org\eclipse\jgit\ storage\pack\DeltaCache.java:[122,44] inconvertible types
[ERROR] found : java.lang.ref.Reference<capture of ? extends byte[]>
[ERROR] required: org.eclipse.jgit.storage.pack.DeltaCache.Ref
[ERROR]
[ERROR] C:\Documents and Settings\XXX\git\jgit\org.eclipse.jgit\src\org\eclipse\jgit\ storage\file\WindowCache.java:[523,44] inconvertible types
[ERROR] found : java.lang.ref.Reference<capture of ? extends org.eclipse.jgit.storage.file.ByteWindow>
[ERROR] required: org.eclipse.jgit.storage.file.WindowCache.Ref
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project org.eclipse.jgit: Compilation failure
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj oExecutor.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj oExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj oExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.b uildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.b uildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleT hreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:31 9)
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(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnha nced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Lau ncher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithEx itCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launc her.java:352)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
at org.apache.maven.plugin.AbstractCompilerMojo.execute(Abstrac tCompilerMojo.java:516)
at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.ja va:114)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMoj o(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj oExecutor.java:209)
... 19 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailure Exception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :org.eclipse.jgit


I could not find any useful infomation from google, so I come here.
Thanks.
Previous Topic:Published exercises for "Effective Git" tutorial at EclipseCon
Next Topic:JGit git-status equivalent
Goto Forum:
  


Current Time: Tue Apr 07 08:24:02 GMT 2020

Powered by FUDForum. Page generated in 0.01827 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top