packer:build

Full name:

com.github.codeteapot.maven.plugins:packer-maven-plugin:1.0.0:build

Description:

Execute Packer build command.

It not is actually executed when the previous execution on the given input directory was successfully terminated and there is not any change, unless changes are not needed. An execution failure could be not taken into account since last successful through "invalidate on failure" flag to false.

Attributes:

  • Requires a Maven project to be executed.

Optional Parameters

Name Type Since Description
<changesNeeded> boolean - Indicates that changes are needed to actually execute this plug-in command.
Default value is: true.
<except> String - Comma-separated list for "--except" argument of Packer build command, that is only present when it is specified.
<force> boolean - Determines if "--force" argument of Packer build command is present.
Default value is: false.
<inputDirectory> File - Input directory that Packer build command uses as its working directory.
Default value is: ${project.build.directory}/packer/input.
<invalidateOnFailure> boolean - Determines when a failure must be taken into account since current Packer build command execution in order to actually execute this command following times.
Default value is: true.
<only> String - Comma-separated list for "--only" argument of Packer build command, that is only present when it is specified.
<skip> boolean - Used to prevent this plug-in to be executed.
Default value is: false.
<template> String - First parameter of Packer build command, corresponding to the template file path relative to the input directory.
Default value is: template.json.
<varFiles> Set - Element-separated file paths for appending as "--var-file" argument on Packer build command.
<vars> Properties - Element-separated of property name-value pairs for appending as "--var" argument on Packer build command.

Parameter Details

<changesNeeded>

Indicates that changes are needed to actually execute this plug-in command.
  • Type: boolean
  • Required: No
  • Default: true

<except>

Comma-separated list for "--except" argument of Packer build command, that is only present when it is specified.
  • Type: java.lang.String
  • Required: No

<force>

Determines if "--force" argument of Packer build command is present.
  • Type: boolean
  • Required: No
  • Default: false

<inputDirectory>

Input directory that Packer build command uses as its working directory.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}/packer/input

<invalidateOnFailure>

Determines when a failure must be taken into account since current Packer build command execution in order to actually execute this command following times.
  • Type: boolean
  • Required: No
  • Default: true

<only>

Comma-separated list for "--only" argument of Packer build command, that is only present when it is specified.
  • Type: java.lang.String
  • Required: No

<skip>

Used to prevent this plug-in to be executed.
  • Type: boolean
  • Required: No
  • Default: false

<template>

First parameter of Packer build command, corresponding to the template file path relative to the input directory.
  • Type: java.lang.String
  • Required: No
  • Default: template.json

<varFiles>

Element-separated file paths for appending as "--var-file" argument on Packer build command.
  • Type: java.util.Set
  • Required: No

<vars>

Element-separated of property name-value pairs for appending as "--var" argument on Packer build command.
  • Type: java.util.Properties
  • Required: No