Advertisment

Saturday, December 3, 2016

Integrating Maven to Netbeans, Eclipse and IntelliJ

Mavens popularity has grown in large scale through these years. And many integrated development environments that used with Java, has started to integrate maven with their products.

For example, maven is already setup to integrate with,

  • NetBeans 
  • Eclipse 
  • IntelliJ 
NetBeans Integration 

Starting with the NetBeans 6.7 and higher, there is full Maven support. Using the new projects wizard in NetBeans you can create projects using archetypes in Maven. And the IDE also includes a Maven repository browser that enables the user to view local repository as well as registered external maven repositories. If you have NetBeans versions 6.5 or lower you can add maven by adding the necessary plugins under,

Tools -> Plugins -> Choose Available Plugins -> Choose Maven -> Install and then close.

You can find detailed documentation from wiki.NetBeans.org  . You can find Maven tutorials tips and tricks in NetBeans.

Eclipse Integration 

If you are accustomed to use Eclipse for development. Then you have M2Eclipse version for Maven integration. This can be used to create new Maven projects. And also can handle dependency management. Based on Mavens pom.xml file. Also this perform automatic downloads of required dependencies. 

You can get detailed documentation about M2Eclipse from Eclipse.org/m2e/ .

Go to Help -> Install New Software 

http://download.eclipse.org/technology/m2e/releases/

Enter the above site location in Work with field and press Enter. Then select all the packages and install them. 

IntelliJ Integration 

You can get full Maven support with IntelliJ IDEA from JetBrains. It can be used to import existing projects or create new ones. It has full editing support for the pom.xml files. you can find detailed documentation from JetBrains.com/idea.

To get started with maven just go to IntelliJ IDEA and then create new project and select Maven from there. then go as on...

If you have any questions feel free to post them in comment section.!

No comments:

Post a Comment