The j2me:package task is an wrapper for Jar task that handles JAD files correctly. It also allows for obfuscation and preverification of the generated file.
Mojo Attributes:
testpackage| Name | Type | Description |
|---|---|---|
| classifier | String |
Classifier to add to the artifact generated. The artifact will be an attachment to project jar. Can be "none", See appendClassifier |
| j2meConfiguration | String |
The midlets configuration Default value is CLDC-1.1. |
| j2meProfile | String |
The midlets profile Default value is MIDP-2.0. |
| jadfile | String |
The name of the JAD file to create or update. classifier would be appended. |
| jarfile | String |
The name of the JAR file that accompanies the JAD file. classifier would be appended. |
| mavenProject | MavenProject |
The Maven project reference where the plugin is currently being executed. The default value is populated from maven. |
| midletName | String |
The midlets name Default value is ${project.name}. |
| midletVendor | String |
The midlets vendor Default value is ${project.organization.name}. |
| midletVersion | String |
The midlets version, -SNAPSHOT would be removed. Default value is ${project.version}. |
| outputDirectory | File |
Directory containing the generated JAR. |
| testClassifier | String |
Classifier to add to the test artifact generated. The artifact will be an attachment to project jar. See appendClassifier |
| Name | Type | Description |
|---|---|---|
| appendClassifier | boolean |
Set to false to exclude the classifier from the Artifact final name.
Default value is true. Default value is true. |
| archive | MavenArchiveConfiguration |
The maven archive configuration to use. |
| assembly | Assembly |
Bundle project dependency to resulting jar. Specifies list of artifact inclusions and exclusions. By default all provided and system scope dependency are excluded from final jar all other included. |
| attach | boolean |
Specifies whether or not to attach the JAR and JAD artifacts to the
project Default value is true. |
| copyJadAttributesToManifest | boolean |
Copy custom properties from the JAD into the Manifest. Default value is true. |
| dependencies | List |
Apply ProGuard classpathentry Filters to dependencies. When project compile dependency is used by ProGuard instead of WTK libs. See useWtkLibs |
| inFilter | String |
Apply ProGuard classpathentry Filters to input jar. e.g.
!**.gif,!**/awt/**,!**/tests/**' |
| jadAttributes | Map |
The task also allows to specify an arbitrary number of attributes. |
| jourConfig | String |
Reads configuration options from the given jour xml config file. |
| jourConfigTest | String |
Reads configuration options from the given jour xml config file when processing "test" artifact. |
| libs | List |
Additional -libraryjars e.g. ${java.home}/lib/rt.jar Project compile dependency used by ProGuard instead of WTK libs. See useWtkLibs |
| midlets | MIDlet[] |
Arbitrary number of MIDlets using a nested element "MIDlet". |
| obfuscate | boolean |
Specifies not to obfuscate the input class files. Default value is true. |
| preprocess | boolean |
Specifies whether or not execute ClassPreprocessor on created JAR. Default value is false. |
| proguard | boolean |
Specifies whether or not execute ProGuard on created JAR. Default value is true. |
| proguardInclude | File |
Recursively reads ProGuard configuration options from the given file
filename Default value is ${basedir}/proguard.conf. |
| proguardOptions | ProguardOptions |
ProGuard configuration options |
| proguardPreverify | boolean |
Use ProGuard preverification instead of WTK. (ProGuard option
-microedition) Default value is false. |
| proguardTestInclude | File |
Recursively reads ProGuard configuration options from the given file
filename when processing test pakage. Default value is ${basedir}/proguard-test.conf. |
| proguardTestOptions | ProguardOptions |
Additional ProGuard configuration options when processing test package. |
| projectHelper | MavenProjectHelper |
No description. |
| test | boolean |
Specifies whether or not create test JAR and JAD artifacts Default value is false. |
| testAttach | boolean |
Specifies whether or not to attach the JAR and JAD test artifacts to the
project Default value is false. |
| useWtkLibs | boolean |
Use WTK libraries or project dependency provided artifacts. See libs Default value is true. |
| wtkHome | String |
The path to the j2me sdk to use for preverifying. e.g. ${env.WTK_HOME} |
booleanNotrueorg.apache.maven.archiver.MavenArchiveConfigurationNocom.pyx4me.maven.j2me.AssemblyNobooleanNo${j2me.attach}truejava.lang.StringYesmebooleanNotruejava.util.ListNo!**.gif,!**/awt/**,!**/tests/**'
java.lang.StringNojava.lang.StringYes${j2me.midlet.configuration}CLDC-1.1java.lang.StringYes${j2me.midlet.profile}MIDP-2.0java.util.MapNojava.lang.StringYes${project.build.finalName}java.lang.StringYes${project.build.finalName}java.lang.StringNojava.lang.StringNojava.util.ListNoorg.apache.maven.project.MavenProjectYes${project}java.lang.StringYes${j2me.midlet.name}${project.name}java.lang.StringYes${j2me.midlet.vendor}${project.organization.name}java.lang.StringYes${j2me.midlet.version}${project.version}com.pyx4me.maven.j2me.MIDlet[]NobooleanNotruejava.io.FileYes${project.build.directory}booleanNo${j2me.preprocess}falsebooleanNo${j2me.obfuscate}truejava.io.FileNo${basedir}/proguard.confcom.pyx4me.maven.j2me.ProguardOptionsNobooleanNofalsejava.io.FileNo${basedir}/proguard-test.confcom.pyx4me.maven.j2me.ProguardOptionsNoorg.apache.maven.project.MavenProjectHelperNobooleanNofalsebooleanNofalsejava.lang.StringYestestbooleanNotruejava.lang.StringNo