maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manfred Moser" <manf...@mosabuam.com>
Subject Re: For Android project how do I get maven to pickup all libraries in lib directory including .so files?
Date Wed, 12 Jun 2013 04:53:02 GMT
You should not do it this way....

Stephen wrote it all up nicely.

http://developer-blog.cloudbees.com/2013/03/playing-trade-offs-with-maven.html


> 0 down vote favorite
>
> I have project that compiles and links fine when using Eclipse IDE.
> This project uses some external jar files and also uses some of JNI (
> .so ) libraries.
>
> They are all located in the libs/ directory of my project. How should
> my pom.xml file look like in order for all the jar files in libs/
> folder and the shared objects are included in the APK. My libs
> directory looks something like this:
>
> libs/
> ├── mydevicelib.jar
> ├── armeabi
> │   ├── libdevice.so
> ├── armeabi-v7a
> │   ├── libdevice.so
> │   ├── libcmiris.so
> ├── libcommon.jar
>
>
> My mvn install works it creates the apk file but whenever I try to run
> it, I get  -   java.lang.ClassNotFoundException: Didn't find class XXX
> errors
>
> I am using maven 3.0.5
>
> Any sample pom.xml file that works with .so / jar file in libs
> directory would be appreciated. Unfortunately way things are setup we
> can't setup central repo where we can commit .so & jar files
>
> -Subodh
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message