Maven for Dummies

4,865 views
4,349 views

Published on

A flash lecture given at the JJTV Tool Night #4 on 6 November, 2012.
The full lecture video (in Hebrew) can be found at http://www.youtube.com/watch?v=ozl6oBmAj1Y

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,865
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
34
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Maven for Dummies

  1. 1. A JJTV tool night presentationTomer Gabel, November 2012
  2. 2.  Maven is not news… … but it’s not well-understood either Let’s go back to basics
  3. 3.  A lifecycle management tool  Not just a build system Declarative  Not a script! Modular  Everything is a plugin
  4. 4. Phases Goals • process-resourcescompile • compile resources:resources compiler:compile • process-test-resources test • test-compile • test package • prepare-package resources:test- compiler:test- • package resources compile • verify deploy • install • deploy surefire:test war:war
  5. 5. Hierarchy POMDependencies Configuration
  6. 6.  XML  *sigh* … yeah Artifact descriptor Hierarchy Dependencies
  7. 7.  POMs reference POMs  Group, artifact, version Repository lookup  Local repository (“cache”)  Remote repositories
  8. 8.  Convention over configuration  Stick to the conventions if possible Keep it simple  Avoid complex setups (e.g. multiple repositories)  Avoid feature creep (stick to common plugins)
  9. 9.  Useful links  Maven home: http://maven.apache.org  Central repository: http://search.maven.org Me!  Blog: http://www.tomergabel.com  Twitter: @tomerg  LinkedIn: http://il.linkedin.com/in/tomergabel

×