1 / 12

Maven for building Java applications By Nalin De Zoysa nalin-blogging.blogspot/

Maven for building Java applications By Nalin De Zoysa http://nalin-blogging.blogspot.com/. Notes. This is an interactive session Please ask questions Prerequisites Introduction to the Java Stack. Outline. Introduce maven Basic Maven Pom File and Project Structure

Télécharger la présentation

Maven for building Java applications By Nalin De Zoysa nalin-blogging.blogspot/

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Maven for building Java applications By Nalin De Zoysa http://nalin-blogging.blogspot.com/

  2. Notes • This is an interactive session • Please ask questions • Prerequisites • Introduction to the Java Stack

  3. Outline • Introduce maven • Basic Maven Pom File and Project Structure • Dependencies • Maven Central Repository • Maven Basic Operations

  4. Introduce Maven • What is maven • Apache Maven is a build tool to support the developer at the whole process of a software project. • Based on the concept of XML Project Object Model (POM). • Originally developed for building Turbine. • A small core with numerous plugins

  5. Introduce Maven • What it does • - Automate the process of the creation of the initial folder structure • - Performing the compilation and testing and the packaging and deployment • - Convention over configuration(avoid as much configuration as possible, by supplying project templates (archtypes)) • - Dependency management: - dependencies to other projects.(resolves the dependencies)

  6. Introduce Maven Cont..

  7. Maven Under the Hood jalopy site junit etc… test cactus artifact xdoc ear gump xdoclet javadoc java jar war ejb plugins maven core, jelly, werkz ant forehead classloader util launcher Maven

  8. Maven Architecture Overview Build System project.xml (pom) http maven.xml (goals) Remote Repo Local Repo maven Site The Most Important Feature Remote Repository

  9. Basic Operations - mvn install # default to run Maven #compiles, build and install the build result- mvn clean install -o # work off-line , i.e. use the local maven repository - mvn test Instead of running a full build with packaging it is also possible to just run single phases of a life cycle.

  10. Demonstration... Lets use maven demo

  11. Get More... • http://maven.apache.org • http://www.onjava.com/pub/a/onjava/2003/10/22/maven.html • http://www-106.ibm.com/developerworks/java/library/j-maven • http://www.javausergroup.at/events/maven.pdf • http://www.theserverside.com/articles/article.jsp?l=MavenMagic • http://blogs.codehaus.org/people/vmassol/archives/000080.html • http://www.javaworld.com/javaworld/jw-10-2002/jw-1011-maven.html

  12. www.hSenidbiz.com www.hSenidbiz.com

More Related