Skip to content

Commit 29e9dbb

Browse files
Abhishek Jaindsmiley
Abhishek Jain
authored andcommitted
Added manifestEntries: modified: pom.xml
Closes mitre#155
1 parent c57587b commit 29e9dbb

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11

22
# Version 1.11 (unreleased)
33

4+
\#155: Add OSGI manifiest headers.
5+
Thanks Abhishek Jain.
6+
47
\#153: New settings: http.maxConnections and http.connectionrequest.timeout
58
Thanks Gotzon Illarramendi.
69

pom.xml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,33 @@
119119
</compilerArgs>
120120
</configuration>
121121
</plugin>
122-
122+
<!-- For OSGI -->
123+
<plugin>
124+
<groupId>org.apache.maven.plugins</groupId>
125+
<artifactId>maven-jar-plugin</artifactId>
126+
<configuration>
127+
<archive>
128+
<manifestEntries>
129+
<Bundle-Version>${project.version}</Bundle-Version>
130+
<Tool>Bundlor ${project.version}</Tool>
131+
<Bundle-Name>${project.artifactId}</Bundle-Name>
132+
<Bundle-SymbolicName>org.mitre.dsmiley.http-proxy-servlet</Bundle-SymbolicName>
133+
<Export-Package>org.mitre.dsmiley.httpproxy;version="0"</Export-Package>
134+
<Import-Package>org.apache.http;version="0",
135+
org.apache.http.client;version="0",
136+
org.apache.http.entity;version="0",
137+
org.apache.http.impl.client;version="0",
138+
org.apache.http.message;version="0",
139+
org.apache.http.util; version="0",
140+
org.apache.http.client.utils;version="0",
141+
org.apache.http.client.methods;version="0",
142+
javax.servlet;version="0",
143+
javax.servlet.http;version="0",
144+
javax.net.ssl;version="0", org.apache.http.client.config;version="0"</Import-Package>
145+
</manifestEntries>
146+
</archive>
147+
</configuration>
148+
</plugin>
123149
<!-- See
124150
http://central.sonatype.org/pages/apache-maven.html#nexus-staging-maven-plugin-for-deployment-and-release
125151

0 commit comments

Comments
 (0)