Goals available for this plugin:
| Goal | Description |
|---|---|
| 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:package | The 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:preprocess | The j2me:preprocess helper to optimize generated classes. |
| j2me:preverify | The 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. |
The following specifies the minimum requirements to run this Maven plugin:
| Maven | 2.0 |
| JDK | 1.4 |
| Memory | No minimum requirement. |
| Disk Space | No minimum requirement. |
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"