I have a project with nested Git repositories which are not detected by Eclipse Mars. I tried to add them manually, but Eclipse is not finding any of the sub repositories even if I point them out.
The sub Gits are created with composer install --prefer-source.
Cli Git works like a charm...
Anyone with the same issue?
With Eclipse Neon everything is working fine.
Related
I am working eclipse setup with sage in that I have to link GitHub repository to x3 project. I am able to add the project to GitHub successfully but getting an error while compiling the code:
Can anyone experience this earlier? If anyone is there help me on that.
Thanks,
Madhava
try updating your IDE and GIT plugin:
Git Eclipse version
It might work for you.
This is the eclipse version I use eclipse version
Check your git view in eclipse too
Git repository
You can associate your workspace with GITHUB Desktop, it works fine and makes commits easy.
after a couple of hours trying and reading a number of tutorials, I can't fix the following problem: I have a remote server running a git repository. From eclipse (neon.2 and egit) I pushed several maven projects, each with its own pom.xml to this repository. When a friend of mine, who wants to co-develop tries to setup his environment, also using Eclipse Neon.2 and egit, we are not able to reproduce the setup in the Package Explorer. We get all the sources but in one project. The original maven projects are all nested in this one project. This wrong setup results in a couple of problems when trying to compile or run the projects.
We used File-> Import-> Git-> Projects from Git-> Clone URI. In Source Git Repository we pointed the Repository path to /home/git/workspace.git. In the Branch Selection dialog we can then only see the master. In the following Local Destination dialog we checked the Clone submodules checkbox. We played around with the following options to run wizards which were all failing, so we ended up with this one project option in the bottom of the three options in the dialog.
What is not happening, is the import projects dialog as explained here https://wiki.eclipse.org/EGit/User_Guide/Remote#Import_Projects
(but this seems to be a former version, since the Clone submodules checkbox is missing in the dialog before on this web page)
Can anybody please tell us how to extract the maven projects as top elements in eclipse, linked to the existing git repository, such that we can work as a team?
Should you need any additional information, please let me know.
Thank you in advance.
I would advise you to always put all Eclipse configuration files to the repository when creating projects. What you should do is add all necessary maven integration related files to the repository (.project, .classpath, .settings/*m2e.core.prefs or better yet entire .settings). If you have done so, you are fine. If not, add them and pull changes on your colleague's machine.
On target machine remove the project from workspace, but do not delete contents. In Eclipse Git repositories view select your repository and expand to see Working tree. Right click it and select Import projects. This will trigger the flow you pointed our at Eclipse wiki. From there it should be straightforward - Eclipse will try to detect projects and will import them, so that they have Maven nature and are managed by EGit.
If you don't want to or cannot share maven configuration in the repository, have a look at this answer which tries to describe how to achieve that without Eclipse configuration files.
I am trying to import a git project, but the git option is not available under "Import." I have Eclipse 3.7.2, and EGit is already installed. I've done Git imports before on this version of Eclipse, but I didn't have this issue before. I am on a different computer, reinstalling everything, and trying to get my old project to run
Once you clone the git repository, in the Git perspective, right click on the "working directory" node in the git repository view and do "Import projects..." action. That will bring up a wizard that will let you search the subfolders for .project files and import any existing Eclipse projects.
I had this problem with Juno (3.8) - I don't know what was the way I installed eGit but I think I done this wrong.
I tried to completely remove Eclipse from my Ubuntu 14.04 and reinstall it but eGit still was there...
Finally, remove .eclipse hidden directory from my home folder fixed this issue. Then I installed eGit once again, by select All Available Sites and find it on the list.
Hope it will help anybody :)
I have installed m2eclipse and EGit, I can checkout a project from a git repository and I can build a maven project, but I cannot checkout a maven project from the git repository.
The problem is, that the SCM URL field is empty (apart from EGit I have SVN team providers as well...) and when I paste the url I just get SCM provider is not available in the maven console.
I tried searching for this issue and I found I have to install m2eclipse SCM integration and SCM handler for git, however those aren't on the update sites.
Any ideas?
Maven SCM integration in Eclipse used to be good. It used to be that you could do Import > Check out Maven projects from SCM and put in a URL like scm:git:ssh://git#git:project.git but in Helios or the new version of m2eclipse + extras you can't do that anymore. It always gives the error that the original post is talking about. Disappointing that you have to check out in EGit and then add dependency management. This isn't a great solution because it isn't smooth with parent / children POMs.
Ok, so now it works. First clone the repository with EGit, then create generic project, then add dependency management and everything installs just fine and works.
If I understand your saying, I can do what you need in this way. Just place this in the projects' pom.xml:
<scm>
<connection>scm:git:https://gitUsername#github.com/gitRepo/projectname.git</connection>
<url>scm:git:https://gitUsername#github.com/gitRepo/projectname.git.git</url>
<developerConnection>scm:git:https://gitUsername#github.com/gitRepo/projectname.git.git</developerConnection>
</scm>
A git project is not checked out, it's cloned.
To clone the project just type
git clone <project url>
I found a partial solution to my problem. I use Apache Ivy (IvyDE, plugin for Eclipse) instead and the thing I want to checkout is in the default dependency repository.
I am using svn tortoise to checkout a maven project from a repository, I then open eclispe, and use the m2eclipse plugin to import a maven project. The maven projeect comes in okay, and I can build it fine.
The problem is that eclipse using subversive, isn't marking files/ resources as being in source control (even though I seem to have all the relevant .svn directories.)
I get the same behaviour if I try and check the code in using
-> import -> check out Maven Projects from SCM. ie the project imports okay, but the files aren't linked in to teh svn repository in eclipse.
Are there any suggestions as to how I might proceed, as I find the tortoise svn checkin process pretty painful.
Did you set up your project for team sharing (right click on project->Team->Share project)? If I remember correctly that should detect the existing .svn folders an enables version control inside of eclipse.
You might wanna try using Subclipse. It's the Eclipse plug-in for Subversion and is really good. I've also found that interacting with a SVN repository with Tortoise while also having Eclipse open and accessing the same repository causes problems. You should avoid it if you can.
I would highly recommend making sure that you commit using tortoise svn as I've had particularly spotty consistency with subclipse. If you do you in/out with tortoise, and then just update with subclipse you should be fine.