Maven plug-in to run Packer commands.
<plugin>
<groupId>com.github.codeteapot.maven.plugins</groupId>
<artifactId>packer-maven-plugin</artifactId>
<version>1.0.0</version>
<executions>
<execution>
<id>packer-build</id>
<goals>
<goal>build</goal>
</goals>
<phase>install</phase>
<configuration>
<inputDirectory>${project.build.directory}/packer/input</inputDirectory>
<template>template.json</template>
</configuration>
</execution>
</executions>
</plugin>
Visit project site to see full documentation.