[guardian-dev] Gibberbot 0.0.9-RC4 not built properly with Maven

DF@Inbox df.inbox at gmail.com
Thu Jul 12 15:12:18 EDT 2012


Hi all

I've built Gibberbot 0.4 from the v9 branch (version 0.0.9-RC4) using
two methods: from Eclipse and with Maven (version 3).

The first, Eclipse, build functions property, but the second, Maven
one, crashes when trying to connect to a jabber server (see Appendix
for the crash stack).

I can clearly see the difference between these two package: class.dex
size is 4.1 MB in Eclipse build vs 1.1 MB in Maven, and there is
ChatSessions.ucls files presented in the in Eclipse build and is
absent in the Maven build.

Clearly, some classes did not make it into the package. I did not
modify pom.xml, except disabled the tests because they failed to run.

Can somebody advise we what's wrong with this branch Maven build, please?

Because I build it on Jenkins, I'd strongly prefer to use Maven or Ant.

Any hint is greatly appreciated. Thank you in advance.

Cheers
Dmitri
Ottawa, Ontario, Canada

Appendix. The crash stack (from logcat).

E/AndroidRuntime(  799): FATAL EXCEPTION: main
E/AndroidRuntime(  799): java.lang.NoClassDefFoundError:
info.guardianproject.otr.app.im.plugin.xmpp.XmppConnection
E/AndroidRuntime(  799): 	at
info.guardianproject.otr.app.im.engine.ConnectionFactory.createConnection(ConnectionFactory.java:56)
E/AndroidRuntime(  799): 	at
info.guardianproject.otr.app.im.service.RemoteImService.createConnection(RemoteImService.java:376)
E/AndroidRuntime(  799): 	at
info.guardianproject.otr.app.im.service.RemoteImService.autoLogin(RemoteImService.java:270)
E/AndroidRuntime(  799): 	at
info.guardianproject.otr.app.im.service.RemoteImService.onStart(RemoteImService.java:244)
E/AndroidRuntime(  799): 	at
android.app.Service.onStartCommand(Service.java:438)
E/AndroidRuntime(  799): 	at
android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2359)
E/AndroidRuntime(  799): 	at
android.app.ActivityThread.access$1900(ActivityThread.java:123)
E/AndroidRuntime(  799): 	at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)
E/AndroidRuntime(  799): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(  799): 	at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(  799): 	at
android.app.ActivityThread.main(ActivityThread.java:4424)
E/AndroidRuntime(  799): 	at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(  799): 	at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(  799): 	at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
E/AndroidRuntime(  799): 	at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
E/AndroidRuntime(  799): 	at dalvik.system.NativeStart.main(Native Method)


More information about the Guardian-dev mailing list