Avatar Maven

download Avatar Maven

of 15

  • date post

    12-May-2015
  • Category

    Technology

  • view

    1.615
  • download

    1

Embed Size (px)

description

See how Maven and the Last Airbender are similar. Quick presentation on helpful maven tips, maven 3, and mvnsh.

Transcript of Avatar Maven

  • 1.by
    James Lorenzen
    1

2. Which Resembles Maven?
2
3. Builds
Dependencies
Reporting
Convention
3
4. Frustrated?
4
5. archetype
Anti-Profiles
gmavenplugin
Tips
Create SNAPSHOT
POM is code
Maven properties
Depend Releases
dependency:tree
!maven
5
6. gmaven


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.");
}


6
Ron Alleva gmaven Example
7. Useful mvncmds
mvn pl core,netcds-ws install
mvn pl netcds-ws am install
mvn pl core amd install
7-13
8. Backwards Compatible
Been out for 16 months
Polyglot
mvnsh
Maven 3
8
9. Backwards Compatible
maven 3
maven 2
Compatibility Matrix
9
10. Groovy
Ruby
Polyglot
Scala
YAML
Polyglot Maven
10
11. project {
groupId 'foo'
artifactId 'bar'
version '1.0'
}
dependency('foo:bar:1.0')
goals('compile', 'execute')
Groovy POM
11
12. 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
12
13. 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-13
How to Speed up Maven
14. Competition
Gradle
Buildr

  • groovy

15. grails and hibernate 16. ruby14
Will Hibernate Switch to Gradle?
17. Mavens not perfect, but not many projects are. Pulling wisdom from multiple places can only improve the end solution.
15