Introducing Maven

Introducing Maven

Balaji Varanasi, Sudha Belida

Language: English

Pages: 120

ISBN: 1484208420

Format: PDF / Kindle (mobi) / ePub


Introducing Maven is your quick start-up primer guide on Maven. This fully packed mini-book includes the new features and enhancements found in the latest version of Maven.

In this short 100-page book, you'll learn all about Maven and how to set it up to use. You'll learn about the Maven life cycle and how to effectively leverage and use it. Also, you'll learn the basics of using site plugins and generating Javadocs, test coverage/FindBugs reports, version/release notes and more. Furthermore, you'll take advantage of Maven's archetypes to bootstrap new projects easily. Finally, you will learn how to integrate Nexus repository manager with Maven release phases.

After reading and using this short book, you'll have an understanding of Maven’s dependency management and how to organize basic and multi-module Maven projects.

What you’ll learn

  • What Maven is and how it compares with Ant, Gradle and more.
  • How to set up and test Maven
  • What transitive dependencies are
  • How to create a basic Maven project
  • How set up a multi-module project
  • What is the Maven life cycle and how to leverage it
  • How to generate Javadocs, unit test reports and more with Maven
  • How to use Maven archetypes
  • How to integrate with Nexus repository manager
  • Releasing your project with Maven and more
  • How to integrate with Subversion

Who this book is for

This book is for those new to Maven. It is recommended for experienced Java coders, programmers and developers, especially those doing enterprise and Java web development using the Spring Framework.

Table of Contents

1. Maven Basics

2. Setting up Maven

3. Maven Basic Project

4. Maven Advanced Project

5. Maven Life Cycle

6. Documentation and Reporting

7. Maven Archetypes

8. Maven Release

Twitter Data Analytics (SpringerBriefs in Computer Science)

Production Volume Rendering: Design and Implementation

BIOS Disassembly Ninjutsu Uncovered (Uncovered series)

Clustering-Based Support for Software Architecture Restructuring (Software Engineering Research)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8080"] Now launch the browser and navigate to http://localhost:8080/gswm-web/. You should see the web page as shown in Figure 6-2. Figure 6-2. Web project launched in browser Multimodule Project Java Enterpise Edition (JEE) projects are often split into several modules to ease development and maintainability. Each of these modules produces artifacts such as Enterprise JavaBeans (EJBs), web services, web projects,

org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8080"] Now launch the browser and navigate to http://localhost:8080/gswm-web/. You should see the web page as shown in Figure 6-2. Figure 6-2. Web project launched in browser Multimodule Project Java Enterpise Edition (JEE) projects are often split into several modules to ease development and maintainability. Each of these modules produces artifacts such as Enterprise JavaBeans (EJBs), web services, web projects,

-----------------------------------------------------------------------[INFO] Building Maven Stub Project (No POM) 1 [INFO] -----------------------------------------------------------------------[INFO] Generating project in Interactive mode [INFO] No archetype defined. Using maven-archetype-quickstart (org.apache. 60 CHAPTER 6 N MAVEN ARCHETYPES maven.archetypes:maven-archetype-quickstart:1.0) Choose archetype:1: local -> com.apress.gswmbook:gswm-web-archetype (gswm-web-archetype) Choose a

facto standard for documenting Java code. It helps developers understand what a class or a method does. Javadoc also highlights deprecated classes, methods, or fields. Maven provides a Javadoc plug-in, which uses the Javadoc tool for generating Javadocs. Integrating the Javadoc plug-in simply involves declaring it in the reporting element of pom.xml file, as shown in Listing 7-4. Plug-ins declared in the pom reporting element are executed during site generation. Listing 7-4. The pom.xml Snippet

Spring and JBoss repositories added to the settings.xml file. In this same way, you can add to your company’s repository manager. Listing 3-1. Adding Repositories in settings.xml ....... your_company

Download sample

Download