You will need to create a "j2me" folder in your maven repo by hand, and in it 
these subdirectories & files (you can find the files in the WTK's "lib/" 
directory (they'll be named midpapi10.jar, etc.):

cldcapi/1.0/cldcapi-1.0.jar
cldcapi/1.1/cldcapi-1.1.jar
midpapi/1.0/midpapi-1.0.jar
midpapi/2.0/midpapi-2.0.jar
midpapi/2.1/midpapi-2.1.jar


Good luck!


-----Oorspronkelijk bericht-----
Van: Luke w [mailto:[EMAIL PROTECTED]
Verzonden: di 31-7-2007 12:29
Aan: [email protected]
Onderwerp: [mojo-user] Re: maven2 for J2ME
 
About Maven J2ME Plugin

I find this plugin , but so little document for me to set it properly
, it does not work for me. any body can help me ? Please send the
pom.xml , thx ~

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email



<project
	xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
	<modelVersion>4.0.0</modelVersion>
	<groupId>bac.clients</groupId>
	<artifactId>client-j2me</artifactId>
	<packaging>jar</packaging>
	<version>1.0.0</version>
	<name>client-j2me</name>
	
	<dependencies>	
		<dependency>
		    <groupId>j2me</groupId>
            <artifactId>midpapi</artifactId>
            <version>1.0</version>
            <scope>provided</scope>
        </dependency>	
        
		<dependency>
		    <groupId>j2me</groupId>
            <artifactId>cldcapi</artifactId>
            <version>1.0</version>
            <scope>provided</scope>
        </dependency>
        

	</dependencies>
	<build>

	<plugins>
			      
            
            <plugin>
            <!-- Create application loadable on the phone -->
                <groupId>com.pyx4me</groupId>
                <artifactId>j2me-maven-plugin</artifactId>
                <executions>
                   <execution>
                        <goals>
	                        <goal>package</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <wtkHome>${j2me.sdkPath}</wtkHome>
                    <MIDlet-1>client-j2me, , com.yourCOmpany.j2me.LoginForm</MIDlet-1>
			        <MIDlet-Name>client-j2me</MIDlet-Name>
			        <MIDlet-Vendor>Your Company</MIDlet-Vendor>
			        <MIDlet-Version>1.0.0</MIDlet-Version>
			        <MicroEdition-Configuration>CLDC-1.1</MicroEdition-Configuration>
			        <MicroEdition-Profile>MIDP-2.0</MicroEdition-Profile>
			        <!--setting proguard & obfuscate to true makes the end jar smaller-->
                    <proguard>true</proguard>
                    <obfuscate>true</obfuscate>
                    <jadAttributes>
                        <Created-By>your Name</Created-By>
                    </jadAttributes>
                    <midlets>
                        <MIDlet>
                            <name>client-j2me</name>
                            <class>com.yourCompany.j2me.LoginForm</class>
                        </MIDlet>
                    </midlets>
                </configuration>
            </plugin>		
	</plugins>
	</build>
</project>
---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to