Alan D. Cabrera wrote:
What are people doing when they need to include native libraries in their OSGi bundles using the maven plugin?
Yes for RXTX (for instant) see the attached pom.xml Didier
Regards, Alan
-- -------------------------------------------------------------- Didier DONSEZ INRIA/SARDES project, B117 655, avenue de l'Europe, Montbonnot 38334 St Ismier Cedex, France Tel : +33 4 76 61 52 95 Fax : +33 4 76 61 52 52 GPS : lat 45°13'4.1"N, lon 05°48'24.3"E, alt 220m Laboratoire LSR, Institut IMAG, Equipe ADELE Universite Joseph Fourier Bat. C, 220 rue de la Chimie, Domaine Universitaire BP 53, 38041 Grenoble Cedex 9, France Tel : +33 4 76 63 55 49 Fax : +33 4 76 63 55 50 GPS : lat 45°11'38.3"N, lon 05°46'14.7"E, alt 223m mailto:[EMAIL PROTECTED] URL: http://www-adele.imag.fr/users/Didier.Donsez Map: http://www-adele.imag.fr/users/Didier.Donsez/map/map.html --------------------------------------------------------------
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <project> <properties> <repositoryLocation>http://www-adele.imag.fr/users/Didier.Donsez/dev/felix/sandbox/</repositoryLocation> </properties> <parent> <groupId>org.apache.felix</groupId> <artifactId>felix</artifactId> <version>0.9.0-incubator-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <packaging>bundle</packaging> <name>Apache Felix RXTX library</name> <description>The RXTX library.</description> <artifactId>org.apache.felix.rxtx</artifactId> <build> <plugins> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <extensions>true</extensions> <configuration> <instructions> <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName> <Bundle-Description>The RXTX library.</Bundle-Description> <Export-Package>gnu.io;specification-version=2.1.0</Export-Package> <!-- Import-Package is no useful but avoid bnd adds <Import-Package>*</Import-Package> --> <Import-Package>org.osgi.framework</Import-Package> <Bundle-NativeCode>Windows/i386-mingw32/rxtxSerial.dll;Windows/i386-mingw32/rxtxParallel.dll;processor=x86;osname=Windows XP,Linux/x86_64-unknown-linux-gnu/librxtxSerial.so;processor=x86_64;osname=Linux,Linux/i686-unknown-linux-gnu/librxtxSerial.so;Linux/i686-unknown-linux-gnu/librxtxParallel.so;processor=x86;osname=Linux,Linux/ia64-unknown-linux-gnu/librxtxSerial.so;processor=ia64;osname=Linux,Solaris/sparc-solaris/sparc32-sun-solaris2.8/librxtxSerial.so;processor=sparc;osname=Solaris;osversion=2.8,Solaris/sparc-solaris/sparc64-sun-solaris2.8/librxtxSerial.so;processor=sparc64;osname=Solaris;osversion=2.8</Bundle-NativeCode> <Bundle-Classpath>RXTXcomm.jar</Bundle-Classpath> <Bundle-DocUrl>${repositoryLocation}${pom.artifactId}/index.html</Bundle-DocUrl> <Bundle-Url>${repositoryLocation}${pom.artifactId}/${pom.artifactId}-${pom.version}.jar</Bundle-Url> <Bundle-Source>${repositoryLocation}${pom.artifactId}/${pom.artifactId}-${pom.version}-src.jar</Bundle-Source> </instructions> </configuration> </plugin> </plugins> </build> </project>