Using InteliJ IDEA, I am trying to set up multiple projects to run as part of the same IDE.
When import it (File->New Project->From Maven) only the latest imported project shows up.
How can i get multiple projects to appear?
As you can find in the FAQ, IntelliJ IDEA project maps to Eclipse workspace and module maps to Eclipse project.
Create one IDEA project and then add multiple modules to it. Modules can have different JDK and language level settings.
Related
I'm trying to (re)import a hybris project in IntelliJ with the hybris integration plugin. But every time when I get to the point to select the modules there are none except the project name itself. If I try to ignore that and just press next than I end up with a project without folder / modules.
That problem came after I imported that project ones and then deleted all files that are pointed to IntelliJ.
Is it possible to clean IntelliJ from a whole project with all dependencies etc. so I can import the project like nothing happend before?
v5.4.2 required other plugins which you probably had disabled. such as spring, ant or git.
The best way to get speedy resolution on the intellij hybris plugin is from their jira support portal. Dont forget to register/login first so that you can get an answer.
https://hybris-integration.atlassian.net
Version 5.4.2 is broken. Downgrading to the older one (5.3.1) worked for me and fixed that "no modules when importing"-problem
I work on a Java based Play! project for severals months now and I'd like to import it completely in IntelliJ, meaning being able to run, compile, test and debug from IntelliJ, without the need to use the command line.
According to this post from Jetbrain, it seems to be possible, if I quote the article it says clearly : "Now you don’t need to switch between IntelliJ IDEA and Play console anymore. Everything is available right from your favorite IDE.", but I can't figure out a way to achieve this for now, even if I follow the tutorial provided by Jetbrains.
Here are the steps I've been throught :
Open my fav IDE IntelliJ ;)
Go to the project list window.
Import project
Import from external model and choose SBT as suggested in Jetbrains tutorial.
option "Use auto import" checked, option "create directories for empty content roots automatically" checked. Project SDK Java 1.7
Global sbt settings : JVM From project JDK.
Finish
By now, if I try to make the project and launch it from IntelliJ, I'll get scala compiling errors related to routes object. Thanks to this post, we can understand that this happens because scala routes are located to specific folders that needs to be included in IntelliJ sources settings for this project. So next step was :
File -> Project Structure -> Modules
Add target/scala-2.10/classes:target/scala-2.10/resources_managed:target/scala-2.10/src_managed as sources folders.
But my problem remains the same, routes object being unrecognized.
Notes : I have no scala facets in my project structure configuration nor can add one.
IntelliJ provides integrated support for the Play Framework for Scala and Java. Support is currently only available in IntelliJ Ultimate Edition (see the Frameworks and Technology section).
Assuming Ultimate Edition, the setup for Play is incredibly easy. Simply create a new project by importing build.sbt, then choose Add Framework Support and choose Play 2.
Once complete, you can start and stop Play using the Play 2 Run/Debug configuration. No command line necessary.
Here is a more in depth look at IntelliJ's Play project configuration.
You could try the command play idea if you are using play or activator idea if you are using activator. That will do the magic.
At the moment I have 3 IDEs running at the same time, Netbeans for PHP and Python related projects (support for both are poor in Netbeans), Eclipse STS for Java/Spring/Scala projects (STS hangs when the projects get too big) and Dart IDE for Dart projects.
I'm trying out IntelliJ seeing as it has decent support for all the languages I'm working in and somehow it's a lot more stable, much faster, much more intuitive, but I can't figure out how to import multiple projects ... (that's something that just works in both Netbeans and Eclipse)
... there's a Maven Projects tab on the right, if I click the + sign it perfectly imports multiple maven projects for me and lists them in the project box, as soon as I import a non-maven project using file -> import project, all my other projects disappear and I have to re-import those projects via the Maven Projects tab. If I import a non-maven project first and then the maven projects using the Maven Projects tab on the right, I can mix one Dart project and multiple maven projects.
The suggestion out there is to import them as modules under a project, so I create an empty new project called Workspace, I select JDK 1.7 for the project SDK. Under module I click the + sign, find my project, select the pom.xml, add all the pom.xml files for that project and click ok - now I have a project with multiple modules.
Repeat for another project, import all the modules, and first project disappears.
How do I have multiple projects with their own "modules" (modules which are actually standalone projects) in IntelliJ. If projects are the eclipse equivalent of workspaces, is it possible to have multiple workspaces open? If not, how do I switch between them? (if switching is too much hassle, I'll create one mega-project and just add all projects as modules)
You can have multiple projects open in separate IntelliJ windows. Every time you open or create a project, or open a build file such as pom.xml or build.gradle, IntelliJ asks you whether you want to open the project in the same window or a new one.
I have setup a gradle java multi-project in Eclipse Kepler. I have the build working great. The problem is, when I try to re-factor rename a class in one of the projects, the re-factor only occurs in that one project, and does not properly cascade to the other projects. My other projects become filled with compile errors due to the previously named class references.
Is there a way to make this re-factoring work across gradle projects?
Figured it out. The solution was to enable dependency management on each of the related projects.
To do this, right-click on the project in the package explorer:
gradle -> enable dependency management
You will need to do this to all the projects which depend on the project containing the class you want to re-factor.
I am trying to create an OSGI project on IntelliJ Idea but so far couldn't make it. I can change the facet after creating a Java project but it isn't the one I want.
In eclipse, while I am creating the project ( Plugin Project ) I can select it to be an OSGI project thus IDE helps me to create required project structure.
But in IntelliJ Idea it is not - at least I couldn't find it -
Have a look to Osmorc. Its for OSGi development in Intellij. If you are familiar with Maven you can use a combination of Bnd Framework and maven-bundle-plugin. With the last one you are independend of the IDE you are using