Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Maven Essentials

You're reading from   Maven Essentials Get started with the essentials of Apache Maven and get your build automation system up and running quickly

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher
ISBN-13 9781783986767
Length 184 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Russell E Gold Russell E Gold
Author Profile Icon Russell E Gold
Russell E Gold
 Siriwardena Siriwardena
Author Profile Icon Siriwardena
Siriwardena
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Maven Essentials
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Preface
1. Apache Maven Quick Start FREE CHAPTER 2. Understanding the Project Object Model (POM) 3. Maven Archetypes 4. Maven Plugins 5. Build Lifecycles 6. Maven Assemblies 7. Best Practices Index

The assembly descriptor


The assembly descriptor is an XML-based configuration, which defines how to build an assembly and how its content should be structured.

If we go back to our previous example, the attached goal of the assembly plugin creates a binary distribution according to the assembly descriptor, both in the test and the package phases of the default Maven lifecycle. The assembly descriptors for each phase can be specified under the descriptors element. As in the case of this particular example, there are multiple descriptor elements defined under the descriptors parent element. For the package phase, it has three assembly descriptors, as shown in the following configuration:

<descriptors>
   <descriptor>src/assembly/bin.xml</descriptor>
   <descriptor>src/assembly/src.xml</descriptor>
   <descriptor>src/assembly/docs.xml</descriptor>
</descriptors>

Each descriptor element instructs the assembly plugin from where to load the descriptor...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images