maven-com4j-plugin

The plugin allows you to invoke tlbimp from Maven, so you can use Maven to build Java modules to interface with COM type library

License

License

Categories

Categories

Maven Build Tools Net
GroupId

GroupId

net.rgielen
ArtifactId

ArtifactId

com4j-maven-plugin
Last Version

Last Version

1.0.4
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

maven-com4j-plugin
The plugin allows you to invoke tlbimp from Maven, so you can use Maven to build Java modules to interface with COM type library
Project URL

Project URL

http://rgielen.github.io/maven-com4j-plugin/
Source Code Management

Source Code Management

https://github.com/rgielen/maven-com4j-plugin

Download com4j-maven-plugin

How to add to project

<plugin>
    <groupId>net.rgielen</groupId>
    <artifactId>com4j-maven-plugin</artifactId>
    <version>1.0.4</version>
</plugin>

Dependencies

compile (3)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 2.0
org.apache.maven : maven-project jar 3.0-alpha-2
org.jvnet.com4j : tlbimp jar 20110320

Project Modules

There are no modules declared in this project.

maven-com4j-plugin

The plugin allows you to invoke tlbimp from Maven, so you can use Maven to build Java modules to interface with COM type library.

The main enhancement over the original plugin from Jason Thrasher is the possibility to address multiple dependent typelibs at a time. This enhancement was done by Sergey Miryanov. In this particular fork, the code is enhanced to correctly support maven plugin conventions and to aim for Maven Central deployment. See below for kudos and additional references.

How to use

<plugin>
  <groupId>net.rgielen</groupId>
  <artifactId>com4j-maven-plugin</artifactId>
  <version>1.0.4</version>
  <executions>
    <execution>
      <id>generate com.foo.* package</id>
      <goals>
        <goal>gen</goal>
      </goals>
      <configuration>
        <libraries>
          <libConfig>
            <package>com.foo.xxx</package>
            <libId>FCEB4068-E49A-416e-A1FC-45695FF937E1</libId>
          </libConfig>
          <libConfig>
            <package>com.foo.zzz</package>
            <file>zzz.dll</file>
          </libConfig>
        </libraries>
      </configuration>
    </execution>
  </executions>
</plugin>

Disclaimer

The software is released under the MIT license: http://opensource.org/licenses/mit-license.php

Original author of this plugin is Jason Thrasher.

Original jar file with source code can be found here: http://download.java.net/maven/2/org/jvnet/com4j/maven-com4j-plugin/1.0/

This is a fork of Sergey Miryanov's fork to bring the plugin to a general audience: https://github.com/sergey-miryanov/maven-com4j-plugin

Versions

Version
1.0.4
1.0.3