Plugin Documentation

Goals available for this plugin:

Goal Description
vmware:createSnapshot This goal Create a snapshot with a running virtual machine.

sample :
mvn vmware:createSnapshot -DvixLibPath=./path/to/vixlib -Dusername=myUsername -Dpassword=myPassword
-Dhost=192.168.x.x -DvmxFilepath="/path/to/the/vmx/file"
vmware:powerOff This goal Power Off a virtual machine.

sample :
mvn vmware:powerOff -DvixLibPath=./path/to/vixlib -Dusername=myUsername -Dpassword=myPassword
-Dhost=192.168.x.x -DvmxFilepath="/path/to/the/vmx/file" 
vmware:powerOn This goal Power On a virtual machine.

sample :
mvn vmware:powerOn -DvixLibPath=./path/to/vixlib -Dusername=myUsername -Dpassword=myPassword
-Dhost=192.168.x.x -DvmxFilepath="/path/to/the/vmx/file" -DwaitForTools=true
vmware:resume This goal resumes a virtual machine from a suspended state.

sample :
mvn vmware:resume -DvixLibPath=./path/to/vixlib -Dusername=myUsername -Dpassword=myPassword
-Dhost=192.168.x.x -DvmxFilepath="/path/to/the/vmx/file"
vmware:revertToSnapshot This goal revert a virtual machine to the last snapshot..

sample :
mvn vmware:revertToSnapshot -DvixLibPath=./path/to/vixlib -Dusername=myUsername -Dpassword=myPassword
-Dhost=192.168.x.x -DvmxFilepath="/path/to/the/vmx/file"
vmware:shutdown This goal shutdowns the virtual machine with a special command.

sample :
mvn vmware:shutdown -DosType=unix -DguestUsername=gusername -DguestPassword=gpwd -DvixLibPath=./path/to/vixlib -Dusername=myUsername -Dpassword=myPassword
-Dhost=192.168.x.x -DvmxFilepath="/path/to/the/vmx/file"
vmware:suspend This goal suspends the virtual machine.

sample :
mvn vmware:suspend -DvixLibPath=./path/to/vixlib -Dusername=myUsername -Dpassword=myPassword
-Dhost=192.168.x.x -DvmxFilepath="/path/to/the/vmx/file"

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>agaetis.public.maven-plugins</groupId>
          <artifactId>maven-vmware-plugin</artifactId>
          <version>1.0.0.7</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>agaetis.public.maven-plugins</groupId>
        <artifactId>maven-vmware-plugin</artifactId>
        <version>1.0.0.7</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

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