Fork me on GitHub

device-package:package

Full name:

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

Description:

Default package goal for Device Package projects (Device Profiles, Network Features, and XDE projects), to package the project contents into a JAR file with the project appropriate file extension expected by suitable platforms.

This plugin executes the maven-jar-plugin directly to handle the bulk of the project packaging, with special configuration to handle using the existing Project Manifest if one is found, instead of having the maven-jar-plugin generate its own:

<configuration>
  <archive>
    <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
  </archive>
<configuration>
If you experience a problem with the way the maven-jar-plugin is packaging the project contents, you can override the version is invoked using the mavenJarPluginVersion property. If you have a very special use case, you can explicitly configure the maven-jar-plugin to execute in your POM's <build><plugins> configuration. If this plugin already sees a main project artifact attached, it will skip execution of the maven-jar-plugin altogether.

Attributes:

  • Requires a Maven project to be executed.
  • The goal is thread-safe and supports parallel builds.
  • Since version: 1.0.0.
  • Binds by default to the lifecycle phase: package.

Optional Parameters

Name Type Since Description
createSDU boolean 1.0.0 Whether or not to create an SDU file from this project.
Default value is: false.
User property is: createSDU.
manifest String 1.0.0 (no description)
Default value is: ${project.build.outputDirectory}/META-INF/MANIFEST.MF.
User property is: manifest.
mavenJarPluginVersion String 1.0.0 This plugin executes the maven-jar-plugin to do the bulk of the project packaging, with special configuration to handle using the existing Project Manifest if one is found, instead of having the maven-jar-plugin generate its own. If you experience a problem with the plugin you can override the version that is used with this property.

If you have a very special use case, you can explicitly configure the maven-jar-plugin to execute in your POM's <build><plugins> configuration. If this plugin already sees a main project artifact attached, it will skip execution of the maven-jar-plugin altogether.
Default value is: 3.0.2.
User property is: mavenJarPluginVersion.

Parameter Details

createSDU:

Whether or not to create an SDU file from this project.
  • Type: boolean
  • Since: 1.0.0
  • Required: No
  • User Property: createSDU
  • Default: false

manifest:

(no description)
  • Type: java.lang.String
  • Since: 1.0.0
  • Required: No
  • User Property: manifest
  • Default: ${project.build.outputDirectory}/META-INF/MANIFEST.MF

mavenJarPluginVersion:

This plugin executes the maven-jar-plugin to do the bulk of the project packaging, with special configuration to handle using the existing Project Manifest if one is found, instead of having the maven-jar-plugin generate its own. If you experience a problem with the plugin you can override the version that is used with this property.

If you have a very special use case, you can explicitly configure the maven-jar-plugin to execute in your POM's <build><plugins> configuration. If this plugin already sees a main project artifact attached, it will skip execution of the maven-jar-plugin altogether.
  • Type: java.lang.String
  • Since: 1.0.0
  • Required: No
  • User Property: mavenJarPluginVersion
  • Default: 3.0.2