Gain an understanding of Maven's dependency management and use it to organize basic and multi-module Maven projects. This short book is your quick-start tutorial for learning to use Maven. It includes inconsistently immutable collections, better array construction, and more from the latest Maven version 3.6. This second edition covers the newest in today's most popular build tool for Java development and programming.
You'll learn all about Maven and how to set it up. Firstly, you'll cover the Maven life cycle and how to effectively leverage it. Also, you'll see the basics of site plugins, generating Javadocs, test coverage/FindBugs reports, and version/release notes. Furthermore, you'll take advantage of Maven's archetypes to bootstrap new projects easily. Finally, you will learn how to integrate the Nexus repository manager with Maven release phases.
What You Will Learn
Set up your basic project in Maven Create more advanced projects Apply the Maven life cycle to your build Work with Maven archetypes and manage Maven releases Integrate with Jenkins, Eclipse, and other IDEs Carry out debugging and password encryption
Who This Book Is For
Those new to Maven or those who are familiar with Maven, but maybe not with the latest Maven 3.6 release.
I used maven infrequently and bought this to brush up my understanding of the maven basics. This book did well on the job, but the exercises didn't work smoothly.
I recommend to download the jdk version as stated in the beginning of the book, and use that for the exercises. If you don't (as I did), you will have to set the compiler source and target version to use 1.6 or higher (as is explained in a later chapter of the book, but you'll need it from the start).
Furthermore, if you want to use the pom-root archetype from codehaus, you will have to add the archetypeVersion parameter like so -DarchetypeVersion=RELEASE this takes the lates available version of the archetype. Without this parameter, maven will not find the archetype and offer you it's standard quickstart archetypes.
Finally it really only just shows you this and that about maven. It's just enough to get started, but it isn't a cookbook either.
So all in all it's a very good book to get you started with maven. :)
It is exactly how it is named. Introduces us to Maven. While working on Java projects for some time now, I never felt the need to understand Maven in depth. The surface knowledge which I gathered in my initial days always felt sufficient. However, when I sought to gain a deep understanding, I didn't have much material around worthy of my time, except for the official documentation.
However, I then came across this book. It was small, so I decided to give it a try, and I almost spent 2 hours reading. And I am glad that I did. The things I knew, I skimmed through, but gained a deeper understanding of a few technicalities that were previously opaque to me, but I also never cared about them.
I would suggest that it can be used as a good primer for getting to know Maven, or a refresher on Maven's internal technicalities. This book again reminded me of the importance of Maven to the Java ecosystem and how it solves many day-to-day stress-inducing problems for us.
P.S. - It has a section to create our own archetype, which I skimmed (almost skipped) through, as even after being a professional for so many years, I have never encountered a reason or problem that would prompt me to create my own project starter templates. Generally, Spring-Boot-Starter always does that for me. And I don't think without a definite purpose for doing that, I will ever gonna do it.
This is the book you must start with while beginning your enterprise development journey. No project is built without Maven. It's an absolute must! I find it more easy to follow books than video courses. But if you find time do the one on Pluralsight: Maven Fundamentals. It will give you a better feel of how Maven is used.