modulemaker-maven-plugin icon indicating copy to clipboard operation
modulemaker-maven-plugin copied to clipboard

A Maven plugin for creating a module-info.class.

This plugin allows the creation of a module-info.class for projects on Java 6 to Java 8 where a module-info.java file cannot be compiled.

Example use:

<plugin>
  <groupId>codes.rafael.modulemaker</groupId>
  <artifactId>modulemaker-maven-plugin</artifactId>
  <version>LATEST</version>
  <executions>
    <execution>
      <phase>process-classes</phase>
      <goals>
        <goal>make-module</goal>
      </goals>
    </execution>
  </executions>
  <configuration>
    <name>your.module</name>
    <exports>foo.bar,qux.baz</exports>
    <requires>some.mod</requires>
  </configuration>
</plugin>

Note that all packages of the module must be named explicitly.

Under the Apache 2.0 license.

Have a look at the moditech plugin for more complex module creation.