Introduction to Apache Maven

Preview:

DESCRIPTION

A talk on Maven in Apache Asia Roadshow 2010

Citation preview

Apache maven

Introduction to

Juven Xu

www.juvenxu.com

juvenshun@gmail.com

twitter.com/juvenxu

So, What Is Maven?

BIR2D

Build

Information Aggregation

Rule

Repository

Dependency Management

We all build software

But…

Not all in the same way

People all use water

But…

Not all in the same way

The Maven Way…

I don’t like the feeling of being empty

Hey buddy, you are not alone, here we come

same informationsame place

- pom.xml- src/main/java- src/main/resources- src/test/java- src/test/resources- …

No Rule, No Game

Convention Over Configuration

LocalLocal

RemoteRemote

CentralCentral

~/.m2/repository~/.m2/repository http://repo1.maven.org/maven2/http://repo1.maven.org/maven2/

RemoteRemote

What’s missing?

No Repository Manager ?

I bet you know this

But I’m talking Nexus, no ‘one’

timebandwidthmoney

Where Am I?

a:3.1.1my-app:1.0-SNAPSHOT

c:1.1

d:1.0d:1.0

b:2.0d:0.9

BIR2D

SNAPSHOT

a timestamped version

POM is just a carrier of BIR2D

maven

report

build

deploypoll

commit

commit

commitdev

SCM Reposi tory(Subversi on)dev

dev

HudsonNexus

Continuous Integration

coming soon…coming soon…

Q&A

Recommended