diff options
author | Wu, Xiaokai (Marvin) <marvinwu@ea.com> | 2021-08-03 11:37:43 +0200 |
---|---|---|
committer | Norbert Kalmar <nkalmar@apache.org> | 2021-08-03 11:37:43 +0200 |
commit | 9a5da5f9a023e53bf339748b5b7b17278ae36475 (patch) | |
tree | 16d439c5308e43f8fcf9e4fe6c637bf0ac51069d /zookeeper-jute | |
parent | b05ea1a8454d806394e1ecdfca550e8c709d4c21 (diff) | |
download | zookeeper-9a5da5f9a023e53bf339748b5b7b17278ae36475.tar.gz |
ZOOKEEPER-4331: add headers back in osgi artifact
Following up https://github.com/apache/zookeeper/pull/1722, I'm applying the change on master instead of 3.5.x as advised.
As an alternative to https://github.com/apache/zookeeper/pull/1726, this change employs bundle plugin to build another artifact of classifier "osgi".
The advantage would be bundle plugin remains employed to maintain the topology of versioned packages, and the original artifact without classifier is left untouched.
The disadvantage would be we've one more artifact delivered in this project.
```
$ ls zookeeper-server/target/ | grep jar$
zookeeper-3.5.9.jar
zookeeper-3.5.9-javadoc.jar
zookeeper-3.5.9-osgi.jar
zookeeper-3.5.9-sources.jar
zookeeper-3.5.9-tests.jar
```
Author: Wu, Xiaokai (Marvin) <marvinwu@ea.com>
Reviewers: Enrico Olivelli <eolivelli@apache.org>, Norbert Kalmar <nkalmar@apache.org>
Closes #1727 from bigmarvin/ZOOKEEPER-4331/add-new-osgi-artifact
Diffstat (limited to 'zookeeper-jute')
-rwxr-xr-x | zookeeper-jute/pom.xml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/zookeeper-jute/pom.xml b/zookeeper-jute/pom.xml index e6d4e6abe..1e4d7f18b 100755 --- a/zookeeper-jute/pom.xml +++ b/zookeeper-jute/pom.xml @@ -150,6 +150,38 @@ <skip>true</skip> </configuration> </plugin> + <plugin> + <groupId>org.apache.felix</groupId> + <artifactId>maven-bundle-plugin</artifactId> + <executions> + <execution> + <id>build bundle</id> + <phase>package</phase> + <goals> + <goal>bundle</goal> + </goals> + </execution> + </executions> + <configuration> + <instructions> + <Import-Package> + *;resolution:=optional + </Import-Package> + <Export-Package> + org.apache.zookeeper.data, + org.apache.zookeeper.proto, + org.apache.zookeeper.txn, + !org.apache.zookeeper*, + org.apache.jute* + </Export-Package> + <Bundle-Name>ZooKeeper Jute Bundle</Bundle-Name> + <Bundle-DocURL>https://zookeeper.apache.org/doc/current/</Bundle-DocURL> + <Implementation-Build>${mvngit.commit.id}</Implementation-Build> + <Merge-Headers>!Implementation-Build,*</Merge-Headers> + </instructions> + <classifier>osgi</classifier> + </configuration> + </plugin> </plugins> </build> |