Plugin Documentation

Goals available for this plugin:

GoalDescription
com4j:genMaven2 mojo for running the com4j process to produce .java files for the Java-COM bridge. No required parameters are mentioned below, but you must specify EITHER "libId" or "file" as documented below. Effectively, this is what runs to generate .java code for something like iTunes:
java -jar tlbimp.jar -o generated -p com.mycompany.com4j.itunes "C:\Program Files\iTunes\iTunes.exe"
But we're using it from a Maven2 pom.xml file instead! This allows us to automate code generation without worrying about how com4j is setup.

System Requirements

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

Maven2.0
JDK1.5
MemoryNo minimum requirement.
Disk SpaceNo 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>org.jvnet.com4j</groupId>
          <artifactId>maven-com4j-plugin</artifactId>
          <version>2.1</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>org.jvnet.com4j</groupId>
        <artifactId>maven-com4j-plugin</artifactId>
        <version>2.1</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

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