snagjar:dependencies

Full name:

net.adamcin:snagjar-maven-plugin:1.3.4:dependencies

Description:

Snags artifacts into a sorted, unique <dependencyManagement> block in a stub maven pom file

Attributes:

  • Since version: 0.8.0.

Optional Parameters

Name Type Since Description
depsFile File 0.8.0
Write resulting dependencyManagement section to this path

Default value is: deps.xml.
User property is: depsFile.
filter String 0.8.0
applies a standard GAV (groupId:artifactId:version) filter to the snagged artifacts (format: *:*:*)

Default value is: *.
User property is: filter.
generatePoms boolean 1.2.0
Specify true to install generated "jar" pom when a parent pom is unresolvable, which omits dependencies and the parent pom reference

User property is: generatePoms.
indexFile File 0.8.0
specify the location of the generated index file, useful for subsequent shell processing of snagged artifacts

Default value is: snagIndex.txt.
User property is: indexFile.
localRepositoryPath File 0.8.0
Specify the local repository path Refer to maven-install-plugin:install-file

User property is: localRepositoryPath.
mergeVersions String 0.8.0
In the case where multiple versions of an artifact are snagged, specify "high" to include only the highest version in the dependencies, "low" to include only the lowest version in the dependencies, or "none" to include all versions in the dependencies, which would require manual correction to remove duplicates before use in a project dependency tree

Default value is: high.
User property is: mergeVersions.
recursive boolean 0.8.0
set to true to recursively scan directories for jar files

User property is: recursive.
repositoryLayout String 0.8.0
Specify the repository layout to use for local and remote repositories

User property is: repositoryLayout.
scope String 0.8.0
Set the 'scope' element for all the snagged dependencies to this value

User property is: scope.
skip boolean 0.8.0
set to true to skip mojo execution altogether

User property is: skip.
snagFile File 0.8.0
jar or directory containing jars to snag

Default value is: ..
User property is: snagFile.

Parameter Details

depsFile:

Write resulting dependencyManagement section to this path
  • Type: java.io.File
  • Since: 0.8.0
  • Required: No
  • User Property: depsFile
  • Default: deps.xml

filter:

applies a standard GAV (groupId:artifactId:version) filter to the snagged artifacts (format: *:*:*)
  • Type: java.lang.String
  • Since: 0.8.0
  • Required: No
  • User Property: filter
  • Default: *

generatePoms:

Specify true to install generated "jar" pom when a parent pom is unresolvable, which omits dependencies and the parent pom reference
  • Type: boolean
  • Since: 1.2.0
  • Required: No
  • User Property: generatePoms

indexFile:

specify the location of the generated index file, useful for subsequent shell processing of snagged artifacts
  • Type: java.io.File
  • Since: 0.8.0
  • Required: No
  • User Property: indexFile
  • Default: snagIndex.txt

localRepositoryPath:

Specify the local repository path Refer to maven-install-plugin:install-file
  • Type: java.io.File
  • Since: 0.8.0
  • Required: No
  • User Property: localRepositoryPath

mergeVersions:

In the case where multiple versions of an artifact are snagged, specify "high" to include only the highest version in the dependencies, "low" to include only the lowest version in the dependencies, or "none" to include all versions in the dependencies, which would require manual correction to remove duplicates before use in a project dependency tree
  • Type: java.lang.String
  • Since: 0.8.0
  • Required: No
  • User Property: mergeVersions
  • Default: high

recursive:

set to true to recursively scan directories for jar files
  • Type: boolean
  • Since: 0.8.0
  • Required: No
  • User Property: recursive

repositoryLayout:

Specify the repository layout to use for local and remote repositories
  • Type: java.lang.String
  • Since: 0.8.0
  • Required: No
  • User Property: repositoryLayout

scope:

Set the 'scope' element for all the snagged dependencies to this value
  • Type: java.lang.String
  • Since: 0.8.0
  • Required: No
  • User Property: scope

skip:

set to true to skip mojo execution altogether
  • Type: boolean
  • Since: 0.8.0
  • Required: No
  • User Property: skip

snagFile:

jar or directory containing jars to snag
  • Type: java.io.File
  • Since: 0.8.0
  • Required: No
  • User Property: snagFile
  • Default: .