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

 

 

 

 

 

 

 

 

 

 

-----------------------------------------------------------------------[INFO] Building Simple Hello Plugin 1.0.0 [INFO] -----------------------------------------------------------------------[INFO] [INFO] --- maven-plugin-plugin:3.2:descriptor (default-descriptor) @ gswm-plugin --[INFO] Applying mojo extractor for language: java-annotations [INFO] Mojo extractor for language: java-annotations found 0 mojo descriptors. [INFO] Applying mojo extractor for language: java [INFO] Mojo extractor for

The pom.xml with Servlet Dependency 4.0.0 com.apress.gswmbook gswm-web war 1.0-SNAPSHOT gswm-web Maven Webapp http://maven.apache.org 55 CHAPTER 6 N MAVEN

a computer system, for exclusive use by the purchaser of the work. Duplication of this publication or parts thereof is permitted only under the provisions of the Copyright Law of the Publisher’s location, in its current version, and permission for use must always be obtained from Springer. Permissions for use may be obtained through RightsLink at the Copyright Clearance Center. Violations are liable to prosecution under the respective Copyright Law. ISBN-13 (pbk): 978-1-4842-0842-7 ISBN-13

'java' version = '1.0' repositories { mavenCentral() } dependencies { testCompile group: 'junit', name: 'junit', version: '4.10' } Gradle’s DSL and its adherence to CoC results in compact build files. The first line in Listing 1-3 includes a Java plug-in for build’s use. Plug-ins in Gradle provide preconfigured tasks and dependencies to the project. The Java plug-in, for example, provides tasks for building source files, running unit tests, and installing artifacts. The dependencies section in

files to get you started on that chapter’s code listings. The chapter folders also contain a folder named final, which holds the expected end state of the project(s). Questions We welcome reader feedback. If you have any questions or suggestions, you can contact the authors at Balaji@inflinx.com or Sudha@inflinx.com. xviii CHAPTER 1 Getting Started with Maven Like other craftsmen, software developers rely on their tools to build applications. Developer’s integrated development environments

Download sample

Download