Assembling JOMC artifacts

Since version 1.2, the Maven JOMC Plugin provides a ContainerDescriptorHandler implementation for use with the Maven Assembly Plugin..

<project>
  ...
    <plugins>
      ...
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-assembly-plugin</artifactId>
        <version>2.2.1</version>
        <dependencies>
          <dependency>
            <groupId>org.jomc</groupId>
            <artifactId>maven-jomc-plugin</artifactId>
            <version>1.4</version>
          </dependency>
        </dependencies>
      </plugin>
      ...
    </plugins>
  ...
</project>

Inside the assembly descriptor, the JOMC handler can be referenced using the JOMC handler name.

<containerDescriptorHandler>
  <handlerName>JOMC</handlerName>
  <configuration>
    <modletName>Name</modletName>
    <moduleName>Name</moduleName>
  </configuration>
</containerDescriptorHandler>