Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] Compile instructions for version 2.3

I am able to compile. Thank you for the help.

I want to restrict the menu to "Commit", "Disconnect" & "History View".   I removed the references in plugin.xml but I see the menu is injected through the code as well. what is the recommended way to get to this change done.

Thanks

On Thu, Jul 14, 2016 at 11:29 AM, Matthias Sohn <matthias.sohn@xxxxxxxxx> wrote:
Looks like you didn't checkout matching versions of JGit and EGit.
I'd recommend you checkout v2.3.1.201302201838-r of JGit and EGit.

I tried to compile this version but this failed since Tycho 0.16 seems not to work
with Maven 3.3.9 which I have installed.

so try the following:

$ cd jgit
$ git checkout v2.3.1.201302201838-r
$ mvn clean install
$ mvn clean install -f org.eclipse.jgit.packaging/pom.xml
$ cd ../egit
$ git checkout v2.3.1.201302201838-r
$ mvn clean install

If you just need binary 2.3.1 you should be able to download the complete p2 repo from here
or install online from


-Matthias

On Thu, Jul 14, 2016 at 3:25 PM, Raghavendra Sarangapurkar <raghavsarang@xxxxxxxxx> wrote:
Egit compilation fails with below error 

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.16.0:package-plugin (default-package-plugin) on project org.eclipse.egit: Error assembling JAR: One of setGitDir or setWorkTree must be called. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.16.0:package-plugin (default-package-plugin) on project org.eclipse.egit: Error assembling JAR
        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:320)
        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: Error assembling JAR
        at org.eclipse.tycho.packaging.PackagePluginMojo.createPluginJar(PackagePluginMojo.java:186)
        at org.eclipse.tycho.packaging.PackagePluginMojo.execute(PackagePluginMojo.java:116)
        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: java.lang.IllegalArgumentException: One of setGitDir or setWorkTree must be called.
        at org.eclipse.jgit.lib.BaseRepositoryBuilder.requireGitDirOrWorkTree(BaseRepositoryBuilder.java:582)
        at org.eclipse.jgit.lib.BaseRepositoryBuilder.setup(BaseRepositoryBuilder.java:550)
        at org.eclipse.jgit.storage.file.FileRepositoryBuilder.build(FileRepositoryBuilder.java:89)
        at org.eclipse.tycho.extras.sourceref.jgit.JGitSourceReferencesProvider.getSourceReferencesHeader(JGitSourceReferencesProvider.java:47)
        at org.eclipse.tycho.packaging.sourceref.SourceReferenceComputer.addSourceReferenceHeader(SourceReferenceComputer.java:50)
        at org.eclipse.tycho.packaging.PackagePluginMojo.updateManifest(PackagePluginMojo.java:208)
        at org.eclipse.tycho.packaging.PackagePluginMojo.createPluginJar(PackagePluginMojo.java:170)
        ... 22 more


On Wed, Jul 13, 2016 at 10:31 PM, Raghavendra Sarangapurkar <raghavsarang@xxxxxxxxx> wrote:
Compiled jgit successfully with jdk1.6 and maven3.0.

What are the specific instructions to create the plugin repository aka
--content.jar
-artifacts.jar
-plugins
-features



On Wed, Jul 13, 2016 at 9:47 PM, Raghavendra Sarangapurkar <raghavsarang@xxxxxxxxx> wrote:
Sure will try that.

What are the java and maven versions required for that.

http://wiki.eclipse.org/EGit/Contributor_Guide#JGit   does not mention the version I am trying.

-Raghavendra

On Wed, Jul 13, 2016 at 7:48 PM, Matthias Sohn <matthias.sohn@xxxxxxxxx> wrote:
you need to compile JGit yourself as described in the contributor guide,
we don't have this version stored in repo.eclipse.org

On Thu, Jul 14, 2016 at 12:53 AM, Raghavendra Sarangapurkar <raghavsarang@xxxxxxxxx> wrote:
We have an eclipse 3.7 based product so we require the egit plugin for that.

The options in the "Team Repository View" like "pull", "add".... are not working. They dont show the window.
To workaround that we want to disable the menu options in the team and restrict to "Commit", "Show History", "Disconnect" only. To get to this we want remove the actions in the plugin.xml, not sure if there is a direct way override the actions. Second if we trying to compile the JGIT 2.3 repository is not available (https://repo.eclipse.org/content/unzip/snapshots.unzip/org/eclipse/jgit/org.eclipse.jgit.repository/2.4.0-SNAPSHOT/

I did follow the instructions in the links you mentioned.

Your help is appreciated.

Thanks

On Wed, Jul 13, 2016 at 6:19 PM, Matthias Sohn <matthias.sohn@xxxxxxxxx> wrote:
On Wed, Jul 13, 2016 at 9:12 PM, Raghavendra Sarangapurkar <raghavsarang@xxxxxxxxx> wrote:
Compile instructions for version 2.3

2.3.1 was released on March 1, 2013 [1]. The corresponding version of the contributor guide
explaining how to build is here [2]. At that time we used Java 6.

Why do you want to compile such an old version ? The latest release is 4.4.0 [1].


-Matthias








Back to the top