Maven: Jump Start
I started to love Maven not only for its scripting abilities but also for the fact that one could start a simple project in a few minutes which is even faster than to build a project with shell scripts. So if you are in doubt about Java just create a simple Maven project and test it with life code. Quit often this approach is even faster than add logging statements in your project or using a debugger.
Now during the creation of my upcoming Maven presentation @ LA Jug I discovered a way to create a project in seconds rather than minutes. Here is how to do it:
- Open a console and go to the directory where your project should be placed in
- Enter 'maven genapp' and hit enter
- Select the template (if in doubt then just hit enter to use the default template)
- Enter the application id which will become the first part of the application archive
- Enter a human readable Name for you project
- Enter the package for your source code like 'org.test.myapp'
Long life laziness – Andy Schaefer
- Login or register to post comments
- Printer-friendly version
- schaefa's blog
- 671 reads





