Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Apache Maven Cookbook
  • Toc
  • feedback
Apache Maven Cookbook

Apache Maven Cookbook

By : Raghuram Bharathan
4.2 (5)
close
Apache Maven Cookbook

Apache Maven Cookbook

4.2 (5)
By: Raghuram Bharathan

Overview of this book

If you are a Java developer or a manager who has experience with Apache Maven and want to extend your knowledge, then this is the ideal book for you. Apache Maven Cookbook is for those who want to learn how Apache Maven can be used for build automation. It is also meant for those familiar with Apache Maven, but want to understand the finer nuances of Maven and solve specific problems.
Table of Contents (13 chapters)
close
12
Index

Getting a report of dependencies

It is useful to get a list of dependencies for a Maven project in order to identify and troubleshoot problems. The Maven Dependency plugin helps us here.

Getting ready

To appreciate this, we need to have a fairly complex project that has several transitive dependencies. You can look at one such project at https://github.com/selendroid/demoproject-selendroid.

The project source code is available as a Git repository. A Git repository is typically downloaded by cloning it. To do this, install Git on your system. Refer to the Git setup link (https://help.github.com/articles/set-up-git/) for detailed instructions.

How to do it...

Use the following steps, to get a list of dependencies for a Maven project:

  1. Clone the open source project demoproject-selendroid.
  2. Run the following Maven goal:
    mvn dependency:list
    
  3. Observe the output as shown in the following screenshot:
    How to do it...

How it works...

The Maven Dependency plugin has several goals to obtain information regarding dependencies as...

bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete