Skip to content

Commit 68b5e47

Browse files
Add analyze-only to usage page
fix #1556
1 parent 09d5860 commit 68b5e47

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/site/apt/usage.apt.vm

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ mvn dependency:copy
212212

213213
* <<<dependency:unpack>>>
214214

215-
This goal is meant to be bound to a lifecycle and configured in your pom.xml.
215+
This goal is meant to be bound to a lifecycle and configured in your <<<pom.xml>>>.
216216
It will resolve the artifact from the repository and place a copy in the
217217
specified location. Multiple artifacts can be defined in a single execution.
218218
A default outputDirectory is specified but can be overridden for each
@@ -299,7 +299,7 @@ mvn dependency:unpack
299299

300300
* <<<dependency:unpack-dependencies>>>
301301

302-
This goal can be bound to a lifecycle and configured in your pom.xml.
302+
This goal can be bound to a lifecycle and configured in your <<<pom.xml>>>.
303303
It will resolve the dependencies (including transitive dependencies) from
304304
the repository and unpack them to the specified location.
305305

@@ -428,7 +428,7 @@ mvn dependency:unpack
428428
attachments if they exist. This is useful when you want to download source
429429
attachments to your local repository.
430430

431-
You can also define the <<<markersDirectory>>> either in the pom or settings
431+
You can also define the <<<markersDirectory>>> either in the <<<pom.xml>>> or settings
432432
to be a common location for all projects. This allows the system to resolve sources faster for dependencies that don't
433433
have the sources published. The plugin will store a marker file to describe if the sources were resolved or not. By placing
434434
them in a common location, multiple attempts to resolve non-existent sources will be avoided.
@@ -470,7 +470,7 @@ mvn dependency:purge-local-repository -Dexclude=org.apache.maven:maven-plugin-ap
470470

471471
<<Note:>> The <<<exclude>>> parameter is a comma-delimited list of
472472
groupId:artifactId pairs. It has a corresponding List-based parameter -
473-
<<<excludes>>> - for convenient use inside the POM.
473+
<<<excludes>>> - for convenient use inside the <<<pom.xml>>>.
474474

475475
Another handy aspect of this goal is the ability to wipe out artifacts at
476476
varying depths. These depths are:
@@ -509,7 +509,7 @@ mvn dependency:purge-local-repository -DresolutionFuzziness=artifactId
509509
* <<<dependency:analyze>>>
510510

511511
This goal performs byte code analysis to determine missing or unused dependencies. This goal is meant to be launched from the command line. It will fork the build and execute test-compile so there are class files to analyze.
512-
If you want to bind analyze in your pom, use the <<<dependency:analyze-only>>> instead.
512+
If you want to bind analyze in your <<<pom.xml>>>, use the <<<dependency:analyze-only>>> instead.
513513

514514
This goal can be executed from the command line:
515515

@@ -526,6 +526,11 @@ mvn dependency:analyze
526526
[WARNING] org.apache.maven.shared:maven-invoker:jar:2.0.7-SNAPSHOT:test
527527
+---+
528528

529+
* <<<dependency:analyze-only>>>
530+
531+
This goal performs bytecode analysis to determine missing or unused dependencies, similar to <<<dependency:analyze>>>.
532+
533+
It will not fork the build with test compilation, so it should be used when you want to bind the analyze goal in your <<<pom.xml>>>.
529534

530535
* <<<dependency:analyze-dep-mgt>>>
531536

0 commit comments

Comments
 (0)