File system /
Pages: 5 (875 words) /
Published: Oct 5th, 2014
1 of 7
Copyright © 2013 Lars Vogel
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.
Maven for building Java applications - Tutorial
2 of 7
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.