Maven dependency Plugin: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 23: Line 23:
==Build Classpath==
==Build Classpath==


This is a goal that can be used to build a complete classpath, as required by the Maven project artifact to function. It proved useful in wrapper scripts, where it eliminates the need to manually specify the classpath.
This is a goal that can be used to build a complete classpath, as required by the Maven project artifact to function. The classpath is generated in the format to be used in java -cp. It proved useful in wrapper scripts, where it eliminates the need to manually specify the classpath.


<pre>
<pre>

Revision as of 17:50, 25 February 2017

External

Internal

Operations

List

mvn dependency:resolve

Tree

mvn dependency:tree

Build Classpath

This is a goal that can be used to build a complete classpath, as required by the Maven project artifact to function. The classpath is generated in the format to be used in java -cp. It proved useful in wrapper scripts, where it eliminates the need to manually specify the classpath.

mvn dependency:build-classpath 

Analyze

Optimize dependencies with

mvn dependency:analyze