The Source for Java Technology Collaboration
User: Password:



Andreas Schaefer

Andreas Schaefer's Blog

Maven: Jump Start

Posted by schaefa on November 30, 2004 at 03:02 PM | Comments (3)

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:

  1. Open a console and go to the directory where your project should be placed in
  2. Enter 'maven genapp' and hit enter
  3. Select the template (if in doubt then just hit enter to use the default template)
  4. Enter the application id which will become the first part of the application archive
  5. Enter a human readable Name for you project
  6. Enter the package for your source code like 'org.test.myapp'
After entering all the requested data it will create the Project Object Model (project.xml), project properties and the directory structure for the source and test code as well as some sample classes (Hello World).

Long life laziness – Andy Schaefer


Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment

  • Maven is really cool!
    We from the Schoolbus Project are beting on Maven to produce our documentation, i.e., requirements, manuals, reference docs, etc. Further we expect to use the Maven also to integrate the code under the version control...
    It is being a hard work to configure the generation of PDF and Html outputs from our docbook sources, and I think a tutorial "step-by-step" about "documentation engineering" using Maven would be a great success.

    best regards,

    Felipe Gaúcho
    Schoolbus Team
    https://schoolbus.dev.java.net


    Posted by: felipegaucho on December 01, 2004 at 09:32 AM

  • Maven is good - if it works. But most often you end up spending hours on getting it to run. I also have noticed that often Windows users have problems with paths etc. So a good idea is to change your home directory to c:\home\username so that you do not have any empty spaces.

    ClassNotFoundException.info

    Posted by: tm78 on October 13, 2007 at 12:49 AM

  • p.s.: it is: ClassNotFoundException.info

    Posted by: tm78 on October 13, 2007 at 12:51 AM





Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds