Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E6EFE10ECF for ; Wed, 12 Jun 2013 02:21:44 +0000 (UTC) Received: (qmail 51477 invoked by uid 500); 12 Jun 2013 02:21:43 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 51260 invoked by uid 500); 12 Jun 2013 02:21:42 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 24233 invoked by uid 99); 12 Jun 2013 01:50:02 -0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of subodh.nijsure@gmail.com designates 209.85.219.44 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Ll+WiLlGsulB3fu0EYuE/mNdPmquC2WqBv/OyZIj5Gc=; b=IbWM/T/uu4W+UlyGXE0GSOkc9VhW703/9MUDlrUoQugqq0Pv2X0DPuRXIEu7o3isrk absxaNgUj5AgTMvhCnQXz5U3vB/bCT7Cr5tBrq1LCYiQ68kE/cEj0iQIir7mVyIfubTa TqihqMmNm+He7xaWQbMaWO2h0HLdgty2/b5KI20R4E01PCCN6FGbC5ntf37YuQl/4IYH jpWlPLFOpiKyvGiDWoNLnfyz4U+cVPCbFfAr2i/HGkjyC3hH2gDSFABuxOU22swcwY9r RBBVtbdw8Yd+/6AygZxY0wbUf6/VI5SXiza7AiesmjmfVoC6j6GBuwxyXfFiaDs5MbK+ OZTw== MIME-Version: 1.0 X-Received: by 10.182.44.165 with SMTP id f5mr13618403obm.26.1371001775516; Tue, 11 Jun 2013 18:49:35 -0700 (PDT) Date: Tue, 11 Jun 2013 18:49:35 -0700 Message-ID: Subject: For Android project how do I get maven to pickup all libraries in lib directory including .so files? From: Subodh Nijsure To: users@maven.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 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/ =E2=94=9C=E2=94=80=E2=94=80 mydevicelib.jar =E2=94=9C=E2=94=80=E2=94=80 armeabi =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 libdevice.so =E2=94=9C=E2=94=80=E2=94=80 armeabi-v7a =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 libdevice.so =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 libcmiris.so =E2=94=9C=E2=94=80=E2=94=80 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