Apache Maven Cookbook
eBook - ePub

Apache Maven Cookbook

Raghuram Bharathan

Share book
  1. 272 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Apache Maven Cookbook

Raghuram Bharathan

Book details
Book preview
Table of contents
Citations

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
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 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
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 here.
Is Apache Maven Cookbook an online PDF/ePUB?
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.

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