So far we have built the base, and now we are finally ready to launch the rocket. Rocket! Exciting, isn't it? Let's put our knowledge from previous chapters to practice; we will use Maven to create a simple web application, MyDistance, which lets the user convert distance between different units. In the process of building this application, we will also learn to customize the project's information and generate different artifacts. The topics that will be covered in this chapter are categorized as follows:
To create the MyDistance
application, we need to perform the following steps:
maven
in the textbox, select Maven Project, and click on the Next button, as shown in the following screenshot:webapp
, choose maven-archetype-webapp, and click on Next, as shown in the following screenshot:
Field |
Value |
---|---|
Group Id |
|
Artifact Id |
|
Version |
|
Package |
|
Your screen will look like the following screenshot once you perform the previous step:
A snapshot in Maven indicates the current development copy, that is, the current snapshot of the code. Maven checks for a new SNAPSHOT version in a remote repository at a configured interval, for a default time of 24 hours. For more information on Maven versions, refer to http://docs.oracle.com/middleware/1212/core/MAVEN/maven_version.htm.
Don't worry if you see a red cross that indicates an error in the project; we will learn more about it in the upcoming section, Application code.
3.129.218.45