Re: [M2] j2me-maven-plugin: preverification error

2007-06-28 Thread Damien Lecan

thx for this hint. i already tried ${settings.localRepository} but since i
use the default (and no ${settings.localRepository} is specified in my
settings.xml) maven can't resolve the property.


I'm using default local repository location, and it's working !
${settings.localRepository} can be used anywhere for me.


is it possible to pass some libs, instead of the WTK_HOME?


Yes, it's possible. The main goal of this is to precate the use of WTK
in your project and to make it more portable.
But if you need WTK elsewhere in another plugin, WTK is mandatory for
you. So you can use WK_HOME variable :)

Damien

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [M2] j2me-maven-plugin: preverification error

2007-06-28 Thread CodingPlayer

Hi Damien,

thx for this hint. i already tried ${settings.localRepository} but since i
use the default (and no ${settings.localRepository} is specified in my
settings.xml) maven can't resolve the property.


and the second reason why i didn't investigate more time to get rid of the
${env.WTK_HOME} variable, is that one needs to specify the WTK_HOME for the
j2me-maven-plugin anyway.


com.pyx4me
    j2me-maven-plugin
2.0.1



package




CLDC-1.1
MIDP-2.0
true
${env.WTK_HOME}  

proguard.conf
true
true

...



...





is it possible to pass some libs, instead of the WTK_HOME?

AFAIK the plugin also needs an executable for the preverification.

regards
R.C.


Damien Lecan-2 wrote:
> 
>>
>> 
>>
>> ${env.WTK_HOME}/lib/cldcapi11.jar;${env.WTK_HOME
>> }/lib/midpapi20.jar
>> 
>>
> 
> Glad to see that working.
> 
> At least, if you have an internal maven repository, you might have a more
> portable build system.
> You could deploy cldcapi11.jar and midpapi20.jar into your internal
> repository, and then use combination of
> ${settings.localRepository}/path/to/dependency
> and dependency declaration.
> 
> This is how we do where I'm working. Nothing more than Maven has be
> installed to develop J2ME applications (no more wtk installation)
> 
> 
> Damien
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-M2--j2me-maven-plugin%3A-preverification-error-tf3975257s177.html#a11339623
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [M2] j2me-maven-plugin: preverification error

2007-06-28 Thread Damien Lecan




${env.WTK_HOME}/lib/cldcapi11.jar;${env.WTK_HOME
}/lib/midpapi20.jar




Glad to see that working.

At least, if you have an internal maven repository, you might have a more
portable build system.
You could deploy cldcapi11.jar and midpapi20.jar into your internal
repository, and then use combination of
${settings.localRepository}/path/to/dependency
and dependency declaration.

This is how we do where I'm working. Nothing more than Maven has be
installed to develop J2ME applications (no more wtk installation)


Damien


Re: [M2] j2me-maven-plugin: preverification error

2007-06-28 Thread CodingPlayer

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:


org.apache.maven.plugins
maven-compiler-plugin



${env.WTK_HOME}/lib/cldcapi11.jar;${env.WTK_HOME}/lib/midpapi20.jar

-Xlint:-serial



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)
> 
> 
> ...
>   org.apache.maven.plugins
>   maven-compiler-plugin
>   
>   1.3
>   1.1
>   
>   
> ${settings.localRepository}/org/microemu/microemu-cldc/2.0.1/microemu-cldc-2.0.1.jar
>   
>   
>   
>   
>   org.microemu
>   microemu-cldc
>   2.0.1
>   
>   
> ...
>  
> 
> 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]



Re: [M2] j2me-maven-plugin: preverification error

2007-06-26 Thread CodingPlayer

thx, i'll try this out very soon, and let u know if it worked.


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)
> 
> 
> ...
>   org.apache.maven.plugins
>   maven-compiler-plugin
>   
>   1.3
>   1.1
>   
>   
> ${settings.localRepository}/org/microemu/microemu-cldc/2.0.1/microemu-cldc-2.0.1.jar
>   
>   
>   
>   
>   org.microemu
>   microemu-cldc
>   2.0.1
>   
>   
> ...
>  
> 
> 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#a11302366
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [M2] j2me-maven-plugin: preverification error

2007-06-25 Thread Damien Lecan

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)


...
org.apache.maven.plugins
maven-compiler-plugin

1.3
1.1


${settings.localRepository}/org/microemu/microemu-cldc/2.0.1/microemu-cldc-2.0.1.jar




org.microemu
microemu-cldc
2.0.1


...


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]



Re: [M2] j2me-maven-plugin: preverification error

2007-06-25 Thread CodingPlayer

Hi Damien,

u might have misunderstood my problem:

- in the J2ME API java.io.DataInputStream IS INCLUDED.

- the problem is that the J2ME is derived from an old JDK 1.1 (just slightly
changed), and therefore the inheritence structure for the
java.io.DataInputStream (in J2ME) is:

java.lang.Object
   |
   +java.io.InputStream
   |
   +java.io.DataInputStream


but in the JDK 1.3 (which is usually the source version):

java.lang.Object
   |
   +java.io.InputStream
   |
   +java.io.FilterInputStream
   |
   +java.io.DataInputStream

and actually the problem is, that the plugin seems to use 1.3 to compile the
classes, but can not run a pre-verification, since the
java.io.FilterInputStream is missing.

hope that clarifies my problem


R.C.



Damien Lecan-2 wrote:
> 
> Hello,
> 
>> i'm using a java.io.DataInputStream in my application, which is derived
>> from:
>> So how can i tell the maven-compile-plugin, to use the J2ME API insteaed
>> of
>> JDK?
>> (When compiling with my old eclipseME-plugin, everything works fine, for
>> JDK
>> 1.3)
> 
> Your question is not clear :)
> 
> You want to use java.io.DataInputStream, available only in J2SE API
> but at the same time you want compile with J2ME API.
> 
> What do you want to do ?
> 
> Damien
> 
> -
> 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#a11289592
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [M2] j2me-maven-plugin: preverification error

2007-06-25 Thread Damien Lecan

Hello,


i'm using a java.io.DataInputStream in my application, which is derived
from:
So how can i tell the maven-compile-plugin, to use the J2ME API insteaed of
JDK?
(When compiling with my old eclipseME-plugin, everything works fine, for JDK
1.3)


Your question is not clear :)

You want to use java.io.DataInputStream, available only in J2SE API
but at the same time you want compile with J2ME API.

What do you want to do ?

Damien

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[M2] j2me-maven-plugin: Configuration

2007-06-25 Thread CodingPlayer

Hi,

since i tried the whole day, to get my J2ME application running using the
j2me-maven-plugin to create the JAR and the JAD file, and didn't succeed, i
would love if anyone using this plugin could post a working configuration
here.

finally i had my application running in the emulator, and on one mobile
phone, but some other mobile phones couldn't start the application.


many thanks
R.C.
-- 
View this message in context: 
http://www.nabble.com/-M2--j2me-maven-plugin%3A-Configuration-tf3976742s177.html#a11288115
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[M2] j2me-maven-plugin: preverification error

2007-06-25 Thread CodingPlayer

Hi,

i just try to get my J2ME application running under Maven2.

here is my pom:

...
  
1.3
1.1
  

   .

com.pyx4me
j2me-maven-plugin
2.0.1



package





C:\Programme\Java\J2ME
proguard.conf
true
false

   
${project.organization.name}
...



MGBL

/img/logo.png

at.researchstudio.sat.mgbl.AheadOfTheGame






i get the following error:

Error preverifying class at.researchstudio.sat.mgbl.model.Settings
VERIFIER ERROR at/researchstudio/sat/mgbl/model/Settings.([B)V:
Cannot find class java/io/FilterInputStream


i'm using a java.io.DataInputStream in my application, which is derived
from:

Object -> InputStream -> FilterInputStream  (in JDK 1.3) but only
Object -> InputStream   (in J2ME)


So how can i tell the maven-compile-plugin, to use the J2ME API insteaed of
JDK?

(When compiling with my old eclipseME-plugin, everything works fine, for JDK
1.3)

thx 4 help
R.C.


-- 
View this message in context: 
http://www.nabble.com/-M2--j2me-maven-plugin%3A-preverification-error-tf3975257s177.html#a11284159
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: J2me maven plugin

2006-09-18 Thread Milos Kleint

most probably by using profiles. You would add plugin configurations
for different devices and then do a specific binary by activating a
certain profiles.

AFAIK what the netbeans j2me projects do is just about that. I've done
some basic evaluation of this nb project type to figure out if similar
results could be achieved using maven. My idea is that yes, it's
possible but one still won't get any UI support in netbeans for that
as the mobility pack doesn't expose any APIs that maven projects could
plug into. At that point I stopped caring, I don't do any j2me
development anyway, was researching for future features of mevenide
module for netbeans.

Regards

Milos


PS: is you get something working that's a maven equivalent to the
netbeans mobility projects, please let me know. it would be
interesting to show such setup to the netbeans mobility people.

On 9/16/06, Srepfler Srgjan <[EMAIL PROTECTED]> wrote:

Frank Seidinger wrote:
> Vandermi Joao da Silva wrote:
>
>> Is there some plugin for J2ME?
>> If that exist plugin ,is possible create a file jad to project J2me?
>> I see one plugin in mojo site but the URL is down.
>>
>>
>
> Dear Vandermi,
>
> I've created a j2me plugin for maven2. Actually it does excactly what your
> are looking for. It preverifies your classes and creates a java descriptor
> after packaging your jar. The manifest entries are generated through
> configuration.
>
> The plugin is currently in the mojo-sandbox on the codehaus site. You can
> find the plugins documentation at:
>
> http://mojo.codehaus.org/j2me-maven-plugin
>
> If you have any questions regarding the plugin, please feel free email or
> post me,
>
> Kind regards,
>
> Frank Seidinger
>
>
Hi Frank,
I've noticed that the netbeas IDE now features some sort of a
preprocessor that allows multiple jar file outputs (in order to tackle
the device fragmentation issue). Can your plugin use this preprocessor
(I don't know if it's a part of the standard j2me sdk)? If so how do you
tackle the "one artifact per module" issue as effectually one source
code base could generate more then one artifact?
Thanks, Srgjan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: J2me maven plugin

2006-09-16 Thread Srepfler Srgjan

Frank Seidinger wrote:

Vandermi Joao da Silva wrote:
  

Is there some plugin for J2ME?
If that exist plugin ,is possible create a file jad to project J2me?
I see one plugin in mojo site but the URL is down.




Dear Vandermi,

I've created a j2me plugin for maven2. Actually it does excactly what your
are looking for. It preverifies your classes and creates a java descriptor
after packaging your jar. The manifest entries are generated through
configuration.

The plugin is currently in the mojo-sandbox on the codehaus site. You can
find the plugins documentation at:

http://mojo.codehaus.org/j2me-maven-plugin

If you have any questions regarding the plugin, please feel free email or
post me,

Kind regards,

Frank Seidinger

  

Hi Frank,
I've noticed that the netbeas IDE now features some sort of a 
preprocessor that allows multiple jar file outputs (in order to tackle 
the device fragmentation issue). Can your plugin use this preprocessor 
(I don't know if it's a part of the standard j2me sdk)? If so how do you 
tackle the "one artifact per module" issue as effectually one source 
code base could generate more then one artifact?

Thanks, Srgjan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: J2me maven plugin

2006-06-27 Thread Frank Seidinger


Vandermi Joao da Silva wrote:
> 
> Is there some plugin for J2ME?
> If that exist plugin ,is possible create a file jad to project J2me?
> I see one plugin in mojo site but the URL is down.
> 

Dear Vandermi,

I've created a j2me plugin for maven2. Actually it does excactly what your
are looking for. It preverifies your classes and creates a java descriptor
after packaging your jar. The manifest entries are generated through
configuration.

The plugin is currently in the mojo-sandbox on the codehaus site. You can
find the plugins documentation at:

http://mojo.codehaus.org/j2me-maven-plugin

If you have any questions regarding the plugin, please feel free email or
post me,

Kind regards,

Frank Seidinger

-- 
View this message in context: 
http://www.nabble.com/J2me-maven-plugin-tf1639264.html#a5062813
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [mojo-dev] Re: [mojo-scm] [1975] trunk/mojo/mojo-sandbox/j2me-maven-plugin/pom.xml: adjusted pom for webdav site deployment

2006-06-21 Thread jerome lacoste

On 6/21/06, Frank Seidinger <[EMAIL PROTECTED]> wrote:

Am Mittwoch, 21. Juni 2006 11:20 schrieb jerome lacoste:
> Make sure you have the latest mojo-sandbox pom and remove the
>  and  section

If I'm right that would be '2-SNAPSHOT'. This was already in the pom.
The other sections I've removed. Before checkin, would you mind to have
a checking look at it? The current version is attached to this email.


You can :

- remove the section related to wagon-webdav

- maybe use 1.0-SNAPSHOT for versionning. That's the usual around
here. I did the same mistake some months ago. :)



Some other plugins I've checked, don't have an  section in
their pom. Is it needed?



the  should be built correctly if the correct URL is in one of
the parent(s). So you can probably remove it.

use mvn help:effective-pom to see what  is auto-identified.



And maybe you could answer me a final question. I've successfully
deployed the plugin site to:

http://mojo.codehaus.org/j2me-maven-plugin/

and want it to get listed on the main site. Do I have to edit the main
index file by myself or is there someone maintaining this file?


edit the mojo-site/src/site files, make the commit and deploy yourself :)

Jerome

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



J2me maven plugin

2006-05-17 Thread Vandermi Joao da Silva
I have a  maven2 project using J2me,  but I do not to make preverify in my .jar.
Then,  the jar not work in my device.
 Somebody can help me? 
Is there some plugin for J2ME?
If that exist plugin ,is possible create a file jad to project J2me?
I see one plugin in mojo site but the URL is down.

Best Regards
 
 

 

 

Vandermi Silva
R&D MAO - Core Engines  

BenQ Eletroeletrônica Ltda. 

 

TEL +55(92) 2127-8015
Mobile: +55(92) 8125-2248
FAX +55(92) 2127-8102
[EMAIL PROTECTED]
www.BenQMobile.com
Av. Djalma Batista, 536 - São Geraldo 

Manaus-AM
Brasil