Here is some general information on how to compile and build J2ME application with Maven2. For project-specific info please visit appropriate section in the project documentation.
First you need to install JavaME development toolkit. Next, you need to install Maven 2.x. You may need to configure Maven2 to use a proxy server if you need one. You definitely need to get Maven to know both delo.dcs and pyx4me repositories. The delo.dcs repository must be added as a plugin repository aswell. If you need help with Maven2 setup please see this page. A sample $HOME/.m2/settings.xml which references all these repositories:
<settings> <profiles> <profile> <id>default</id> <activation><activeByDefault>true</activeByDefault></activation> <repositories> <repository> <id>ibiblio</id> <name>www.ibiblio.org</name> <url>http://www.ibiblio.org/maven2</url> </repository> <repository> <id>baka</id> <name>baka.sk</name> <url>http://delo.dcs.fmph.uniba.sk/sioux/maven2</url> </repository> <repository> <id>pyx4me</id> <name>pyx4me.com</name> <url>http://pyx4me.com/maven2/</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>pyx4me</id> <name>pyx4me.com</name> <url>http://pyx4me.com/maven2/</url> </pluginRepository> <pluginRepository> <id>baka</id> <name>baka.sk</name> <url>http://delo.dcs.fmph.uniba.sk/sioux/maven2</url> </pluginRepository> </pluginRepositories> <properties> <smtp.host>your-smtp-host</smtp.host> <smtp.port>25</smtp.port> </properties> </profile> <profile> <id>j2me</id> <activation><activeByDefault>true</activeByDefault></activation> <properties> <j2me.sdkPath>wtk2.2 directory</j2me.sdkPath> </properties> </profile> </profiles> </settings>
Replace the wtk2.2 directory with the directory where the WTK is installed, by default /home/user/WTK2.2.
Now go into the btlib/ directory and execute the following:
mvn install
If the compiler fails with
Fatal Error: Unable to locate package java.lang in classpath or bootclasspath
then verify that there is correct wtk2.2 directory in your settings.xml.
You can now build any game/application simply by going into its directory and typing
mvn package
When the command finishes just go to the target directory and simply copy the *-me.jar file into your mobile phone using OBEX for example.