EGit - Error while building EGit source code [message #1756136] |
Mon, 13 March 2017 05:13 |
Suresh P Messages: 27 Registered: May 2013 |
Junior Member |
|
|
HI,
I have to build the EGit Source code. I followed the steps specified in EGit Contributor Gudie - http://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.egit.doc%2Fhelp%2FEGit%2FContributor_Guide%2FContributor-Guide.html
I have used Eclipse Mars, JDK 8 and Maven 3.3 for building.
I have downloaded both JGit and EGit from clone and imported into same workspace.
Followed the below steps:
1. Open File > Import... and select Git > Projects from Git
Select URI
2. Enter the URLS below:
EGit URL - https://git.eclipse.org/r/egit/egit.git
JGit URL - https://git.eclipse.org/r/jgit/jgit.git
3. Selected 'master' branch
4. Import existing projects into the workspace from the newly created working directory.
5. After importing the projects to workspace, to resolve the build errors, I followed the steps specified in section "Development IDE Configuration".
6. Followed Option 1 (recommended): Use a Target Platform to add dependencies
7. Open the org.eclipse.egit.target project and selected egit-4.5.target for Eclispe Mars. In the editor, selected the "Set as Target Platform" link.
8. It open the popup "Load as Target Platform" and it is not closed even after 1 hour.
Let me know if you need any error logs to get more details about the issue.
Can you provide me all the steps required to build EGit project in Eclipse Mars.
I have attached the snapshot of "Load as Target Platform" Popup, to give some more context into this issue.
The progress bar shows 0% even after 1 hour.
[Updated on: Mon, 13 March 2017 06:11] Report message to a moderator
|
|
|
|
Re: EGit - Error while building EGit source code [message #1756142 is a reply to message #1756137] |
Mon, 13 March 2017 07:01 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
There are the following instructions for doing all the setup automatically with EGit's Oomph setup:
https://wiki.eclipse.org/EGit/Contributor_Guide#Automated_Developer_Setup
I just tried these steps just now, but unless you pick Oxygen for the target platform on the Variables page (instead of Neon, which is the default selection on the Variables page), there is one error in org.eclipse.jgit.junit.http.AppServer.TestLoginService which cannot resolve its base class org.eclipse.jetty.security.AbstractLoginService which I assume must be new for Jetty in Oxygen.
In any case, the master branch will not fully compile against a Mars target platform. I tried activating the mars target, which worked for me, but the following compile errors are the result:Description Resource Path Location Type
SmartImportJob cannot be resolved to a type SmartImportWizardTest.java /org.eclipse.egit.ui.importer.tests/src/org/eclipse/egit/ui/importer/tests line 160 Java Problem
SmartImportRootWizardPage cannot be resolved to a type SmartImportGitWizard.java /org.eclipse.egit.ui.smartimport/src/org/eclipse/egit/ui/internal/clone line 123 Java Problem
SmartImportRootWizardPage cannot be resolved to a type SmartImportGitWizard.java /org.eclipse.egit.ui.smartimport/src/org/eclipse/egit/ui/internal/clone line 149 Java Problem
SmartImportRootWizardPage cannot be resolved to a type SmartImportGitWizard.java /org.eclipse.egit.ui.smartimport/src/org/eclipse/egit/ui/internal/clone line 149 Java Problem
SmartImportWizard cannot be resolved to a type SmartImportGitWizard.java /org.eclipse.egit.ui.smartimport/src/org/eclipse/egit/ui/internal/clone line 42 Java Problem
SmartImportWizard cannot be resolved to a type SmartImportGitWizard.java /org.eclipse.egit.ui.smartimport/src/org/eclipse/egit/ui/internal/clone line 57 Java Problem
SmartImportWizard cannot be resolved to a type SmartImportGitWizard.java /org.eclipse.egit.ui.smartimport/src/org/eclipse/egit/ui/internal/clone line 57 Java Problem
SmartImportWizard cannot be resolved to a type SmartImportGitWizard.java /org.eclipse.egit.ui.smartimport/src/org/eclipse/egit/ui/internal/clone line 69 Java Problem
SmartImportWizard cannot be resolved to a type SmartImportGitWizard.java /org.eclipse.egit.ui.smartimport/src/org/eclipse/egit/ui/internal/clone line 80 Java Problem
SmartImportWizard cannot be resolved to a type SmartImportGitWizard.java /org.eclipse.egit.ui.smartimport/src/org/eclipse/egit/ui/internal/clone line 81 Java Problem
SmartImportWizard cannot be resolved to a type SmartImportGitWizard.java /org.eclipse.egit.ui.smartimport/src/org/eclipse/egit/ui/internal/clone line 106 Java Problem
SmartImportWizard cannot be resolved to a type SmartImportGitWizard.java /org.eclipse.egit.ui.smartimport/src/org/eclipse/egit/ui/internal/clone line 149 Java Problem
The import org.eclipse.ui.internal.wizards.datatransfer cannot be resolved SmartImportWizardTest.java /org.eclipse.egit.ui.importer.tests/src/org/eclipse/egit/ui/importer/tests line 42 Java Problem
The import org.eclipse.ui.internal.wizards.datatransfer.SmartImportRootWizardPage cannot be resolved SmartImportGitWizard.java /org.eclipse.egit.ui.smartimport/src/org/eclipse/egit/ui/internal/clone line 33 Java Problem
The import org.eclipse.ui.internal.wizards.datatransfer.SmartImportWizard cannot be resolved SmartImportGitWizard.java /org.eclipse.egit.ui.smartimport/src/org/eclipse/egit/ui/internal/clone line 34 Java Problem
The method format(String, Object[]) in the type JFaceResources is not applicable for the arguments (String, Integer, Integer) StorageSizeFieldEditor.java /org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/preferences line 35 Java Problem
Unsatisfied version constraint: 'org.eclipse.ui.ide: 3.12.0' MANIFEST.MF /org.eclipse.egit.ui.importer.tests/META-INF line 14 Plug-in Problem
I.e., the new smart import wizard cannot compile against Mars.
Note to EGit developers, you should change your Oomph setup to replace http://download.eclipse.org/jetty/updates/jetty-bundles-9.x/9.2.13.v20150730 with http://download.eclipse.org/jetty/updates/jetty-bundles-9.x/9.4.1.v20170120 in all three of your targlet task's repository groups, and you should change /org.eclipse.jgit.junit.http/META-INF/MANIFEST.MF so that it specifies a proper lower bound for its dependency on the new AbstractLoginService class in the org.eclipse.jetty.security package:
org.eclipse.jetty.security;version="[9.4.0,10.0.0)",
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.04157 seconds