I finally got it building. I modified the pom.xml file by adding the libs dependency path of jar. However, I am getting the class not found exception while running the apk on my device. This is the error -
03-30 18:09:54.007: E/AndroidRuntime(21914): FATAL EXCEPTION: main
03-30 18:09:54.007: E/AndroidRuntime(21914): Process: io.appery.project279867, PID: 21914
03-30 18:09:54.007: E/AndroidRuntime(21914): java.lang.NoClassDefFoundError: io.card.payment.CardIOActivity
03-30 18:09:54.007: E/AndroidRuntime(21914): at com.velocitywebworks.plugins.cardio.CardIOMain.onCreate(CardIOMain.java:32)
03-30 18:09:54.007: E/AndroidRuntime(21914): at android.app.Activity.performCreate(Activity.java:5231)
03-30 18:09:54.007: E/AndroidRuntime(21914): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
03-30 18:09:54.007: E/AndroidRuntime(21914): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2169)
03-30 18:09:54.007: E/AndroidRuntime(21914): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2271)
03-30 18:09:54.007: E/AndroidRuntime(21914): at android.app.ActivityThread.access$800(ActivityThread.java:144)
03-30 18:09:54.007: E/AndroidRuntime(21914): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1205)
03-30 18:09:54.007: E/AndroidRuntime(21914): at android.os.Handler.dispatchMessage(Handler.java:102)
03-30 18:09:54.007: E/AndroidRuntime(21914): at android.os.Looper.loop(Looper.java:136)
03-30 18:09:54.007: E/AndroidRuntime(21914): at android.app.ActivityThread.main(ActivityThread.java:5179)
03-30 18:09:54.007: E/AndroidRuntime(21914): at java.lang.reflect.Method.invokeNative(Native Method)
03-30 18:09:54.007: E/AndroidRuntime(21914): at java.lang.reflect.Method.invoke(Method.java:515)
03-30 18:09:54.007: E/AndroidRuntime(21914): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:732)
03-30 18:09:54.007: E/AndroidRuntime(21914): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:566)
03-30 18:09:54.007: E/AndroidRuntime(21914): at dalvik.system.NativeStart.main(Native Method)
The class io.card.payment.CardIOActivity is present in the jar file. However, if I export the project to Eclipse and directly run it without modifying any configuration, the app works perfectly. The changes which I made to POM file is this -
pre
<dependency>
<groupId>card.io</groupId>
<artifactId>card.io</artifactId>
<scope>system</scope>
<version>5.0.0</version>
<systemPath>${basedir}/libs/card.io.jar</systemPath>
</dependency>
/pre