Hi Damien, i just found some time to try out your hint (configuring the compile plugin to use a bootclasspath).
here is the config, that worked for me finally: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <compilerArguments> <bootclasspath>${env.WTK_HOME}/lib/cldcapi11.jar;${env.WTK_HOME}/lib/midpapi20.jar</bootclasspath> </compilerArguments> <compilerArgument>-Xlint:-serial</compilerArgument> </configuration> </plugin> also important is the -Xlint:-serial argument, because in my case my pom is inherited from a parent pom (with very strict compiler arguments, checking several warnings). but since there is no Serializable class in the J2ME API one has to leave out the check against an existing serialVersionID. thx 4 your hint regards R.C. Damien Lecan-2 wrote: > >> u might have misunderstood my problem: >> >> - in the J2ME API java.io.DataInputStream IS INCLUDED. > > Ok > You need to change compiler bootclasspath, with J2ME API classes. In > my company, we are using our own J2ME API jars, but Pyx4me provides > J2ME API jars you can add in your compiler bootclasspath. > > Example (not tested) > > <plugin> > ... > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <configuration> > <source>1.3</source> > <target>1.1</target> > <compilerArguments> > > <bootclasspath>${settings.localRepository}/org/microemu/microemu-cldc/2.0.1/microemu-cldc-2.0.1.jar</bootclasspath> > </compilerArguments> > </configuration> > <dependencies> > <dependency> > <groupId>org.microemu</groupId> > <artifactId>microemu-cldc</artifactId> > <version>2.0.1</version> > </dependency> > </dependencies> > ... > </plugin> > > Notice the path to jar relative to Maven repository and the dependency > tag which allows Maven to download used libraries in bootclasspath. > > It works with our internal J2ME jars, it should work with those from > pyx4me. > Other jars : > http://repo1.maven.org/maven2/org/microemu/ > > Good luck > > Damien Lecan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-M2--j2me-maven-plugin%3A-preverification-error-tf3975257s177.html#a11338624 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]