Documente Academic
Documente Profesional
Documente Cultură
Introduction
Why Maven?
Prerequisites
Project Structure
POM
Phases
Dependency Management
Project Structure
Plugins
Inheritance
!ased on Project O"ject Model #POM$ % manage project "uild& reporting& and
documentation from a central piece of information
Why Maven?
+isi"ility
,e usa"ility
Maintaina"ility
POM
An XML file that contains information about project and configuration details
used by Maven to build the project
Contains:
-ame and +ersion
.rtifact /ype
Source 0ode 1ocations
Dependencies
Plug%ins
Profiles #.lternate "uild configurations$
Dependency Management
.ccessed over the networ2 5ou can maintain a list of remote repositories to
use in your settings6ml configuration file
>ormat = ?Major@?Minor@?Maintanence@
*.+ Synta6=
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>.0.0<!modelVersion>
<"rti#"ct$d>m"ven-tr"ining<!"rti#"ct$d>
<gro%p$d>org.lds.tr"ining<!gro%p$d>
<version>1.0<!version>
<packaging>jar</packaging>
<!project>
Project Structure#cont$
Pac2aging
Maven has ;
st
class multi%module support