Book Image

Apache Maven 3 Cookbook

By : Srirangan
Book Image

Apache Maven 3 Cookbook

By: Srirangan

Overview of this book

<p>Apache Maven is more than just build automation. When positioned at the very heart of your development strategy, Apache Maven can become a force multiplier not just for individual developers but for agile teams and managers. This book covers implementation of Apache Maven with popular enterprise technologies/frameworks and introduces agile collaboration techniques and software engineering best practices integrated with Apache Maven.</p> <p>The Apache 3 Maven Cookbook is a real-world collection of step-by-step solutions for individual programmers, teams, and managers to explore and implement Apache Maven and the engineering benefits it brings into their development processes.</p> <p>This book helps with the basics of Apache Maven and with using it to implement software engineering best practices and agile team collaboration techniques. It covers a broad range of emergent and enterprise technologies in the context of Apache Maven, and concludes with recipes on extending Apache Maven with custom plugins.</p> <p>We look at specific technology implementations through Apache Maven including Java Web Applications, Enterprise Java Frameworks, Cloud Computing, Mobile / Device development, and more. We also look at Maven integration with popular IDEs including Eclipse, NetBeans, and IntelliJIDEA.</p> <p>The book is rounded off by exploring extending the Apache Maven platform by building custom plugins, integrating them with existing projects, and executing them through explicit command-line calls or with Maven Build Phases.</p>
Table of Contents (16 chapters)
Apache Maven 3 Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Setting up the Maven dashboard


The Maven dashboard plugin commits to centralizing and enabling effective sharing of information, created by a number of other Maven reporting plugins. The list of plugins supported by the dashboard is as follows:

  • Test coverage reports

  • Cobertura: Calculates the percentage of code accessed by tests

  • Clover: Calculates the test coverage metrics

  • Code quality reports

  • Checkstyle: Performs static code style analysis

  • PMD/CPD: Performs Java source code analysis and copy-paste detection

  • FindBugs: Performs Java source code analysis to detect bug patterns

  • JDepend: Calculates design quality metrics by package

  • Taglist: Performs static code analysis to find tags in the code, like @todo or //TODO tags

  • Unit testing reports

  • Surefire: Executes the unit tests of an application

Getting ready

The goals made available by the dashboard plugin are:

  • dashboard:dashboard: Generates the dashboard to aggregate all reports

  • dashboard:persist: Preserves the dashboard in a backend database

How to do it...

The...