intellij Import eclipse - import

I just recently start to try to move to intellij. After trying it several time i have decided to make the big move. I have downloaded an evaluation of ultimate.
hence i have decided to import my project from eclipse. However i am having some difficulties.
1- When I import a project as a module (inside a a project in Intellij) for which i clearly specify where i would like the project to be imported (i.e. "Keep project and module files in") (i.e. in a folder of the original name inside the current intellij encompassing project folder)
>>>Intellij do not import the files but references the eclipse project from whithin a new folder that it create. I do not want to mix my source. I want to duplicate the source and have it in intellij. But intellij, is actually pointing to my eclipse project.
This is an issue for me. Is there a way to avoid that ?
The question how does the import actualy behave. Does it duplicate the all files and create a new dir with all the duplicate files and the conig, or does it simply create a new dir, with conf files that point to the old dir.
What should i do, if i want to go from a project A in clipse to a project A' in Intellij with A' as a clone of A where both are fully independent project ?
Can any one help or assist on this. Many thanks.

Import will not duplicate any files, it will create IntelliJ metadata (.idea, *.iml, *.ipr) files inside your project, so you can work on the same codebase with both IDE simultaneously. Also, you can establish a two-way sync, with Eclipse project configuration changes synced to IntelliJ module and vice versa.
Unless you want to create an independent copy of your original project(as you mentioned in the question), then just copy the contents into a new directory and import the cloned code into IntelliJ. The changes you make in one project will not be reflected in another project.
If you are using git, then you can simply clone the existing git repository.
$ git clone my-eclipse-project my-idea-project

Related

How to import an eclipse based project from GitHub into Intellij properly

I want to import a maven project from GitHub into intellij which in of itself I know how to do however, the project this time was created initially also as an eclipse project and I want to be able to work on it in idea while my team members work on it in eclipse without causing conflicts due to differing project file structures. How can this be done?
When checking it out in Intellij it does ask me if I want to create a project from it and select yes but next, it asks whether to create the project from the existing sources vs from external model. From the external model option it allows me to pick eclipse or maven but not both. Do I just create from existing sources? Which is my best option to do this without screwing it up for the others when I commit and push my changes?
I understand that the easy answer might be: "just use eclipse" however, I think the answer on how to properly do this could be useful later. Not only me but also for others who want to work with the IDE they are most familiar and productive with and not mess with the workflow.
Any help would be appreciated
When importing an Eclipse project into IntelliJ, you have the option to:
Create module files near .classpath files
Keep project and module files in
The idea is to keep your *.iml file concurrently with your Eclipse .project/.classpath (and you can keep them in sync).
That way, you can open the project in both IDE.

pom.xml greyed out when importing maven project into eclipse

In eclipse Mars, I could always clone a git repository and then import it as a maven project. But this time, the pom.xml is greyed out. On the next screen only the pom of another project is showing and I can't proceed.
Are you sure you have not already imported the project into the workspace? Maybe you just don't see it. One reason can be that you are using working sets and the project is not in the group you'd expect it to be in?
If the project is already imported into your workspace, and you are trying to import another copy of the same project that resides in a different folder, you can try adding some string for Name Template under Advanced and the importing.

Diffrence between importing an existing project into Eclipse VS adding a dependency

I need you help understanding nub stuff
What is the Difference between
1. Importing and existing project into Eclipse
2. Adding a dependency ?
The "difference" is that those two are completely different things.
If you import projects into the workspace, you can edit them. For example, you could create a project with Maven, generate Eclipse project files and then import it into Eclipse, or checkout an existing project from SVN or Git am import that one. You can not edit individual files in Eclipse; everything has to be part of a project.
If you add a dependency, you can use the things defined in that dependency in another project. Usually, that dependency would be a JAR file. You can add individual JAR files manually, or use other Programs like Maven aggregate the dependencies and add them to the project.
Also, you can add a project from the workspace as a dependency to another project (after importing both into the workspace). Compared to adding a JAR file as a dependency, this has the advantage that you can edit the one project and the changes will imediately be reflected in the second project that depends on the first one. This makes development much easier than generating a new JAR file from that project every time something changes.

Import a project into another imported project

I found this statement in the help of a project that I want to import it named "storm-
election"
This is a simple demo app based on the storm-starter project. https://github.com/nathanmarz/storm-starter.
So, I imported storm-starter project successfully. How can I import storm-election project?
Can I import a project on another imported project ?
Eclipse 4.5 (starting from Mars M5) will include a mechanism that allows to nested projects under their parent one.
You can already give it a try by accessing the latest snapshot build of Eclipse Platform (which is a subset of the IDE, but which contains the change) http://download.eclipse.org/eclipse/downloads/drops4/N20150124-1500/ , when Mars M5 is ready, you'll be able to access from http://eclipse.org/downloads a full featured IDE which also contains this feature.
Reference https://bugs.eclipse.org/bugs/show_bug.cgi?id=427768
You cannot create a project under any project, like you create folder(s) under folder, folder(s) under project, file(s) under project and file(s) under folder.
All projects in a workspace are siblings no child and parent relationship exists between projects.
I am not able to see storm-election project in the link provided, but you can import this project in the same way as you imported storm-starter project.

.jcp equivalent for eclipse?

for one of my labs I have in my CS2 class at school, JCreator is installed on the school's computers with a 4.x version, I'm more of an eclipse person myself, I even use it at school in place of JCreator, but the file extension .jcp from what I know is a JCreator related file extension. What can I do to make a folder of files compatible with eclipse, which I use at home as well?
Eclipse identifies its projects by using two files namely .classpath and .project. As long as you can export those along with the project files and structure, you should be able to import a project into another eclipse instance.
I am not sure JCreator can create those files for you but I am sure that every eclipse project generates these files.
You can keep the JCreator specific files in the project folder(s), eclipse will ignore all the files that it cannot process/understand. The problem will be how to keep the libraries you are using in sync in both IDE environments as you edit your project.
You might want to re-factor that out to a build management tool like ant/buildr/maven