5 Min



  1. 5 Minute Meditation
  2. 5 Min Timer
  3. 5 Minute Crafts

11 reviews of 5-Minute Oil Change 'I know we've all hear some of the horror stories surrounding 'quick service' oil change businesses, but 5-Minute Oil Change will allay all of your fears. I like to consider myself somewhat mechanically inclined, and I changed my oil on all my past vehicles and motorcycles. But 'life' happens and like many, I get busier and busier and time is always of the. It truly takes 5 minutes to fill out the section and it is difficult to find an excuse NOT to do it each day. After giving up for years, I was prompted by the book 'The Miracle Morning' by Hal Elrod (a great book!) to take up journaling/scribing and found this wonderful journal. '5MinuteConsult.com is a perfect extension of Dr. Domino's 5 Minute Clinical Consult book. This site gives me the added confidence in my clinical decision making process that no other resource has been able to provide.' - Mitchell Dunbar, MD; Group Subscriptions. We offer special packages for hospitals, institutions, and large group practices.

Creating a Project

You will need somewhere for your project to reside, create a directory somewhere and start a shell in that directory. On your command line, execute the following Maven goal:

Min5 Min

If you have just installed Maven, it may take a while on the first run. This is because Maven is downloading the most recent artifacts (plugin jars and other files) into your local repository. You may also need to execute the command a couple of times before it succeeds. This is because the remote server may time out before your downloads are complete. Don't worry, there are ways to fix that.

You will notice that the generate goal created a directory with the same name given as the artifactId. Change into that directory.

5 Minute Meditation

Under this directory you will notice the following standard project structure.

The src/main/java directory contains the project source code, the src/test/java directory contains the test source, and the pom.xml file is the project's Project Object Model, or POM.

The POM

The pom.xml file is the core of a project's configuration in Maven. It is a single configuration file that contains the majority of information required to build a project in just the way you want. The POM is huge and can be daunting in its complexity, but it is not necessary to understand all of the intricacies just yet to use it effectively. This project's POM is:

What did I just do?

You executed the Maven goal archetype:generate, and passed in various parameters to that goal. The prefix archetype is the plugin that provides the goal. If you are familiar with Ant, you may conceive of this as similar to a task. This archetype:generate goal created a simple project based upon a maven-archetype-quickstart archetype. Suffice it to say for now that a plugin is a collection of goals with a general common purpose. For example the jboss-maven-plugin, whose purpose is 'deal with various jboss items'.

Build the Project

The command line will print out various actions, and end with the following:

Mins

Unlike the first command executed (archetype:generate) you may notice the second is simply a single word - package. Rather than a goal, this is a phase. A phase is a step in the build lifecycle, which is an ordered sequence of phases. When a phase is given, Maven will execute every phase in the sequence up to and including the one defined. For example, if we execute the compile phase, the phases that actually get executed are:

  1. validate
  2. generate-sources
  3. process-sources
  4. generate-resources
  5. process-resources
  6. compile

5 Min Timer

You may test the newly compiled and packaged JAR with the following command:

5 Minute Crafts

Which will print the quintessential: