Date post: | 12-May-2015 |
Category: |
Technology |
Upload: | jlorenzen |
View: | 1,648 times |
Download: | 1 times |
1
byJames Lorenzen
2-13
Which Resembles Maven?
3-13
Builds
Reporting
Dependencies
Convention
4-13
Frustrated?
5-13
Tips
Anti-Profile
s
Create SNAPSHOT
Depend Releases
gmaven plugin
archetype
dependency:tree !maven
POM is code
Maven properties
6-13
gmaven<configuration> <source> def file = "$pom.basedir/target/${project.artifactId}-${project.version}.${project.packaging}" def ear = new File(file) log.info("${ear?.length()}"); def maxsize = project.properties['ear.maxsize']; if (ear?.length() > maxsize?.toInteger()) { fail("EAR Exceeds maximum size allowed."); } </source></configuration>
Ron Alleva gmaven Example
Useful mvn cmds
• mvn –pl core,netcds-ws install• mvn –pl netcds-ws –am install• mvn –pl core –amd install
7-13
8-13
Maven 3
Been out for 16
months
Backwards Compatible
Polyglot
mvnsh
9-13
Backwards Compatible
maven 3maven 2
Compatibility Matrix
11-13
project { groupId 'foo' artifactId 'bar' version '1.0'}dependency('foo:bar:1.0')goals('compile', 'execute')
Groovy POM
12-13
mvnsh
• Pre-loaded shell environment• Speeds up build times• Based on Maven 3• Therefore can work with Maven 2 projects• History• Color Coded• Alias• Tab completion• Growl support
mvnsh
Jason van Zyl
“If you use mvnsh and find problems the turn around time for fixes is usually a day or two. Maven 3.x is better then any version of Maven 2.x and the ITs we have for Maven are in an independent project. That's mean we run the same body of tests across multiple versions of Maven and Maven 3.x passes far more then Maven 2.x. Maven 3.x just gets fixed faster. You would honestly be better off using the Maven Shell.”
13-13How to Speed up Maven
14-13
Competition
Gradle Buildr
• groovy• grails and hibernate
• ruby
Will Hibernate Switch to Gradle?
15-13
Maven’s not perfect, but not many projects are. Pulling wisdom from multiple places can
only improve the end solution.