advertisement

An introduction to Apache Maven

27 %
73 %
advertisement
Information about An introduction to Apache Maven

Published on December 21, 2013

Author: mikejf12

Source: slideshare.net

Description

A short introduction to Apache Maven, what is it and how is it used for Java based builds.
How does it work and what other tools are used ?
advertisement

Apache Maven ● What is it ? ● How does it work ? ● Why use it ? ● Structure ● Usage ● Examples www.semtech-solutions.co.nz info@semtech-solutions.co.nz

Apache Maven – What is it ? ● A build automation tool ● Mainly for Java projects ● Uses conventions for build structure / procedure ● Licensed by Apache ● Developed via Jakarta project ● Stores libraries and plugins in a central repository www.semtech-solutions.co.nz info@semtech-solutions.co.nz

Apache Maven – How does it work ? ● Build controlled via pom.xml project file ● POM = Project Object Model ● Uses standard build order, directories, plugins ● Identifies dependencies in the pom.xml ● One POM can call child POM's ● It makes the build easier ● Provides uniformity www.semtech-solutions.co.nz info@semtech-solutions.co.nz

Apache Maven – Why use it ? ● Remove complexity from the build process ● Use a uniform process ● Make the build repeatable ● Make the build consistant with other projects ● Provides a controlled release process ● Manages depedencies www.semtech-solutions.co.nz info@semtech-solutions.co.nz

Apache Maven – Structure Using Maven 0.9 as an example – the structure of the Maven directories www.semtech-solutions.co.nz info@semtech-solutions.co.nz

Apache Maven – Usage In terms of usage most estimates seem to agree – Maven / Ant / Eclipse are the most used www.semtech-solutions.co.nz info@semtech-solutions.co.nz

Apache Maven – Example Taking the build of hadoop-2.0.6-alpha as an example – A parent pom.xml calls module hadoop-project <modules> <module>hadoop-project</module> <module>hadoop-project-dist</module> <module>hadoop-assemblies</module> – Identifies plugins <plugin> <groupId>com.atlassian.maven.plugins</groupId> <artifactId>maven-clover2-plugin</artifactId> <version>3.0.5</version> </plugin> www.semtech-solutions.co.nz info@semtech-solutions.co.nz

Apache Maven – Example Taking the build of hadoop-2.0.6-alpha as an example – A child pom.xml – defines properties <properties> <failIfNoTests>false</failIfNoTests> <maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile> – Identifies dependencies <dependency> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-util</artifactId> <version>6.1.26</version> </dependency> – Defines profiles – Defines plugins – Defines the Build www.semtech-solutions.co.nz info@semtech-solutions.co.nz

Contact Us ● Feel free to contact us at – www.semtech-solutions.co.nz – info@semtech-solutions.co.nz ● We offer IT project consultancy ● We are happy to hear about your problems ● You can just pay for those hours that you need ● To solve your problems

Contact Us ● Feel free to contact us at – www.semtech-solutions.co.nz – info@semtech-solutions.co.nz ● We offer IT project consultancy ● We are happy to hear about your problems ● You can just pay for those hours that you need ● To solve your problems

Add a comment

Related pages

Maven – Welcome to Apache Maven

Welcome to Apache Maven. Apache Maven is a software project management and comprehension tool. ... Maven is a part of the Apache Software Foundation.
Read more

Introduction to Apache Maven 2 - IBM

Back to top. Repositories and coordinates . Maven 2 repositories store a collection of artifacts used by Maven during dependency resolution for ...
Read more

Maven – Introduction to the POM

Super POM. The Super POM is Maven's default POM. All POMs extend the Super POM unless explicitly set, meaning the configuration specified in the Super POM ...
Read more

An introduction to Maven 2 | JavaWorld

An introduction to Maven 2 ... Maven Quick Start Archetype http://maven.apache.org Read more

Introduction to Maven - Java Brains

Introduction to Maven Build Systems. This course is an introduction to the basic features of Apache Maven. You will learn what Maven is and how it helps ...
Read more

Apache Rat™ Plugin for Apache Maven – Introduction

Examples. To provide you with better understanding of some usages of the Rat Maven Plugin, you can take a look into the following examples: Basic use of ...
Read more

An introduction to Apache Maven - YouTube

A short introduction to Apache Maven, what is it and how is it used for Java based builds. How does it work and what other tools are used ?
Read more

Introduction - tomcat.apache.org

Maven says it can not access the Tomcat manager, allowing it to deploy the war. In reading the documentation of the plugin, it tells us that the default ...
Read more

Apache Any23 - Apache Any23 - Introduction

Apache Any23; Introduction; Downloads Install Documentation; Getting ... Apache Any23, Apache, the Apache feather logo, ...
Read more