Your SlideShare is downloading. ×
Avatar Maven
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Avatar Maven

1,591
views

Published on

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

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

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,591
On Slideshare
0
From Embeds
0
Number of Embeds
17
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • Antrun, gmaven, 1 pom = 1 artifact, war projects no src/main/java, archetype, dependency:tree
  • Transcript

    • 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
      <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>
      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
      14
      Will Hibernate Switch to Gradle?
    • 17. Maven’s not perfect, but not many projects are. Pulling wisdom from multiple places can only improve the end solution.
      15