Free Sample
+ Collection

Apache Maven 3 Cookbook


Over 50 recipes towards optimal Java Software Engineering with Maven 3
RRP $23.99
RRP $39.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849512442
Paperback224 pages

About This Book

  • Grasp the fundamentals and extend Apache Maven 3 to meet your needs
  • Implement engineering practices in your application development process with Apache Maven
  • Collaboration techniques for Agile teams with Apache Maven
  • Use Apache Maven with Java, Enterprise Frameworks, and various other cutting-edge technologies
  • Develop for Google Web Toolkit, Google App Engine, and Android Platforms using Apache Maven

Who This Book Is For

This book is for Java developers, teams, and managers who want to implement Apache Maven in their development process, leveraging the software engineering best practices and agile team collaboration techniques it brings along. The book is also specifically for the developer who wishes to get started in Apache Maven and use it with a range of emergent and enterprise technologies including Enterprise Java, Frameworks, Google App Engine, Android, and Scala.

Table of Contents

Chapter 1: Basics of Apache Maven
Setting up Apache Maven on Windows
Setting up Apache Maven on Linux
Setting up Apache Maven on Mac
Verifying the Apache Maven installation
Creating a new project
Compiling and testing a project
Understanding the Project Object Model
Understanding the build lifecycle
Understanding build profiles
Chapter 2: Software Engineering Techniques
Build automation
Project modularization
Dependency management
Source code quality checks
Test Driven Development
Acceptance testing automation
Deployment automation
Chapter 3: Agile Team Collaboration
Creating centralized remote repositories
Performing continuous integration with Hudson
Integrating source code management
Team integration with Apache Maven
Implementing environment integration
Distributed development
Working in offline mode
Chapter 4: Reporting and Documentation
Documenting with a Maven site
Generating Javadocs with Maven
Generating unit test reports
Generating code coverage reports
Generating code quality reports
Setting up the Maven dashboard
Chapter 5: Java Development with Maven
Building a web application
Running a web application
Enterprise Java development with Maven
Using Spring Framework with Maven
Using Hibernate persistence with Maven
Using Seam Framework with Maven
Chapter 6: Google Development with Maven
Setting up the Android development environment
Developing an Android application
Testing and debugging an Android application
Developing a Google Web Toolkit application
Testing and debugging a Google Web Toolkit application
Developing a Google App Engine application
Chapter 7: Scala, Groovy, and Flex
Integrating Scala development with Maven
Integrating Groovy development with Maven
Integrating Flex development with Maven
Chapter 8: IDE Integration
Creating a Maven project with Eclipse 3.7
Importing a Maven project with Eclipse 3.7
Creating a Maven project with NetBeans 7
Importing a Maven project with NetBeans 7
Creating a Maven project with IntelliJ IDEA 10.5
Importing a Maven project with IntelliJ IDEA 10.5
Chapter 9: Extending Apache Maven
Creating a Maven plugin using Java
Making your Java Maven plugin useful
Documenting your Maven plugin
Creating a Maven plugin using Ant
Creating a Maven plugin using JRuby

What You Will Learn

  • Install, set up, and configure Apache Maven 3 for your development architecture
  • Understand the entire Build Lifecycle Concept used in Maven 3
  • Develop Enterprise Java applications with Maven
  • Learn and implement build automation, dependency management, and test-driven development
  • Extend Maven through custom plugins developed in Java, ANT, and JRuby
  • Practice agile collaboration and implement continuous integration, centralized repositories, source code integration, team integration, and so on
  • Understand reporting project documentation and Maven dashboards
  • Integrate various development platforms such as Eclipse, NetBeans, and IntelliJIDEA IDE using Apache Maven 3
  • Use the Project Object Model for software development


In Detail

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.

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.

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.

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.

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.


Read More