I am importing multiple maven module through 'Existing maven Projects' tab from 'Import' section under eclipse.
But i am trying to know whether it supports/pop ups a new tab whenever i import a new module.
As of now, Project explorer having all imported module in single pane. I need it in invidual pane.
Related
What's the correct way to create a project in Eclipse from a github project which uses the parent/child pom construct, for example https://github.com/vladmihalcea/vladmihalcea.wordpress.com ?
I can clone/download it ok, but then do I need to manually create an eclipse project for each sub-project within or is there a better way?
(Googled the hell of out this question without finding an answer, but please feel free to post a link if you know of such.)
Use the Import feature of Eclipse.
Select File / Import ... from the Eclipse menu.
From the Import dialog window, Select the Maven / Existing Maven Projects wizard option.
Click Next.
From the Import Maven Projects dialog, choose the root directory using the Browse directory chooser.
With the directory choosen, the dialog will be populated with all available Maven projects. Check all the projects to be imported.
Click Finish.
I have a project A in eclipse whose code is compiled into a jar and used by a separate project B.
I have associated the jar to the workspace project A code.
When I run project B I get stack trace on the console which references the jar.
When clicking on the references the correct file opens up from project A but as read only, I want to edit this file and fix my code.
What I end up doing is open the file manually using search typing the name or navigating to it in the package explorer and then edit it.
I mean file is there in the project in my workspace, why is it not editable?
Is there any way around it?
To open a Java file of project A with the Java Editor (editable) instead of with the Java Class Viewer (read-only) when you are in your project B, you have to do the following:
Right-click project B and choose Properties
In Java Build Path, tab Projects click Add...
Select project A and click OK
In Java Build Path, tab Order and Export move project A to the top by selecting project A and clicking UP several times
Click Apply and Close to close properties dialog of project B
I would recommend convert project A to a plug-in project. A plug-in JAR can be used in both, a plain Java and an OSGi application. The code would be more modular and changes in project A would not require a JAR file to be updated in project B.
In Eclipse IDE, when I have created the Java Projects, I don't see the Referenced libraries. Is it that some settings might have changed? Or in Eclipse Mars it doesn't show?
Since for some of my projects I needed the libraries, I had created a folder named, say Rsrcs, and added all the jar files to it.
How can I get the Referenced libraries folder by default when I create the projects?
If you are using the 'Package Explorer' or 'Project Explorer' view open the view menu (click the small triangle at the top right of the view). Select the 'Show Referenced Libraries Node' menu item.
Right click on Project >> Show In >> Project Explorer
I have a number of projects in my Eclipse workspace, some of them plain ol' Java projects, some of them Java web applications, some of them Flash Builder Flex projects.
They all live in a directory hierarchy. How can I open all of them in IntelliJ IDEA to be able to migrate from Eclipse to IDEA? The projects reference each other.
You can create an IntellIJ IDEA Project from source using the Import Project in the main menu.
Select the eclipse .project file or .classpath then check Link created IntelliJ IDEA modules to Eclipse project files.
The official docs, here:
To import an existing Eclipse projects to IntelliJ IDEA:
Open the New
Project Wizard. Having selected the option Import project from
external model, click Next.
On the Import page of the New Project
Wizard, select Eclipse. Optionally, check the option Import into
current project. Click Next.
On the next page of the wizard, specify
the directory, that contains the desired Eclipse workspace. In the
section IntelliJ IDEA project and module file location, specify
whether you want to create IntelliJ IDEA module files in the same
directory where the Eclipse projects reside, or in a dedicated
directory of your choice.
Check the option Link created IntelliJ IDEA
modules to Eclipse project files to automatically synchronize the
Eclipse projects and IntelliJ IDEA modules.
Specify whether you want test sources to be imported.
Click Next. IntelliJ IDEA scans the specified workspace for projects.
On the next page of the wizard, select the Eclipse projects you want
to import. So doing, each Eclipse project is converted to a separate
IntelliJ IDEA module. Click Next. Specify the name for the new
IntelliJ IDEA project, and the location of the project files.
Select also the format in which the project will be stored. Click Finish.
If you select "Keep project and modules in" you could separate eclipse project and IntelliJ IDEA project files
I never did something like this, but after reading docs and playing a bit the options it should be the best way.
I have a project which is divided into 3 sub project each for special purpose:
I put this project in bitbucket and then I imported it into eclipse but after importing the project, when I right click, I cannot see the "Configure -> Convert to Maven" option. But when I click on the folder (called omid) containing sub projects, I can find it. But I need to convert each sub project separately into maven since one of them is a webapp project, and the other are simple java projects. For more visualization look at the screenshots below:
But in the following image you can see what happens when I click on each sub project (there is no configure -> convert to maven):
I believe your problem is that you imported just the root module into Eclipse and you need to also explicitly import the sub modules as their own Maven projects. Go to File -> Import and choose the "Existing Maven Projects" option. Once this is selected you should be able to choose any project that contains a pom.xml file. You have two options from here. You could import both your root module (which is already imported) and all sub modules as Maven projects, or you can just import all sub modules.