
- 272 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
eBook - ePub
Apache Maven Cookbook
Tools to learn more effectively

Saving Books

Keyword Search

Annotating Text

Listen to it instead
Information
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 ...
Table of contents
- Apache Maven Cookbook
Frequently asked questions
Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Apache Maven Cookbook by Raghuram Bharathan in PDF and/or ePUB format, as well as other popular books in Computer Science & Application Development. We have over one million books available in our catalogue for you to explore.