Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: ce4bd153e06a46c604ea1297219d09819bbfe2a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?xml version="1.0" encoding="UTF-8"?>
<!--
  Copyright (c) 2010 Sonatype, Inc.
  All rights reserved. This program and the accompanying materials
  are made available under the terms of the Eclipse Public License v1.0
  which accompanies this distribution, and is available at
  http://www.eclipse.org/legal/epl-v10.html
-->
<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.eclipse.m2e</groupId>
    <artifactId>m2e-maven-runtime</artifactId>
    <version>1.4.0-SNAPSHOT</version>
  </parent>

  <artifactId>org.jboss.netty</artifactId>
  <packaging>bundle</packaging>

  <name>The Netty Project</name>

  <properties>
    <netty.version>3.2.5.Final</netty.version>
    <osgi-version-qualifier>Final-${maven.build.timestamp}</osgi-version-qualifier>
  </properties>

  <dependencies>
    <dependency>
      <groupId>org.jboss.netty</groupId>
      <artifactId>netty</artifactId>
      <version>${netty.version}</version>
      <optional>true</optional>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <configuration>
          <instructions>
            <Embed-Dependency>
              netty
            </Embed-Dependency>

            <_exportcontents>
              org.jboss.netty.*;version="3.2.5"
            </_exportcontents>

            <Bundle-Version>3.2.5.${osgi-version-qualifier}</Bundle-Version>
            <Bundle-Activator>org.jboss.netty.container.osgi.NettyBundleActivator</Bundle-Activator>

            <Import-Package>
              org.jboss.netty.*;version="[3.2,5)",
              org.slf4j;version="[1.5.0,2.0.0)",
              org.osgi.*,
              !*
            </Import-Package>
          </instructions>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-p2-plugin</artifactId>
      </plugin>
    </plugins>
  </build>

  <profiles>
    <profile>
      <activation>
        <property>
          <name>m2e.version</name>
        </property>
      </activation>
      <properties>
        <osgi-version-qualifier>qualifier</osgi-version-qualifier>
      </properties>
    </profile>
  </profiles>
</project>

Back to the top