Fork me on GitHub

hpi:bundle-plugins

Full name:

org.jenkins-ci.tools:maven-hpi-plugin:3.6:bundle-plugins

Description:

Take the current project, list up all the transitive dependencies, then copy them into a specified directory.

Used to assemble jenkins.war by bundling all the necessary plugins.

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: compile+runtime.
  • Binds by default to the lifecycle phase: prepare-package.

Optional Parameters

Name Type Since Description
ignoreOptionalDependencyConflicts boolean - By default the build will fail if one of the bundled plugins has an optional dependency on a newer version of another bundled plugin.
User property is: hpi.ignoreOptionalDependencyConflicts.
jenkinsCoreId String 1.65 Optional string that represents "groupId:artifactId" of Jenkins core jar. If left unspecified, the default groupId/artifactId pair for Jenkins is looked for.
jenkinsCoreVersionOverride String - Optional string that represents the version of Jenkins core to report plugins as requiring. This parameter is only used when unbundling functionality from Jenkins core and the version specified will be ignored if older than the autodetected version.
optionalOutputDirectory File - Where to copy optional plugins into.
Default value is: ${project.build.directory}/${project.build.finalName}/WEB-INF/optional-plugins/.
outputDirectory File - Where to copy plugins into.
Default value is: ${project.build.directory}/${project.build.finalName}/WEB-INF/plugins/.

Parameter Details

ignoreOptionalDependencyConflicts:

By default the build will fail if one of the bundled plugins has an optional dependency on a newer version of another bundled plugin.
  • Type: boolean
  • Required: No
  • User Property: hpi.ignoreOptionalDependencyConflicts

jenkinsCoreId:

Optional string that represents "groupId:artifactId" of Jenkins core jar. If left unspecified, the default groupId/artifactId pair for Jenkins is looked for.
  • Type: java.lang.String
  • Since: 1.65
  • Required: No

jenkinsCoreVersionOverride:

Optional string that represents the version of Jenkins core to report plugins as requiring. This parameter is only used when unbundling functionality from Jenkins core and the version specified will be ignored if older than the autodetected version.
  • Type: java.lang.String
  • Required: No

optionalOutputDirectory:

Where to copy optional plugins into.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}/${project.build.finalName}/WEB-INF/optional-plugins/

outputDirectory:

Where to copy plugins into.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}/${project.build.finalName}/WEB-INF/plugins/