Michael Greifeneder




     Building Software

Small Artifacts – Big Projects
Batch files
Shellscripts
Make
Ant
20
http://legendarytimes.com/images/news/pcfuture.jpg
Inhalt

    Schnelle Wiederholung
●


    Features
●


    Plugins
●


    Report
●


    Zusammenfassung
●
Quick Review

   A build tool!




A dependency management tool!             A documentation tool!




http://codehaus.org...
100000
Klassen
100 -1000
Packages
1
Projekt
http://www.maastrek-werbeartikel.de/img/artikel/big/MA800203.jpg
http://www.thecoolestgifts.com/wp-content/naughty-knot.jpg
Quick Review
    Projekt Management Tool
●


        Jedes Projekt erzeugt EIN “Artifakt”
    –

        Dependencies
    ...
http://kill.devc.at/system/files/dyi-standards.jpg
http://blogs.exist.com/oching/2008/07/04/maven-the-poss/
Archetypen
Archetype
                  mvn archetype:create ...


        My Artifact
        |-- pom.xml
        `-- src
...
Resultat
                      • src/
                         – main/
4 nested
projects                       •   java/
 ...
Build Lifecycle Phases




http://www.manuelrecena.com/docs/maven_061106.pdf
Die Wichtigsten




http://dcabasson.developpez.com/articles/java/maven/introduction-maven2/
Sonstige
    mvn eclipse:eclipse
●


    mvn idea:idea
●


    Mvn jetty:run
●


        mvn org.mortbay.jetty:maven-jetty...
Site
Reports
PMD
Source Xref
Clover




http://www.agile-swiss.org/wiki/index.php/Au_pays_des_mille_et_un_rapports_Maven
https://svn.apache.org/repos/asf/maven/plugins/tags/maven-clover-plugin-2.2/src/site/resources/images/




               ...
Versionierung




    X...Major
●


    Y...Minor
●


    Z...Revision-BuildNumber
●
                  http://www.manuelre...
Plugins




http://www.manuelrecena.com/docs/maven_061106.pdf
Dependency Analyzer




http://wiki.jfrog.org/confluence/display/DA/Home
Zusammenfassung
    Vieles gibt es “Out Of The Box”
●


    Flexibel durch Plugins
●


    Komplizierter als Ant
●


    Z...
ENDE


Danke für die Aufmerksamkeit!

    ??? Fragen ???
         Diskussion
Links
    http://maven.apache.org/
●



    https://www6.software.ibm.com/developerworks/education/j-
●

    mavenv2
    h...
JSUG - Maven by Michael Greifeneder
Upcoming SlideShare
Loading in …5
×

JSUG - Maven by Michael Greifeneder

879 views

Published on

visit http://jsug.fsinf.at

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
879
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
15
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

JSUG - Maven by Michael Greifeneder

  1. 1. Michael Greifeneder Building Software Small Artifacts – Big Projects
  2. 2. Batch files
  3. 3. Shellscripts
  4. 4. Make
  5. 5. Ant
  6. 6. 20
  7. 7. http://legendarytimes.com/images/news/pcfuture.jpg
  8. 8. Inhalt Schnelle Wiederholung ● Features ● Plugins ● Report ● Zusammenfassung ●
  9. 9. Quick Review A build tool! A dependency management tool! A documentation tool! http://codehaus.org/~vmassol/blog/javapolis2005-Maven%202.0-massol.ppt
  10. 10. 100000
  11. 11. Klassen
  12. 12. 100 -1000
  13. 13. Packages
  14. 14. 1
  15. 15. Projekt
  16. 16. http://www.maastrek-werbeartikel.de/img/artikel/big/MA800203.jpg
  17. 17. http://www.thecoolestgifts.com/wp-content/naughty-knot.jpg
  18. 18. Quick Review Projekt Management Tool ● Jedes Projekt erzeugt EIN “Artifakt” – Dependencies – Multi-Module Build – Project Object Model – pom.xml ● Deklarativ – Convention over Configruation –
  19. 19. http://kill.devc.at/system/files/dyi-standards.jpg
  20. 20. http://blogs.exist.com/oching/2008/07/04/maven-the-poss/
  21. 21. Archetypen Archetype mvn archetype:create ... My Artifact |-- pom.xml `-- src |-- main | |-- java | `-- resources |-- test | |-- java | `-- resources `-- site
  22. 22. Resultat • src/ – main/ 4 nested projects • java/ • resources/ • webapp/ • application/ • groovy/ Other – test/ projects • java/ • resources/ • cactus/ – site/
  23. 23. Build Lifecycle Phases http://www.manuelrecena.com/docs/maven_061106.pdf
  24. 24. Die Wichtigsten http://dcabasson.developpez.com/articles/java/maven/introduction-maven2/
  25. 25. Sonstige mvn eclipse:eclipse ● mvn idea:idea ● Mvn jetty:run ● mvn org.mortbay.jetty:maven-jetty-plugin:run – mvn site ●
  26. 26. Site
  27. 27. Reports
  28. 28. PMD
  29. 29. Source Xref
  30. 30. Clover http://www.agile-swiss.org/wiki/index.php/Au_pays_des_mille_et_un_rapports_Maven
  31. 31. https://svn.apache.org/repos/asf/maven/plugins/tags/maven-clover-plugin-2.2/src/site/resources/images/ Clover Integration
  32. 32. Versionierung X...Major ● Y...Minor ● Z...Revision-BuildNumber ● http://www.manuelrecena.com/docs/maven_061106.pdf
  33. 33. Plugins http://www.manuelrecena.com/docs/maven_061106.pdf
  34. 34. Dependency Analyzer http://wiki.jfrog.org/confluence/display/DA/Home
  35. 35. Zusammenfassung Vieles gibt es “Out Of The Box” ● Flexibel durch Plugins ● Komplizierter als Ant ● Zwingt zum Arbeiten in “Maven Way” ●
  36. 36. ENDE Danke für die Aufmerksamkeit! ??? Fragen ??? Diskussion
  37. 37. Links http://maven.apache.org/ ● https://www6.software.ibm.com/developerworks/education/j- ● mavenv2 http://www.mergere.com/better-build-maven ● http://www.sonatype.com/community/definitive_guide.html ● http://www.manuelrecena.com/docs/maven_061106.pdf ● http://www.jfrog.org/sites/dep-analyzer/latest/ ●

×