5 Min



  1. 5 Min Timer
  2. 5 Min Timer

5-Minute Crafts KIDS, Limassol, Cyprus. 6,046,325 likes 280,494 talking about this. Fun diy-projects, crafts, experience the joy of doing it with kids! For business inquiries. 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.

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:

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.

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

5 Min

5 Min Timer

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:

5 MinMinute

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:

5 Min Timer

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

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

Which will print the quintessential: