Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to maintain JAVA projects irrespective of IDE (Netbeans and Eclipse)

In my team, some of them are using Netbeans and some of them using Eclipse, so in our Subversion repository for each JAVA project we have Netbeans & Eclipse project files.

I do want to keep Netbeans & Eclipse project setting files inside the JAVA project, they are specific to IDEs.

Please help me to maintain only the JAVA source files inside the subversion.

like image 386
sokid Avatar asked Jan 22 '26 16:01

sokid


1 Answers

Use a common build infrastructure, like maven. This encapsulates (as good as) all settings inside the maven pom.xml files (source encoding, java version etc.).

Also versioned library dependencies, subprojects are managed in maven.

NetBeans knows maven out-of-the-box, and eclipse has a good maven plugin.

In my experience manual configuration, especially in eclipse, and grown ant scripts, are cumbersome.

like image 71
Joop Eggen Avatar answered Jan 24 '26 06:01

Joop Eggen