Maven 3… so what?
-
Upload
abel-muino -
Category
Technology
-
view
1.159 -
download
1
description
Transcript of Maven 3… so what?
Maven 3… so what?
Abel Muiñosenior consultantNilistics, Inc.January 18th, 2011
Abel Muiño
Abel Muiño
Abel Muiño
Abel Muiño
IAM
Maven1to maven2Fr
om
maven 1 maven 2 maven 3original repository layout new repository layout drops maven 1 layout
many descriptor files pom.xml, settings.xml drops profiles.xml multiprojects are an
afterthoughtadded multiprojectsembedded use is an
afterthought
added embedderremoved reporting
ad-hoc build lifecycle defined build lifecycle parallel buildsreworked the internals
fasterreworked the internals
fasterjelly script plugins java plugins same java API
Maven3UpgradeTh
e
$ mvn --versionApache Maven 3.0.1 (r1038046; 2010-11-23 11:58:32+0100)
$ mvn clean install[INFO] --------------------------------------[INFO] BUILD SUCCESS[INFO] --------------------------------------
Bigchangesso
me
$ mvn package -T2C
$ mvn site
<profile> <id>maven-3</id> <activation> <file> <exists>${basedir}</exists> </file> </activation> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>3.0-beta-3</version> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <artifactId>maven-site-plugin</artifactId> <executions> <execution> <id>attach-descriptor</id> <goals> <goal>attach-descriptor</goal> </goals> </execution> </executions> </plugin> </plugins> </build></profile>
{ }
Mav
en2
com
pati
ble
<profile> <id>maven-3</id> <activation> <file> <exists>${basedir}</exists> </file> </activation> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>3.0-beta-3</version> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <artifactId>maven-site-plugin</artifactId> <executions> <execution> <id>attach-descriptor</id> <goals> <goal>attach-descriptor</goal> </goals> </execution> </executions> </plugin> </plugins> </build></profile>
{ }
Mav
en2
com
pati
ble
<profile> <id>maven-3</id> <activation> <file> <exists>${basedir}</exists> </file> </activation> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>3.0-beta-3</version> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <artifactId>maven-site-plugin</artifactId> <executions> <execution> <id>attach-descriptor</id> <goals> <goal>attach-descriptor</goal> </goals> </execution> </executions> </plugin> </plugins> </build></profile>
{ }
Mav
en2
com
pati
ble
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>3.0-beta-3</version>
<configuration><reportPlugins>
</reportPlugins></configuration>
</plugin> </plugins></build>M
aven
3 on
ly
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>3.0-beta-3</version>
<configuration><reportPlugins>
</reportPlugins></configuration>
</plugin> </plugins></build>M
aven
3 on
ly
Plugins from old reporting section
TinyThingsTh
e
Guidance built in
I don't care ifit works on your machine
I don't care ifit works on your machine
(We are not shipping your machine)
NO profiles.xml
maven 1 maven 2 maven 3original repository layout new repository layout drops maven 1 layout
many descriptor files pom.xml, settings.xml drops profiles.xml multiprojects are an
afterthoughtadded multiprojectsembedded use is an
afterthought
added embedderremoved reporting
ad-hoc build lifecycle defined build lifecycle parallel buildsreworked the internals
fasterreworked the internals
fasterjelly script plugins java plugins same java API
maven 1 maven 2 maven 3original repository layout new repository layout drops maven 1 layout
many descriptor files pom.xml, settings.xml drops profiles.xml multiprojects are an
afterthoughtadded multiprojectsembedded use is an
afterthought
added embedderremoved reporting
ad-hoc build lifecycle defined build lifecycle parallel buildsreworked the internals
fasterreworked the internals
fasterjelly script plugins java plugins same java API
Should youuse maven3?
Should youuse maven3?
Should youuse maven3?
Should youuse maven3?
Comesnext?W
hat
Polyglot Maven
maven shell
Compatibility notes: cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html
Site plugin notes: cwiki.apache.org/MAVEN/maven-3x-and-site-plugin.html
Polyglot Maven: github.com/sonatype/polyglot-maven
Maven Shell: github.com/sonatype/mvnsh
Great Beyond: http://www.flickr.com/photos/tonyjcase/2191160470/
Dunechaser: http://www.flickr.com/photos/dunechaser/3385957499/
fedfil: http://www.flickr.com/photos/fedfil/1196374459/
eyesore9: http://www.flickr.com/photos/eyesore9/4502273643
steveIOW: http://www.flickr.com/photos/steveiow/3875381817/
Daniel Hoherd: http://www.flickr.com/photos/warzauwynn/2167374017/
James Jordan: http://www.flickr.com/photos/jamesjordan/187232931/
prettydaisies: http://www.flickr.com/photos/prettydaisies/327192177/
Hartwig HKD http://www.flickr.com/photos/h-k-d/3629569854/
Ernest Figueras: http://www.flickr.com/photos/ernestfigueras/5284736179/
Thanks for your pictures!
Used under CC license
consulting for agilesoftware developmentnilistics.net