Fork me on GitHub

device-package:combine-sdu

Full name:

com.cisco.maven.plugins:device-package-maven-plugin:1.0.0:combine-sdu

Description:

Combines one or more Single Deployable Unit (SDU) files built by other projects into a single SDU. When invoked on a project with 2 or more SDU files listed as dependencies, will combine them into a consolidated SDU file. This goal will automatically remove older versions if multiple versions of the same artifact are present across the various SDU files. This goal requires all project dependencies to be downloaded, and is advised to be configured in a stand-alone project with only SDU dependencies for the best build performance. The resulting SDU file will be attached to the project using the SDU classifier/extension.

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: test.
  • The goal is thread-safe and supports parallel builds.
  • Since version: 1.0.0.

Optional Parameters

Name Type Since Description
failOnEmpty boolean 1.0.0 Whether or not the build should fail if the resulting SDU is empty, or no SDU dependencies are found in the project.
Default value is: true.
sduDirectory File 1.0.0 The name of the resulting SDU file.
Default value is: ${project.build.directory}/dependency.
sduName String 1.0.0 The name of the resulting SDU file.
Default value is: ${project.artifactId}-${project.version}.sdu.

Parameter Details

failOnEmpty:

Whether or not the build should fail if the resulting SDU is empty, or no SDU dependencies are found in the project.
  • Type: boolean
  • Since: 1.0.0
  • Required: No
  • Default: true

sduDirectory:

The name of the resulting SDU file.
  • Type: java.io.File
  • Since: 1.0.0
  • Required: No
  • Default: ${project.build.directory}/dependency

sduName:

The name of the resulting SDU file.
  • Type: java.lang.String
  • Since: 1.0.0
  • Required: No
  • Default: ${project.artifactId}-${project.version}.sdu