aboutsummaryrefslogtreecommitdiffstats
path: root/osgi/README.md
diff options
context:
space:
mode:
authorYegor Kozlov <yegor@apache.org>2020-09-16 15:48:27 +0000
committerYegor Kozlov <yegor@apache.org>2020-09-16 15:48:27 +0000
commit60dc4f42954b6cdf5e23a8c1ee0fb86632209e52 (patch)
tree6d5496c76482c8b79d8537ce4167adddf6ce9e97 /osgi/README.md
parent69ddd04bd8a27d498dcaa333c28cd9976c14074f (diff)
downloadpoi-60dc4f42954b6cdf5e23a8c1ee0fb86632209e52.tar.gz
poi-60dc4f42954b6cdf5e23a8c1ee0fb86632209e52.zip
Bug 57857 POI OSGi bundle
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1881771 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'osgi/README.md')
-rw-r--r--osgi/README.md58
1 files changed, 58 insertions, 0 deletions
diff --git a/osgi/README.md b/osgi/README.md
new file mode 100644
index 0000000000..bca3ccfc6a
--- /dev/null
+++ b/osgi/README.md
@@ -0,0 +1,58 @@
+# Apache POI OSGi Bundle
+
+The POI bundle is an Uber jar which exports all the POI classes, XML Beans, OOXML Schemas and required dependencies. The current size is around 21 MB.
+The bundle is self-contained and can be used out of the box in a bare OSGi container.
+
+## Embedded Dependencies
+The bundle embeds all the jars from lib/main:
+
+- SparseBitSet
+- curvesapi
+- commons-math3
+- commons-compress
+- commons-collections4
+- commons-codec
+
+## Optional Dependencies
+
+1. Apache Batik
+Required to render WMF/EMF images. The OSGi bundle is provided by ServiceMix and available in Maven Central: https://mvnrepository.com/artifact/org.apache.servicemix.bundles/org.apache.servicemix.bundles.batik/1.13_1
+2. Saxon
+Required if using as the XSLT and XQuery Processor engine in XML Beans.
+Available in Maven Central: https://mvnrepository.com/artifact/net.sf.saxon/saxon/8.9.0.4-osgi
+3. Apache XML Security for Java, Bouncy Castle and XML Commons Resolver
+These are required to sign or validate signed Office documents. The OSGi bundles are available in Maven Central:
+
+ - Apache XML Security for Java: https://mvnrepository.com/artifact/org.apache.santuario/xmlsec/2.2.0
+
+ - XML Commons Resolver: https://mvnrepository.com/artifact/xml-resolver/xml-resolver/1.2-osgi
+
+ - Bouncy Castle: https://mvnrepository.com/artifact/org.bouncycastle/bcprov-ext-jdk15on/1.66, https://mvnrepository.com/artifact/org.bouncycastle/bcpkix-jdk15on/1.66
+
+## Blocked Imports
+
+The Bundle Maven Plugin performs a thorough inspection of the dependencies on external packages and by default includes them all in the <Import-Package> section.
+
+Transitive dependencies from XML Beans not required by POI:
+
+ - !com.github.javaparser.*,
+ - !org.apache.tools.ant.*
+
+Optional codecs pulled by Commons-Compress. Not used by POI
+
+ - !com.github.luben.zstd.*,
+ - !org.tukaani.xz.*,
+ - !org.brotli.dec.*,
+
+Internal APIs which are no more in JPMS
+
+ - !sun.misc.*
+
+## Integration Testing
+
+The project tests the bundle using the Pax Exam framework which executes junit tests within an OSGi container started by Maven. The current version uses the Apache Felix driver but the framework should not matter, same tests will pass with the Karaf or Equinox drivers.
+
+When running integration tests Maven starts a bare Apache Felix OSGi container, deploys the POI bundle and runs a few simple tests to validate the code is working fine, e.g. create a spreadsheet, serialize it to a byte array and read back.
+
+
+