Maven from Scratch to Production (.odp)
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Maven from Scratch to Production (.odp)

  • 1,641 views
Uploaded on

My presentation on Maven for the Durban Java User Group meeting, held at Thumbtribe's offices. As I'm not happy with everything as-is, my aim is to improve the presentation with an accompanying......

My presentation on Maven for the Durban Java User Group meeting, held at Thumbtribe's offices. As I'm not happy with everything as-is, my aim is to improve the presentation with an accompanying project which I need to set up in a proper environment so that it can serve as a fully functional example. To follow progress, keep an eye on the following blog post:
http://johanmynhardt.blogspot.com/2011/05/maven-from-scratch-to-production.html

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
1,641
On Slideshare
1,640
From Embeds
1
Number of Embeds
1

Actions

Shares
Downloads
10
Comments
0
Likes
1

Embeds 1

http://www.linkedin.com 1

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
  • Welcome note Introduce yourself Why maven as a topic?
  • Avoid conflict and flame-wars :P
  • Quick overview of the entire presentation's objective
  • Quick word on technologies used in the skeleton project which took some time to set up
  • The first steps in creating a maven project. Creating the child Modules are excluded. Child modules can be created using different project templates, war, ejb, ear, portlet etc. Steps excluded from setup: version control (subversion) ssh keys web config for project documentation
  • Just covering the most parts needed for enabling the project to a production environment
  • The standalone option is the easiest Setup in Glassfish requires JNDI resources being set up mail database logging config (working though) Depending on the project the default build flow is sufficient (for using the root POM and produce artifacts)
  • SCM support : CVS, Subversion, Clearcase, Perforce, Starteam, Visual Source Safe, CM Synergy, Bazaar, Mercurial
  • Release preparation sees to it that most of the build issues are sorted out before a release. (issues not discovered in a normal build) Once preparation succeeds the build is ready for release. After the release build all the documentation and relevant information will be available in a web format which can be published, using the site plugin. The site plugin enhances the developer experience in that for example, a new developer joins the team, he/she can be pointed to the project site which has all the required documentation.

Transcript

  • 1. by: Johan Mynhardt | Durban JUG Meeting | 12 May 2011|
      Maven From Scratch to Production
  • 2.
    • Ripe ground for flame-war
    • 3. Argumenting that:
      • X is better than Y.
      • 4. Y is better than X.
      • 5. I can do this with X by making use of Z.
    • A session to convince you
      What this is *not*
  • 6.
    • Set up a Maven project
    • 7. Set up the CI environment with Apache Continuum
    • 8. See everything in action!
      Objectives
  • 9.
    • Java EE 6
      • Glassfish Application Server
      • EJB 3.1
      • 10. JSF 2.0
        • PrimeFaces
    • Continuous Integration and Project Management (from development perspective)
      • Apache Continuum
      • 11. Apache Maven
      Project Technologies
  • 12.
    • Making the build process easy
    • 13. Providing a uniform build system
    • 14. Providing quality project information
    • 15. Providing guidelines for best practices development
      Maven's Objectives
      http://maven.apache.org/what-is-maven.html
  • 16.
      Setting up the Project: HelloWorld
    • Create the project root by running the following:
    • Select the number for the line matching (in this case 110):
    • This will be the root of the project, containing the web, service and assemble sub-modules (multi-module project)
      • You now have the chance to add project-specific documentation and parameters to the pom.xml which you can later on, share with you developers. The convenience is that you don't need to keep track of every aspect of the project in external documentation, as everything needed is already available.
    ~/$ cd workspace ~/workspace$ mvn archetype:generate -Dversion=1.0-SNAPSHOT -DgroupId=za.co.thumbtribe.djug -DartifactId=HelloWorld 110: remote -> maven-archetype-quickstart (An archetype which contains a sample Maven project.)
  • 17.
      Configuring the Documentation
    • Development
      • Source Code Management
      • 18. Collaboration Management
      • 19. Notification Management
      • 20. Continuous Integration
      • 21. Distribution Management
    • Other Information
  • 26.
      Setting up Continuous Integration
    • Download Apache Continuum
        • http://continuum.apache.org/download.html
      • Standalone bundled with Apache Tomcat
      • 27. WAR for deployment on an Application Server
    • Unzip to destination
    • 28. Start up Continuum
    • 29. Set up project in Continuum
      • make the root pom.xml available via web
        • file protocol supported, but needs configuration
    tar zxvf apache-continuum-1.3.7-bin.tar.gz ./continuum start
  • 30.
      Some Continuum Features
    • Tool support:
    • Build Types:
    • Distributed Builds
    • 35. Parallel Builds
  • 36.
      Seeing Continuum in Action
    • Release Stages
      • Prepare for Release
      • 37. Do the Release
    • Build Result
      • Artifacts deployed to the repository
        • If it's public, users will have access to the POMs and the resources the POM files describe.
      • Site with:
        • Generated Test Results and Project JavaDoc,
        • 38. Project information,
        • 39. Dependency Information and many more...
      • Resources deployed to staging and/or production environment
        • (dependend on setup)
  • 40.
    • Apache
      • Maven: | http://maven.apache.org/
      • 41. Continuum: | http://continuum.apache.org/
    • Glassfish
      • Application Server | http://glassfish.java.net/
    • Prime Teknoloji
      • PrimeFaces: | http://www.primefaces.org/
      References
  • 42.
      End
    Thank you for attending!
  • 43.
      • Junior Java Developer @ Thumbtribe Mobile Solutions
      • Passionate about Linux, Java and technology in general
      • Description in less than 3 lines:
        • technology++ cats++ coffee++ java++ linux++ intellij++
        • 44. eclipse-- dogs-- tea-- M$--
      • Follow on Twitter:
        • @johanmynhardt
      About the author