Hi folks,
I was using Netbeans with manual dependency of libraries (jar files), i.e. ant standalone. However I had several projects, with a significative dependences. I decided to move to a tool that deals with it automagically.
I started by testing apache ivy which is an ant supplement to automatically download the dependences from maven repositories. Anyway, it has several xml files to configure, and it there is a lack of documentation (samples)
Afterwords, I decided to migrate my projects to maven, a powerful tool to automatically management my dependences. And that’s awesome. Netbeans support it from scratch, it’s really cool.
Hey, stop. How you migrate your projects from ant (Netbenas) to Maven?”
Good question, indeed. But it was quite easier:
project-dir $ rm -rf nbproject
project-dir $ rm -rf build.xml
project-dir $ cd src
project-dir/src $ mkdir -p main/java
project-dir/src $ mv org main/java/
project-dir $ touch pom.xml
Edit it and fill it – take an example
Quite interesting right?
Now: rm -rf ~/.netbeans (If you are not interesting in remove all directory, you can figure out a way to avoid it, try start by remove just .netbeans/$version/var/cache)
Thanks to Adrian Cole, for all tips regarding these automatically tools. Actually, I think that was a good investment and it will increase my productivity.
Cheers!
Bastião