I had a go, on Fedora 11. I can't wait for Fedora 12.
My first tip, is download and install locally: maven 2.2.1.
Install this into /usr/local/maven...
Use that in your Eclipse/NetBeans.
I'm on holiday for a few days... but I will post on how to get Eclipse and NetBeans building a distributable (all dependencies included) jar from the IDE when I return.
In conclusion: Maven is worth the learning curve.
UPDATE: After reflecting on actual use of Maven, I can add the following:
- Because it manages the build process, the IDE does not manage the build process. This means that you reduce your dependence on a given IDE. The project I'm working on is now developed by NetBeans and Eclipse folks. At the same time.
- Because it manages the build process, you are not dependent on IDE specific tools to build your distribution Jar. I like One-Jar but it is an extra dependency.
- By allowing you to collect all dependent code in your own repository, Maven enables a new level of technical management to be applied across a project, group, division etc.