Skip to content

Commit 578276b

Browse files
committed
FELIX-6150 Converter bundle should not embed osgi functions
The embedded org.osgi.util.function has been removed from the artifact. A new artifact with the 'all' qualifier is now also built which still contains the org.osgi.util.function API for backward compatibility. git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1868805 13f79535-47bb-0310-9956-ffa450edef68
1 parent ca01491 commit 578276b

1 file changed

Lines changed: 44 additions & 19 deletions

File tree

converter/converter/pom.xml

Lines changed: 44 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
<groupId>org.apache.felix</groupId>
2424
<artifactId>felix-parent</artifactId>
2525
<version>6</version>
26-
<relativePath>../pom/pom.xml</relativePath>
26+
<relativePath>../../pom/pom.xml</relativePath>
2727
</parent>
2828

2929
<name>Apache Felix Converter</name>
3030
<artifactId>org.apache.felix.converter</artifactId>
3131
<version>1.0.11-SNAPSHOT</version>
32-
<packaging>jar</packaging>
32+
<packaging>bundle</packaging>
3333

3434
<scm>
3535
<connection>scm:svn:http://svn.apache.org/repos/asf/felix/trunk/converter/converter</connection>
@@ -57,35 +57,59 @@
5757
<plugin>
5858
<groupId>org.apache.felix</groupId>
5959
<artifactId>maven-bundle-plugin</artifactId>
60-
<version>4.2.0</version>
60+
<version>4.2.1</version>
61+
<extensions>true</extensions>
6162
<executions>
6263
<execution>
6364
<id>bundle</id>
64-
<phase>package</phase>
6565
<goals>
6666
<goal>bundle</goal>
6767
</goals>
68+
<configuration>
69+
<instructions>
70+
<Export-Package>
71+
org.osgi.util.converter;-split-package:=merge-first
72+
</Export-Package>
73+
<Import-Package>
74+
org.osgi.util.converter,
75+
*
76+
</Import-Package>
77+
</instructions>
78+
</configuration>
6879
</execution>
6980
<execution>
70-
<id>baseline</id>
81+
<id>allbundle</id>
7182
<goals>
72-
<goal>baseline</goal>
83+
<goal>bundle</goal>
7384
</goals>
85+
<configuration>
86+
<classifier>all</classifier>
87+
<instructions>
88+
<Bundle-Name>
89+
${project.name} (All In One)
90+
</Bundle-Name>
91+
<Bundle-Version>
92+
${project.version}-all
93+
</Bundle-Version>
94+
<Export-Package>
95+
org.osgi.util.converter,
96+
org.osgi.util.function
97+
</Export-Package>
98+
<Import-Package>
99+
org.osgi.util.converter,
100+
org.osgi.util.function,
101+
*
102+
</Import-Package>
103+
<Embed-Dependency>
104+
org.osgi.util.function;inline=true
105+
</Embed-Dependency>
106+
<_removeheaders>
107+
Embed-Dependency
108+
</_removeheaders>
109+
</instructions>
110+
</configuration>
74111
</execution>
75112
</executions>
76-
<configuration>
77-
<instructions>
78-
<Export-Package>
79-
org.osgi.util.function,
80-
org.osgi.util.converter;-split-package:=merge-first
81-
</Export-Package>
82-
<Import-Package>
83-
org.osgi.util.function,
84-
org.osgi.util.converter,
85-
*
86-
</Import-Package>
87-
</instructions>
88-
</configuration>
89113
</plugin>
90114
<plugin>
91115
<groupId>org.apache.rat</groupId>
@@ -107,6 +131,7 @@
107131
<groupId>org.osgi</groupId>
108132
<artifactId>org.osgi.util.function</artifactId>
109133
<version>1.0.0</version>
134+
<scope>provided</scope>
110135
</dependency>
111136

112137
<dependency>

0 commit comments

Comments
 (0)