万本电子书0元读

万本电子书0元读

顶部广告

Apache Maven Cookbook电子书

售       价:¥

17人正在读 | 0人评论 9.8

作       者:Raghuram Bharathan

出  版  社:Packt Publishing

出版时间:2015-04-28

字       数:103.0万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
If you are a Java developer or a manager who has experience with Apache Maven and want to extend your knowledge, then this is the ideal book for you. Apache Maven Cookbook is for those who want to learn how Apache Maven can be used for build automation. It is also meant for those familiar with Apache Maven, but want to understand the finer nuances of Maven and solve specific problems.
目录展开

Apache Maven Cookbook

Table of Contents

Apache Maven Cookbook

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why Subscribe?

Free Access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Sections

Getting ready

How to do it…

How it works…

There's more…

See also

Conventions

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

1. Getting Started

Introduction

A brief comparison with other build automation tools

Installing Maven on Microsoft Windows

Getting ready

How to do it...

How it works...

There's more...

See also

Installing Maven on Mac OS X

Getting ready

How to do it...

How it works...

There's more...

See also

Installing Maven on Linux

Getting ready

How to do it...

How it works...

There's more...

See also

Changing the JDK used by Maven

How to do it...

How it works...

Creating a simple project with Maven

How to do it...

How it works...

See also

Building a simple project with Maven

How to do it...

How it works...

Changing the location of the Maven repository

How to do it...

How it works...

Running Maven behind an HTTP proxy server

How to do it...

How it works...

Understanding the standard directory layout

How to do it...

How it works...

2. IDE Integration with Maven

Introduction

Creating a new Maven project in Eclipse

Getting ready

How to do it...

How it works...

Importing an existing Maven project in Eclipse

How to do it...

How it works...

Creating a new Maven project in NetBeans

Getting ready

How to do it...

How it works...

Importing an existing Maven project in NetBeans

Getting ready

How to do it...

How it works...

Creating a new Maven project in IntelliJ IDEA

Getting ready

How to do it...

How it works...

There's more...

Importing an existing Maven project in IntelliJ IDEA

Getting ready

How to do it...

How it works...

There's more...

3. Maven Lifecycle

Introduction

Understanding the Maven lifecycle, phases, and goals

Getting ready

How to do it...

How it works...

Understanding the pom file

How to do it...

How it works...

Understanding Maven settings

How to do it...

How it works...

The localRepository element

The offline element

The proxies element

The mirrors element

The repositories element

The pluginRepositories element

The servers element

Understanding command-line options in Maven

Getting ready

How to do it...

How it works...

Options

Understanding Maven profiles

How to do it...

How it works...

Adding a new Maven profile

How to do it...

How it works...

See also

Activating/deactivating a Maven profile

Getting ready

How to do it...

How it works...

Using properties in Maven

How to do it...

How it works...

See also

Specifying source encoding for platform-independent builds

How to do it...

How it works...

4. Essential Maven Plugins

Introduction

Using the Maven Clean plugin

Getting ready

How to do it...

How it works...

There's more...

Cleaning automatically

Skipping the deletion of the working directory

Deleting additional folders/files

Using the Maven Compiler plugin

How to do it...

How it works...

There's more...

Changing the compiler used by the Maven Compiler plugin

How to do it...

How it works...

See also

Specifying the Java version for the Compiler plugin

How to do it...

How it works...

There's more...

Using the Maven Surefire plugin to run unit tests

How to do it...

How it works...

There's more...

Using TestNG

Skipping tests

Skipping the compilation of test sources

Using the Maven Failsafe plugin to run integration tests

How to do it...

How it works...

Using the Maven Resources plugin

How to do it...

How it works...

There's more...

Filtering using resources

How to do it...

How it works...

There's more...

Using Eclipse to run Maven goals

How to do it...

How it works...

Using NetBeans to run Maven goals

How to do it...

How it works...

Using IntelliJ IDEA to run Maven goals

How to do it...

How it works...

5. Dependency Management

Introduction

Choosing the scope of dependency

How to do it...

How it works...

See also

Getting a report of dependencies

Getting ready

How to do it...

How it works...

There's more...

Getting into dependency and avoiding dependency hell

Getting ready

How to do it...

How it works...

There's more...

Downloading dependencies into a folder

How to do it...

How it works...

There's more...

Understanding SNAPSHOT dependencies

How to do it...

How it works...

There's more...

Handling dependency download errors

How to do it...

How it works...

Detecting unused/undeclared dependencies

How to do it...

How it works...

Manually installing dependencies that are not available in a repository

How to do it...

How it works...

There's more...

Dependency management using Eclipse

How to do it...

How it works...

There's more...

Dependency management using NetBeans

How to do it...

How it works...

Dependency management using IntelliJ IDEA

How to do it...

How it works...

6. Code Quality Plugins

Introduction

Analyzing code coverage with the Maven JaCoCo plugin

Getting ready

How to do it...

How it works...

There's more...

Analyzing code coverage with the Maven Cobertura plugin

How to do it...

How it works...

There's more...

Analyzing code with the Maven PMD plugin

How to do it...

How it works...

There's more...

Analyzing code with the Maven Checkstyle plugin

How to do it...

How it works...

There's more...

Analyzing code with the Maven FindBugs plugin

How to do it...

How it works...

There's more...

Generating source references with the Maven JXR plugin

How to do it...

How it works...

There's more...

Analyzing code with the Maven SonarQube plugin

Getting ready...

How to do it...

How it works...

There's more...

7. Reporting and Documentation

Introduction

Documenting with the Maven Site plugin

Getting ready

How to do it...

How it works...

There's more...

Generating Javadocs for a site

How to do it...

How it works...

There's more...

Generating source cross-reference for a site

How to do it...

How it works...

Generating unit test reports for a site

How to do it...

How it works...

Generating code coverage reports for a site

How to do it...

How it works...

There's more...

Generating code quality reports for a site

How to do it...

How it works...

There's more...

Generating selective reports

How to do it...

How it works...

Deploying a site

Getting ready

How to do it...

How it works...

There's more...

8. Handling Typical Build Requirements

Introduction

Including and excluding additional resources

Getting ready

How to do it...

How it works...

There's more...

Including and excluding source files and folders

How to do it...

How it works...

There's more...

Configuring Maven to search for plugins

How to do it...

How it works...

There's more...

Working in offline mode

How to do it...

How it works...

There's more...

Controlling the verbosity of the Maven output

How to do it...

How it works...

There's more...

Using the Maven Help plugin

How to do it...

How it works...

There's more...

Using the Maven SCM plugin

Getting ready

How to do it...

How it works...

There's more...

Generating changelogs for a site

How to do it...

How it works...

9. Multi-module Projects

Introduction

Understanding project inheritance

Getting ready

How to do it...

How it works...

There's more...

Understanding project aggregation

How to do it...

How it works...

There's more...

Combining inheritance and aggregation

How to do it...

How it works...

There's more...

Performing multi-module dependency management

How to do it...

How it works...

There's more...

Performing multi-module plugin management

How to do it...

How it works...

There's more...

Selectively building modules

How to do it...

How it works...

There's more...

Reporting for multi-module projects

How to do it...

How it works...

There's more...

10. Java Development with Maven

Introduction

Building a JAR project

Getting ready

How to do it...

How it works...

See also

Generating an executable JAR

How to do it...

How it works...

Generating a JAR of the source code

How to do it...

How it works...

There's more...

Generating a JAR of the test classes

How to do it...

How it works...

Building a WAR project

How to do it...

How it works...

There's more...

Building an EAR project

How to do it...

How it works...

Building a pom project

How to do it...

How it works...

There's more...

Running a web project with Jetty

How to do it...

How it works...

There's more...

Running a web project with Tomcat

How to do it...

How it works...

There's more...

11. Advanced Maven Usage

Introduction

Creating an assembly

Getting ready

How to do it...

How it works...

There's more...

See also

Running a custom executable

How to do it...

How it works...

There's more...

Running an ANT task

How to do it...

How it works...

There's more...

Determining updates to Maven plugin AntRun

How to do it...

How it works...

There's more...

Determining updates to Maven dependencies

How to do it...

How it works...

There's more...

Controlling the constraints

How to do it...

How it works...

There's more...

Generating unique builds

How to do it...

How it works...

Releasing a Maven project

How to do it...

How it works...

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部