Statistics
| Revision:

root / trunk / externals / bundles / rxtx / pom.xml @ 1146

History | View | Annotate | Download (5.1 kB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4

    
5
  <parent>
6
    <groupId>org.aaloa.zb4osgi</groupId>
7
    <artifactId>org.aaloa.zb4osgi.pom</artifactId>
8
    <version>10-SNAPSHOT</version>
9
    <relativePath>../../../pom/pom.xml</relativePath>
10
  </parent>
11

    
12
  <properties>
13
    <pkgArtifactId>rxtx</pkgArtifactId>
14
    <pkgVersion>2.1.7</pkgVersion>
15
    <osgiPackaging>3</osgiPackaging>
16
  </properties>
17

    
18
  <groupId>org.aaloa.zb4osgi.bundle</groupId>
19
  <artifactId>org.aaloa.zb4osgi.externals.rxtx</artifactId>
20
  <version>2.1.7-${osgiPackaging}-SNAPSHOT</version>
21
  <packaging>bundle</packaging>
22
  <name>${pkgArtifactId} Bundle Wrapper</name>
23
  <description>
24
A wrapping of the ${pkgArtifactId} version ${pkgVersion}
25
as OSGi bundle. This bundle includes also the native libraries
26
needed by the RXTX software. The native libraries are not present
27
on the JAR package of this artifact.
28
  </description>
29

    
30

    
31
  <dependencies>
32
    <dependency>
33
      <groupId>org.rxtx</groupId>
34
      <artifactId>${pkgArtifactId}</artifactId>
35
      <version>${pkgVersion}</version>
36
    </dependency>
37
  </dependencies>
38

    
39
  <build>
40
    <plugins>
41
      <plugin>
42
        <groupId>org.apache.felix</groupId>
43
        <artifactId>maven-bundle-plugin</artifactId>
44
        <version>2.0.0</version>
45
        <extensions>true</extensions>
46
        <configuration>
47
          <instructions>
48
            <Bundle-Name>${project.name}</Bundle-Name>
49
            <Bundle-Description>${project.description}</Bundle-Description>
50
            <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
51
            <!--
52
            An extract on the algorithm use by OSGi for native loading:
53
            A - The match operation is a case insensitive comparison.
54
            B -  Only select the native code clauses for which the following expressions all evaluate to true.
55
              * osname  ~= [org.osgi.framework.os.name]
56
              * processor  ~= [org.osgi.framework.processor]
57
              * osversion range includes [org.osgi.framework.os.version] or osversion is not specified
58
              * language  ~= [org.osgi.framework.language] or language is not specified
59
             C - If a parameter (i.e. osname ) is present multiple times it is evaluated as OR
60
             -->
61
            <Bundle-NativeCode>
62
              Windows/i386-mingw32/rxtxSerial.dll; Windows/i386-mingw32/rxtxParallel.dll; osname=win32; processor=x86,
63
              Windows/win64/rxtxSerial.dll; Windows/win64/rxtxParallel.dll; osname=win32; processor=x86-64,
64
              <!--
65
              We removed the following line because win64 is not defined on any OSGi specification
66
              Windows/win64/rxtxSerial.dll; Windows/win64/rxtxParallel.dll; osname=win64; processor=x86-64,
67
               -->
68
              <!--
69
              The following lines seems to break the loading of 64-bit library on some Windows 7 machine running 64 bit JVM
70
              NOTE: The error seems to be that win32 is an alias of windows7 regardless of the os architecture
71
              Windows/i386-mingw32/rxtxSerial.dll; Windows/i386-mingw32/rxtxParallel.dll; osname=win32; processor=x86-64,
72
              -->
73
              <!--
74
              We removed this line because win32 is an alias of "Windows 7" so it is duplication of first clause
75
              Windows/i386-mingw32/rxtxSerial.dll; Windows/i386-mingw32/rxtxParallel.dll; osname=Windows 7; processor=x86,
76
               -->
77
              <!--
78
              We removed this line because win32 is an alias of "Windows 7" so it is duplication of second clause
79
              Windows/win64/rxtxSerial.dll; Windows/win64/rxtxParallel.dll; osname=Windows 7; processor=x86-64,
80
               -->
81
              Linux/i686-unknown-linux-gnu/librxtxSerial.so; Linux/i686-unknown-linux-gnu/librxtxParallel.so; osname=linux; processor=x86,
82
              Linux/ia64-unknown-linux-gnu/librxtxSerial.so; osname=linux; processor=ia64,
83
              Linux/arm-unknown-linux-gnu/librxtxSerial.so; osname=linux; processor=ARM_le,
84
              Linux/x86_64-unknown-linux-gnu/librxtxSerial.so; osname=linux; processor=x86_64,
85
              Mac_OS_X/librxtxSerial.jnilib; osname=Mac OS X; processor=x86_64,
86
              Solaris/sparc-solaris/sparc32-sun-solaris2.8/librxtxSerial.so; osname=solaris; processor=sparc32,
87
              Solaris/sparc-solaris/sparc64-sun-solaris2.8/librxtxSerial.so; osname=solaris; processor=sparc64
88
            </Bundle-NativeCode>
89
            <Export-Package>
90
              gnu.io.*;version=${pkgVersion}
91
            </Export-Package>
92
            <Import-Package>*</Import-Package>
93
          </instructions>
94
        </configuration>
95
      </plugin>
96
    </plugins>
97
  </build>
98

    
99
  <scm>
100
    <connection>scm:svn:svn://svn.aaloa.org/projects/zb4osgi/trunk/externals/bundles/rxtx</connection>
101
    <developerConnection>scm:svn:svn://svn.aaloa.org/projects/zb4osgi/trunk/externals/bundles/rxtx</developerConnection>
102
    <url>http://zb4osgi.aaloa.org/projects/zb4osgi/repository/show/trunk/externals/bundles/rxtx</url>
103
  </scm>
104

    
105
</project>