Book Image

Apache Maven 3 Cookbook

By : Srirangan
Book Image

Apache Maven 3 Cookbook

By: Srirangan

Overview of this book

<p>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.</p> <p>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.</p> <p>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.</p> <p>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.</p> <p>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.</p>
Table of Contents (16 chapters)
Apache Maven 3 Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Creating centralized remote repositories


In Chapter 2, Software Engineering Techniques, we explored Dependency Management capabilities of Apache Maven in the recipe Dependency management. Apache Maven projects can be dependent on other "artifacts". These artifacts can be other projects or external libraries. Apache Maven stores all packaged artifacts in a local repository. The local repository exists on your filesystem and its location is configured in ${M2_HOME}/conf/settings.xml or ${USER_HOME}/.m2/settings.xml.

In the instances where we have dependencies that aren't available in the local repository, we see that Apache Maven automatically downloads them from the Maven Central Repository.

It is possible that our projects have unique dependencies that aren't available in the Apache Maven Central Repository . Apache Maven does let you manually add libraries into the local repository through the command line. However, to expect every project team member to manually download and install the...