1 of 7
http://www.vogella.com/tutorials/ApacheMaven/article.html
Version 1.7
Copyright © 2013 Lars Vogel
02.07.2014
This tutorial describes the usage of Maven for building Java applications.
Table of Contents
Apache Maven is a build tool to support the developer at the whole process of a software project.
Maven allows the developer to automate the process of the creation of the initial folder structure, performing the compilation and testing and the packaging and deployment of the final product. It is implemented in Java which makes it platform-independent. Java is also the best work environment for Maven.
Apache Maven can be used in environments where common build tools like GNU Make or Apache Ant were used.
The key features of Maven are:
Convention over configuration: Maven tries to avoid as much configuration as possible, by choosing real world default values and supplying project templates (archtypes)
Dependency management: - it is possible to define dependencies to other projects. During the build, the tool resolves the dependencies and if needed it also builds the dependent projects
Central repository: - project dependencies can be loaded from the local file system, from the Internet or public repositories. The company behind the Maven project also provides a central repository called Maven Central.
13-09-2014 12:49
Maven for building Java applications - Tutorial
2 of 7
http://www.vogella.com/tutorials/ApacheMaven/article.html
Maven supports project scaffolding, i.e. template generation, for different project types, so called archtype. The goal of this scaffolding is to allow a fast start into the Maven world and supports a "standardized" folder structure of software projects. You can create a project by executing the generate goal on the archetype plugin : $mvn starts the generate process in the interactive mode and asks you for several settings.