How should I set up my projects & poms?

61 views
Skip to first unread message

suitej

unread,
Sep 2, 2010, 11:33:01 AM9/2/10
to pyx4me-users
I have worked with Maven on JEE projects for a number of years but I'm
new to J2ME.
I’ve used Eclipse Pulsar to get me started but I know that I need to
automate building and testing. I’d like to use Maven for this – and I
have obviously found the pyx4me plug-ins - but I keep hitting brick
walls. The latest is this:

[proguard] Note: the configuration refers to the unknown class
'sjs.me.util.UtilTestSuite$UtilTestSuiteRunner'
[proguard] Note: there were 1 references to unknown classes.
[proguard] You should check your configuration for typos.
...
[proguard] java.io.IOException: The output jar is empty. Did you
specify the proper '-keep' options?
[proguard] at proguard.shrink.Shrinker.execute(Shrinker.java:148)
[proguard] at proguard.ProGuard.shrink(ProGuard.java:294)
[proguard] at proguard.ProGuard.execute(ProGuard.java:127)
[proguard] at proguard.ProGuard.main(ProGuard.java:499)
...

It seems that Proguard is not picking up the classes under src/main/
test, despite using the test tag:
<midlets>
<MIDlet>
<name>UtilTestSuite</name>
<!--icon>/floggy.png</icon-->
<test>true</test>
<class>sjs.me.util.UtilTestSuite$UtilTestSuiteRunner</class>
</MIDlet>
</midlets>

Ideally I’d like to create obfuscated test jars – I have a multi-
module project - that can run be in various emulators, as well as the
final application jar for distribution.

How do I configure my projects and poms to achieve this?

I'm currently using jmunit revised for test purposes but I'm willing
to refactor to cldcunit if this helps.

Thanks in advance for your help.

Manfred Moser

unread,
Sep 2, 2010, 12:24:06 PM9/2/10
to pyx4me...@googlegroups.com
I have no idea about the J2ME stuff but for proguard I had success
kicking it off and using 4.4. of proguard using this
<plugin>
<groupId>com.pyx4me</groupId>
<artifactId>proguard-maven-plugin</artifactId>
<version>2.0.4</version>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>proguard</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>net.sf.proguard</groupId>
<artifactId>proguard</artifactId>
<version>4.4</version>
<scope>runtime</scope>
</dependency>
</dependencies>
<configuration>
<proguardVersion>4.4</proguardVersion>

and so on with your proguard config setting that will be different for
you (I am using it with android and maven but I am still not getting
through all the warnings yet.. )

manfred

> --
> You received this message because you are subscribed to the Google Groups "pyx4me-users" group.
> To post to this group, send email to pyx4me...@googlegroups.com.
> To unsubscribe from this group, send email to pyx4me-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pyx4me-users?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages