joval
joval

Reputation: 496

maven META-INF services include still doesn't work

Last days I've been trying to create a simple app for Android using Maven and Jersey to connect to my local RESTful service.

First, I created a local client with use of Maven and it worked. Then, I ported it to an Android device and here comes the thing: it throws exceptions.

First of all, there's this issue: https://code.google.com/p/maven-android-plugin/issues/detail?id=97 which was supposed to be fixed with 3.2.1 plugin version. However, I've updated my version to such and the problem still apprears. I tried many newer versions, but the same story there. Cleaning project, restarting IDE, uninstalling application - nothing helps. Had any of you a similar problem?

Upvotes: 0

Views: 376

Answers (1)

AlexS
AlexS

Reputation: 5345

All files in META-INF-folders are ignored by JavaResourceFilter which is used by ApkBuilder.

The only way to include these files into your apk is to put them there after packaging. so if maven doesn't do it you'll have to take care yourself.

I just did a little customization to build.xml in android-sdk and it works well.

See my post.

Upvotes: 1

Related Questions