Fork me on GitHub

Plugin Documentation

Goals available for this plugin:

Goal Description
vagrant:box-add Invokes Vagrant box add command.
vagrant:box-list Invokes Vagrant box list command.
vagrant:box-remove Invokes Vagrant box remove command.
vagrant:box-repackage Invokes Vagrant box repackage command.
vagrant:destroy Invokes Vagrant destroy command.
vagrant:halt Invokes Vagrant halt command.
vagrant:help Display help information on vagrant-maven-plugin.
Call mvn vagrant:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.
vagrant:init Invokes Vagrant init command.
vagrant:package Invokes Vagrant package command.
vagrant:provision Invokes Vagrant provision command.
vagrant:reload Invokes Vagrant reload command.
vagrant:resume Invokes Vagrant resume command.
vagrant:ssh Invokes Vagrant ssh command.
vagrant:ssh-config Invokes Vagrant ssh-config command.
vagrant:status Invokes Vagrant status command.
vagrant:suspend Invokes Vagrant suspend command.
vagrant:up Invokes Vagrant up command.

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven 2.0
JDK 1.6
Memory No minimum requirement.
Disk Space No minimum requirement.

Usage

You should specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>net.ju-n.maven.plugins</groupId>
          <artifactId>vagrant-maven-plugin</artifactId>
          <version>1.0.2</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>net.ju-n.maven.plugins</groupId>
        <artifactId>vagrant-maven-plugin</artifactId>
        <version>1.0.2</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"