2. What is Maven? A build tool A documentation tool A dependency management tool
3.
4.
5.
6.
7.
8.
9.
10.
11. Maven Architecture Local machine Remote repository or local install Plugin e.g. jar Plugin e.g. release Plugin e.g. surefire Projects to build Maven Core
12.
13.
14.
15.
16. Common way to build applications MOJO – Maven 2 Plugins Project http://mojo.codehaus.org/ plugins user e.g. mvn install M2 generate- sources compile test install deploy package integration- test Well-known phases mojo mojo mojo mojo mojo bindings
17.
18.
19.
20.
21.
22.
23. Dependency management A B C Look for A & B Artifact Repository (Local) Build C Artifact Repositories (Remote) Look for A & B <dependencies> <dependency> <groupId>com.acme</groupId> <artifactId>B</artifactId> <version> [1.0,) </version> <scope>compile</scope> </dependency> </dependencies> « any version after 1.0 »