Plugin Documentation

Goals available for this plugin:

GoalDescription
j2me:jad

The WtkJad task allows to create new JAD files from scratch. In particular, it is able to update the MIDlet-Jar-Size keys automatically. Antenna library is used for this task.

j2me:obfuscate

The Obfuscate task provides a stand-alone obfuscation task

j2me:packageThe j2me:package task is an wrapper for Jar task that handles JAD files correctly. It also allows for obfuscation, preverification and signing of the generated file. Preverification can be done without WTK using ProGuard. Antenna library is used to execute WTK tasks.
j2me:preprocessThe j2me:preprocess helper to optimize generated classes.
j2me:preverifyThe preverify Mojo runs the WTK preverify command from the given J2ME SDK.

Preverification takes place in the phase process-classes, that means after Successful compilation. The MoJo takes the classes to preverify from ${project.build.outputDirectory} and places the preverified classes into the same directory. Therefore no change to the packaging phase is necessary.

Antenna library is used for this task.
j2me:run

You can start the application in the WTK emulator. Antenna library is used for this task.

j2me:sign

The WtkSign task allows to sign a jad/jar pair. In particular, it will sign the jar and add the certificate to the jad. Antenna library is used for this task.

System Requirements

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

Maven2.0
JDK1.4
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>com.pyx4me</groupId>
          <artifactId>j2me-maven-plugin</artifactId>
          <version>2.0.4</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>com.pyx4me</groupId>
        <artifactId>j2me-maven-plugin</artifactId>
        <version>2.0.4</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

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