Welcome Since I’ve noticed the lack of good tutorials about the usage of Intellij I deiced to start a small tutorial series which will teach you the following things: ·Switching over from Eclipse ·How to setup your project ·Building your module ·Integration with Git ·Using Maven To start with this series I suppose you already have setup Intellij on your computer. I will not spend any time explaining how to install it. Since many of you will be switching over from Eclipse to Intellij I will also explain how to do that, and what you should know. Part 1: Switching over from Eclipse to Intellij Intellij provides a build in feature which allows you to open up your Eclipse .project or .classpath files. When you want to open up an Eclipse project just follow these steps: 1.0Open up Intellij and then click on the “import” button. Navigate to the .classpath or .project file Now there should show up a new window and it will guide you trough the process, It’s as simple as that. Some things you should know: In Eclipse what is called a workspace is in intellij called a project. What is called a project in Eclipse is called a module in Intellij. In Eclipse you have a jardescription, in Intellij you have a buildartiffact. (Intellij does not have an export > jar option). I will not go any deeper in this subject. If you need any help, feel free to ask below. Part 2: Setting up your project Setting up a new project in Intellij is quite easy. I won’t add any screenshots since I do not find it necessary. Some things you should know: Intellij has build-in ant, maven, groovy, git and android tools. The features you will be using most are probably maven and git. I will not go about ant nor groovy or android (since this has no point) Like in the previous part, if you need any help, ask below Part 3: Building your module There are many people that use Intellij but very few of them don’t know how to build with it. It’s quite easy though. The first step is creating a build artifact; this is how: Click File | Project Structure When you have done that you should see this window: Now click on “Artiffacts”, now you should see this: Click on it and then the wizard should take you trough the setup. When you have done everything right you should now be able to do: Build | Build Artiffacts.. > then you should see the name of your artifact with some options on the left side, here you should press “build”. Now you’re done. Part 4: Git integration The git integration in Intellij is slightly different from the Eclipse eGit plugin. I find it better in use. Now, let’s start. I will do the best I can to explain this properly but please note that I haven’t figured this out myself yet, I do know how to do it and how to get it work but there are probably better ways to do so. Also there is the VCS | Import into version control | Share project on Github, I will not use this method since I myself never got it to work. Let’s start. The version control system is easy but a little bit tricky. I will not go about installing Git (yes you need to install it) If you have no idea how to install it, feel free to ask below, a good soul will definitely explain it to you. Anyways, enabling version control (I will now use the term VCS when referring to version control) you should click the VCS button in the toolbar: When you did that you should click on “Import into Version Control”, then click: “Create Git Repository…”, then navigate to your module folder and select that as the git location. Now you’re basically set. There’s only one thing you need to do now; creating your git repository. I’m supposing you already know how to do that, in github it’s just “new repo” and you’re set. Then when you have done that you have to copy the url of your repo (eg: https://github.com/CaptainBern/AnimationLib.git) then go to the folder your project files are located in and shift – rightclick > “Open command prompt here”. (I would have no idea how to do this on a mac or Unix/linux based system) Now type in: git remote add origin <url here> git push origin master Then go back in Intellij and press File | Synchronize. Then do: VCS | Git | Fetch. (Don’t forget to commit first! (VCS | Git | Repository | Commit)) Now you just need to add the files you want to the git (right click on the file > Git > Add or press Ctrl+A+Alt) Then push to the repo, if there are no erros you are set. If there are any errors, ask below… Part 5: Using Maven For this tutorial you already need to have maven setup on your machine. Intellij has amazing maven support. Why would you use maven? If you’re using git + Jenkins it’s necessary to use maven to handle the dependencies. When you used to be an Eclipse user and worked a lot with Maven you are absolutely going to love Intellij’s Maven support. 1: You can easily create a Maven project by just creating a project but instead of clicking Java Application you have to click Maven Project. (If you have a project and want to add Maven support for it you simply have to right click on it > Add Framework Support… > Maven) Intellij will create a basic pom.xml for you, it looks like this: Code: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>me.captainbern</groupId> <artifactId>AnimationLib</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar</packaging> </project> Ofcourse for it to be useful you need to add bukkit as a dependency. (I will not go about this) Now, you will wonder why is the Intellij IDEA Maven support better than Eclipse? Well, see it yourself! Click View | Tool Windows | maven Projects. On the right side there should pop up a little windows, click on the arrows to unfold the tools. If you’re a frequent maven user you will definitely be loving this. Well that’s it for now. I will now no longer continue this tutorials, I’m now asking you, the community, to continue it. Found out a neat trick or a cool feature in Intellij that you want to share with us? Write a nice post in the comments and I will add a link to it in the main post! Free likes included! If you have any improvements or things to say, feel free to do so. Sorry for the font/markup looking a bit weird since I wrote it in word and copy pasted it in here (without doing shift-c-ctrl). EDIT by Moderator: merged posts, please use the edit button instead of double posting.