Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] EGit / JGit - git-blame support

2011/3/16 Stefanos Antaris <santaris@xxxxxxxxxxx>
On Wed, 2011-03-16 at 13:33 +0100, Matthias Sohn wrote:
> 2011/3/16 Stefanos Antaris <santaris@xxxxxxxxxxx>
>         Hi Shawn,
>
>         i am completely excited about how you have designed Git.I have
>         made some
>         changes to fix the bug(implement the feature) but i have a
>         problem on
>         how to build git and test my changes.I have downloaded Git
>         using the
>         Contributor Guide[1] and the already installed EGit plugin for
>         Eclipse
>         Helios but i don't know how to build it as long as there are
>         some
>         dependencies (e.x. jetty) and i have never worked with maven
>         before.Could someone please help me to work with it?
>
>
>         [1]http://wiki.eclipse.org/EGit/Contributor_Guide
>       * For your Eclipse setup you best import the team project set
>         given here [1].
>       * for the JGit HTTP tests you also need to install Jetty [2].
>       * In case you also want to run EGit UI tests  you need to
>         install SWTBot [3].
>       * For the maven build install the latest Maven 3 release [4] and
>         follow [5].
> [1] http://wiki.eclipse.org/EGit/Contributor_Guide#Import_Team_Project_Set
> [2] http://wiki.eclipse.org/EGit/Contributor_Guide#JGit_HTTP_Tests
> [3] http://wiki.eclipse.org/EGit/Contributor_Guide#EGit_UI_Tests
> [4] http://maven.apache.org/download.html
> [5] http://wiki.eclipse.org/EGit/Contributor_Guide#Builds
>
>
> Anything missing in the contributor guide ?
>
>
> --
> Matthias

Matthias there is nothing missing the Contributor guide, but when i try
to execute the following command "mvn -f
org.eclipse.jgit.packaging/pom.xml clean install"

i get the following error.This is why i am asking for more details.I
probably missed on my previous mail.
<error>
santaris@developer1-desktop:~/git-workspace/jgit$ mvn -f
org.eclipse.jgit.packaging/pom.xml clean install
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.eclipse.jgit:jgit.tycho.parent

Reason: Cannot find layout implementation corresponding to: 'p2' for
remote repository with id: 'ganymede'. for project
org.eclipse.jgit:jgit.tycho.parent


[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find layout
implementation corresponding to: 'p2' for remote repository with id:
'ganymede'. for project org.eclipse.jgit:jgit.tycho.parent
       at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
       at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:616)
       at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
       at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.ProjectBuildingException: Cannot
find layout implementation corresponding to: 'p2' for remote repository
with id: 'ganymede'. for project org.eclipse.jgit:jgit.tycho.parent
       at
org.apache.maven.project.DefaultMavenProjectBuilder.buildArtifactRepositories(DefaultMavenProjectBuilder.java:949)
       at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1206)
       at
org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:823)
       at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)
       at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
       at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)
       at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)
       at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)
       ... 12 more
Caused by: org.apache.maven.artifact.InvalidRepositoryException: Cannot
find layout implementation corresponding to: 'p2' for remote repository
with id: 'ganymede'.
       at
org.apache.maven.project.ProjectUtils.getRepositoryLayout(ProjectUtils.java:157)
       at
org.apache.maven.project.ProjectUtils.buildArtifactRepository(ProjectUtils.java:110)
       at
org.apache.maven.project.ProjectUtils.buildArtifactRepositories(ProjectUtils.java:56)
       at
org.apache.maven.project.DefaultMavenProjectBuilder.buildArtifactRepositories(DefaultMavenProjectBuilder.java:942)
       ... 19 more
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException: Component descriptor cannot be found in the component repository: org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayoutp2.
       at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:323)
       at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
       at
org.apache.maven.project.ProjectUtils.getRepositoryLayout(ProjectUtils.java:153)
       ... 22 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Wed Mar 16 20:31:04 EET 2011
[INFO] Final Memory: 2M/119M
[INFO]
------------------------------------------------------------------------
</error>

run 
$ mvn --version 
to check which maven version you are using, you need at least 3.0 

--
Matthias

Back to the top