how to use and get working org.apache.servicemix.bundles.poi osgi bundle












0















I just upgraded my Apache POI libs from 3.9 to 4.0.1, also using the Apache bundle org.apache.servicemix.bundles.poi which has many changes and dependencies. I'm on my way to fulfilling the dependencies, keep running in to missing constraint issues. Does anyone have a working Apache POI implementation using org.apache.servicemix.bundles.poi/4.0.0_1 ??? I'm stuck on osgi.wiring.package; (osgi.wiring.package=org.apache.xml.security.signature)



I'm getting this Error:



Error executing command: Could not start bundle mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi/4.0.0_1 in feature(s) fadec-application-1.0.0: Unresolved constraint in bundle org.apache.servicemix.bundles.poi [303]: Unable to resolve 303.0: missing requirement [303.0] osgi.wiring.package; (osgi.wiring.package=org.apache.xml.security.signature)


How to use and get working in karaf osgi container. too many unneeded depenedencies and missing dependencies.



thanks!










share|improve this question



























    0















    I just upgraded my Apache POI libs from 3.9 to 4.0.1, also using the Apache bundle org.apache.servicemix.bundles.poi which has many changes and dependencies. I'm on my way to fulfilling the dependencies, keep running in to missing constraint issues. Does anyone have a working Apache POI implementation using org.apache.servicemix.bundles.poi/4.0.0_1 ??? I'm stuck on osgi.wiring.package; (osgi.wiring.package=org.apache.xml.security.signature)



    I'm getting this Error:



    Error executing command: Could not start bundle mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi/4.0.0_1 in feature(s) fadec-application-1.0.0: Unresolved constraint in bundle org.apache.servicemix.bundles.poi [303]: Unable to resolve 303.0: missing requirement [303.0] osgi.wiring.package; (osgi.wiring.package=org.apache.xml.security.signature)


    How to use and get working in karaf osgi container. too many unneeded depenedencies and missing dependencies.



    thanks!










    share|improve this question

























      0












      0








      0








      I just upgraded my Apache POI libs from 3.9 to 4.0.1, also using the Apache bundle org.apache.servicemix.bundles.poi which has many changes and dependencies. I'm on my way to fulfilling the dependencies, keep running in to missing constraint issues. Does anyone have a working Apache POI implementation using org.apache.servicemix.bundles.poi/4.0.0_1 ??? I'm stuck on osgi.wiring.package; (osgi.wiring.package=org.apache.xml.security.signature)



      I'm getting this Error:



      Error executing command: Could not start bundle mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi/4.0.0_1 in feature(s) fadec-application-1.0.0: Unresolved constraint in bundle org.apache.servicemix.bundles.poi [303]: Unable to resolve 303.0: missing requirement [303.0] osgi.wiring.package; (osgi.wiring.package=org.apache.xml.security.signature)


      How to use and get working in karaf osgi container. too many unneeded depenedencies and missing dependencies.



      thanks!










      share|improve this question














      I just upgraded my Apache POI libs from 3.9 to 4.0.1, also using the Apache bundle org.apache.servicemix.bundles.poi which has many changes and dependencies. I'm on my way to fulfilling the dependencies, keep running in to missing constraint issues. Does anyone have a working Apache POI implementation using org.apache.servicemix.bundles.poi/4.0.0_1 ??? I'm stuck on osgi.wiring.package; (osgi.wiring.package=org.apache.xml.security.signature)



      I'm getting this Error:



      Error executing command: Could not start bundle mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi/4.0.0_1 in feature(s) fadec-application-1.0.0: Unresolved constraint in bundle org.apache.servicemix.bundles.poi [303]: Unable to resolve 303.0: missing requirement [303.0] osgi.wiring.package; (osgi.wiring.package=org.apache.xml.security.signature)


      How to use and get working in karaf osgi container. too many unneeded depenedencies and missing dependencies.



      thanks!







      java xml






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 19 '18 at 21:46









      GLMillsGLMills

      12




      12






















          1 Answer
          1






          active

          oldest

          votes


















          0














          currently there are no except 3.9_2 that work or are successfully deployable to a OSGI karaf container. you need to build your own. here is a start.



          <?xml version="1.0" encoding="UTF-8"?>
          <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/maven-v4_0_0.xsd">

          <modelVersion>4.0.0</modelVersion>

          <groupId>com.ge.ip.poi</groupId>
          <artifactId>poi-bundle</artifactId>
          <version>3.1.7</version>

          <packaging>bundle</packaging>

          <name>POI OSGi-Bundle</name>

          <description>This OSGi bundle wraps poi, poi-ooxml, poi-ooxml-schemas and poi-scratchpad jar files.</description>

          <properties>
          <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
          <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
          </properties>

          <dependencies>
          <dependency>
          <groupId>org.apache.poi</groupId>
          <artifactId>poi</artifactId>
          <version>3.17</version>
          </dependency>
          <dependency>
          <groupId>org.apache.poi</groupId>
          <artifactId>poi-ooxml</artifactId>
          <version>3.17</version>
          </dependency>
          <!-- <dependency>
          <groupId>org.apache.poi</groupId>
          <artifactId>poi-ooxml-schemas</artifactId>
          <version>3.17</version>
          </dependency> -->
          <dependency>
          <groupId>org.apache.poi</groupId>
          <artifactId>ooxml-schemas</artifactId>
          <version>1.3</version>
          </dependency>
          <dependency>
          <groupId>org.apache.poi</groupId>
          <artifactId>poi-scratchpad</artifactId>
          <version>3.17</version>
          </dependency>
          <dependency>
          <groupId>com.github.virtuald</groupId>
          <artifactId>curvesapi</artifactId>
          <version>1.06</version>
          </dependency>
          <dependency>
          <groupId>commons-codec</groupId>
          <artifactId>commons-codec</artifactId>
          <version>1.10</version>
          </dependency>
          <dependency>
          <groupId>org.apache.commons</groupId>
          <artifactId>commons-collections4</artifactId>
          <version>4.1</version>
          </dependency>
          <dependency>
          <groupId>org.apache.commons</groupId>
          <artifactId>commons-compress</artifactId>
          <version>1.18</version>
          </dependency>
          <dependency>
          <groupId>org.apache.xmlbeans</groupId>
          <artifactId>xmlbeans</artifactId>
          <version>2.3.0</version>
          </dependency>
          <dependency>
          <groupId>stax</groupId>
          <artifactId>stax-api</artifactId>
          <version>1.0.1</version>
          </dependency>
          </dependencies>

          <build>
          <plugins>
          <plugin>
          <groupId>org.apache.felix</groupId>
          <artifactId>maven-bundle-plugin</artifactId>
          <version>2.3.7</version>
          <extensions>true</extensions>
          <configuration>
          <instructions>
          <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
          <Export-Package>
          org.apache.poi.*;-split-package:=merge-first
          </Export-Package>
          <!--
          One important thing to note: if you are not exporting a package, you add it to the Private-Package instruction.
          Otherwise, the classes inside the package will not be copied to your bundle, as the default value of this instruction is empty.
          ;-split-package:=merge-first,com.graphbuilder.curve || com.graphbuilder.geom, schemasMicrosoftComOfficeExcel.*
          -->
          <Private-Package>
          org.apache.commons.*,
          org.apache.xmlbeans.*,
          com.graphbuilder.curve.*,
          com.graphbuilder.geom.*,
          com.graphbuilder.math.*,
          com.graphbuilder.org.apache.harmony.awt.gl.*
          </Private-Package>
          <DynamicImport-Package>*</DynamicImport-Package>
          <!-- <Import-Package>*</Import-Package> -->
          </instructions>
          </configuration>
          </plugin>
          <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-dependency-plugin</artifactId>
          <executions>
          <execution>
          <id>copy-dependencies</id>
          <phase>package</phase>
          <goals>
          <goal>copy-dependencies</goal>
          </goals>
          </execution>
          </executions>
          </plugin>
          </plugins>

          </build>

          </project>





          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1386059%2fhow-to-use-and-get-working-org-apache-servicemix-bundles-poi-osgi-bundle%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            currently there are no except 3.9_2 that work or are successfully deployable to a OSGI karaf container. you need to build your own. here is a start.



            <?xml version="1.0" encoding="UTF-8"?>
            <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/maven-v4_0_0.xsd">

            <modelVersion>4.0.0</modelVersion>

            <groupId>com.ge.ip.poi</groupId>
            <artifactId>poi-bundle</artifactId>
            <version>3.1.7</version>

            <packaging>bundle</packaging>

            <name>POI OSGi-Bundle</name>

            <description>This OSGi bundle wraps poi, poi-ooxml, poi-ooxml-schemas and poi-scratchpad jar files.</description>

            <properties>
            <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
            <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
            </properties>

            <dependencies>
            <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi</artifactId>
            <version>3.17</version>
            </dependency>
            <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi-ooxml</artifactId>
            <version>3.17</version>
            </dependency>
            <!-- <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi-ooxml-schemas</artifactId>
            <version>3.17</version>
            </dependency> -->
            <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>ooxml-schemas</artifactId>
            <version>1.3</version>
            </dependency>
            <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi-scratchpad</artifactId>
            <version>3.17</version>
            </dependency>
            <dependency>
            <groupId>com.github.virtuald</groupId>
            <artifactId>curvesapi</artifactId>
            <version>1.06</version>
            </dependency>
            <dependency>
            <groupId>commons-codec</groupId>
            <artifactId>commons-codec</artifactId>
            <version>1.10</version>
            </dependency>
            <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-collections4</artifactId>
            <version>4.1</version>
            </dependency>
            <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-compress</artifactId>
            <version>1.18</version>
            </dependency>
            <dependency>
            <groupId>org.apache.xmlbeans</groupId>
            <artifactId>xmlbeans</artifactId>
            <version>2.3.0</version>
            </dependency>
            <dependency>
            <groupId>stax</groupId>
            <artifactId>stax-api</artifactId>
            <version>1.0.1</version>
            </dependency>
            </dependencies>

            <build>
            <plugins>
            <plugin>
            <groupId>org.apache.felix</groupId>
            <artifactId>maven-bundle-plugin</artifactId>
            <version>2.3.7</version>
            <extensions>true</extensions>
            <configuration>
            <instructions>
            <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
            <Export-Package>
            org.apache.poi.*;-split-package:=merge-first
            </Export-Package>
            <!--
            One important thing to note: if you are not exporting a package, you add it to the Private-Package instruction.
            Otherwise, the classes inside the package will not be copied to your bundle, as the default value of this instruction is empty.
            ;-split-package:=merge-first,com.graphbuilder.curve || com.graphbuilder.geom, schemasMicrosoftComOfficeExcel.*
            -->
            <Private-Package>
            org.apache.commons.*,
            org.apache.xmlbeans.*,
            com.graphbuilder.curve.*,
            com.graphbuilder.geom.*,
            com.graphbuilder.math.*,
            com.graphbuilder.org.apache.harmony.awt.gl.*
            </Private-Package>
            <DynamicImport-Package>*</DynamicImport-Package>
            <!-- <Import-Package>*</Import-Package> -->
            </instructions>
            </configuration>
            </plugin>
            <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-dependency-plugin</artifactId>
            <executions>
            <execution>
            <id>copy-dependencies</id>
            <phase>package</phase>
            <goals>
            <goal>copy-dependencies</goal>
            </goals>
            </execution>
            </executions>
            </plugin>
            </plugins>

            </build>

            </project>





            share|improve this answer




























              0














              currently there are no except 3.9_2 that work or are successfully deployable to a OSGI karaf container. you need to build your own. here is a start.



              <?xml version="1.0" encoding="UTF-8"?>
              <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/maven-v4_0_0.xsd">

              <modelVersion>4.0.0</modelVersion>

              <groupId>com.ge.ip.poi</groupId>
              <artifactId>poi-bundle</artifactId>
              <version>3.1.7</version>

              <packaging>bundle</packaging>

              <name>POI OSGi-Bundle</name>

              <description>This OSGi bundle wraps poi, poi-ooxml, poi-ooxml-schemas and poi-scratchpad jar files.</description>

              <properties>
              <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
              <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
              </properties>

              <dependencies>
              <dependency>
              <groupId>org.apache.poi</groupId>
              <artifactId>poi</artifactId>
              <version>3.17</version>
              </dependency>
              <dependency>
              <groupId>org.apache.poi</groupId>
              <artifactId>poi-ooxml</artifactId>
              <version>3.17</version>
              </dependency>
              <!-- <dependency>
              <groupId>org.apache.poi</groupId>
              <artifactId>poi-ooxml-schemas</artifactId>
              <version>3.17</version>
              </dependency> -->
              <dependency>
              <groupId>org.apache.poi</groupId>
              <artifactId>ooxml-schemas</artifactId>
              <version>1.3</version>
              </dependency>
              <dependency>
              <groupId>org.apache.poi</groupId>
              <artifactId>poi-scratchpad</artifactId>
              <version>3.17</version>
              </dependency>
              <dependency>
              <groupId>com.github.virtuald</groupId>
              <artifactId>curvesapi</artifactId>
              <version>1.06</version>
              </dependency>
              <dependency>
              <groupId>commons-codec</groupId>
              <artifactId>commons-codec</artifactId>
              <version>1.10</version>
              </dependency>
              <dependency>
              <groupId>org.apache.commons</groupId>
              <artifactId>commons-collections4</artifactId>
              <version>4.1</version>
              </dependency>
              <dependency>
              <groupId>org.apache.commons</groupId>
              <artifactId>commons-compress</artifactId>
              <version>1.18</version>
              </dependency>
              <dependency>
              <groupId>org.apache.xmlbeans</groupId>
              <artifactId>xmlbeans</artifactId>
              <version>2.3.0</version>
              </dependency>
              <dependency>
              <groupId>stax</groupId>
              <artifactId>stax-api</artifactId>
              <version>1.0.1</version>
              </dependency>
              </dependencies>

              <build>
              <plugins>
              <plugin>
              <groupId>org.apache.felix</groupId>
              <artifactId>maven-bundle-plugin</artifactId>
              <version>2.3.7</version>
              <extensions>true</extensions>
              <configuration>
              <instructions>
              <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
              <Export-Package>
              org.apache.poi.*;-split-package:=merge-first
              </Export-Package>
              <!--
              One important thing to note: if you are not exporting a package, you add it to the Private-Package instruction.
              Otherwise, the classes inside the package will not be copied to your bundle, as the default value of this instruction is empty.
              ;-split-package:=merge-first,com.graphbuilder.curve || com.graphbuilder.geom, schemasMicrosoftComOfficeExcel.*
              -->
              <Private-Package>
              org.apache.commons.*,
              org.apache.xmlbeans.*,
              com.graphbuilder.curve.*,
              com.graphbuilder.geom.*,
              com.graphbuilder.math.*,
              com.graphbuilder.org.apache.harmony.awt.gl.*
              </Private-Package>
              <DynamicImport-Package>*</DynamicImport-Package>
              <!-- <Import-Package>*</Import-Package> -->
              </instructions>
              </configuration>
              </plugin>
              <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-dependency-plugin</artifactId>
              <executions>
              <execution>
              <id>copy-dependencies</id>
              <phase>package</phase>
              <goals>
              <goal>copy-dependencies</goal>
              </goals>
              </execution>
              </executions>
              </plugin>
              </plugins>

              </build>

              </project>





              share|improve this answer


























                0












                0








                0







                currently there are no except 3.9_2 that work or are successfully deployable to a OSGI karaf container. you need to build your own. here is a start.



                <?xml version="1.0" encoding="UTF-8"?>
                <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/maven-v4_0_0.xsd">

                <modelVersion>4.0.0</modelVersion>

                <groupId>com.ge.ip.poi</groupId>
                <artifactId>poi-bundle</artifactId>
                <version>3.1.7</version>

                <packaging>bundle</packaging>

                <name>POI OSGi-Bundle</name>

                <description>This OSGi bundle wraps poi, poi-ooxml, poi-ooxml-schemas and poi-scratchpad jar files.</description>

                <properties>
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
                <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
                </properties>

                <dependencies>
                <dependency>
                <groupId>org.apache.poi</groupId>
                <artifactId>poi</artifactId>
                <version>3.17</version>
                </dependency>
                <dependency>
                <groupId>org.apache.poi</groupId>
                <artifactId>poi-ooxml</artifactId>
                <version>3.17</version>
                </dependency>
                <!-- <dependency>
                <groupId>org.apache.poi</groupId>
                <artifactId>poi-ooxml-schemas</artifactId>
                <version>3.17</version>
                </dependency> -->
                <dependency>
                <groupId>org.apache.poi</groupId>
                <artifactId>ooxml-schemas</artifactId>
                <version>1.3</version>
                </dependency>
                <dependency>
                <groupId>org.apache.poi</groupId>
                <artifactId>poi-scratchpad</artifactId>
                <version>3.17</version>
                </dependency>
                <dependency>
                <groupId>com.github.virtuald</groupId>
                <artifactId>curvesapi</artifactId>
                <version>1.06</version>
                </dependency>
                <dependency>
                <groupId>commons-codec</groupId>
                <artifactId>commons-codec</artifactId>
                <version>1.10</version>
                </dependency>
                <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-collections4</artifactId>
                <version>4.1</version>
                </dependency>
                <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-compress</artifactId>
                <version>1.18</version>
                </dependency>
                <dependency>
                <groupId>org.apache.xmlbeans</groupId>
                <artifactId>xmlbeans</artifactId>
                <version>2.3.0</version>
                </dependency>
                <dependency>
                <groupId>stax</groupId>
                <artifactId>stax-api</artifactId>
                <version>1.0.1</version>
                </dependency>
                </dependencies>

                <build>
                <plugins>
                <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <version>2.3.7</version>
                <extensions>true</extensions>
                <configuration>
                <instructions>
                <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                <Export-Package>
                org.apache.poi.*;-split-package:=merge-first
                </Export-Package>
                <!--
                One important thing to note: if you are not exporting a package, you add it to the Private-Package instruction.
                Otherwise, the classes inside the package will not be copied to your bundle, as the default value of this instruction is empty.
                ;-split-package:=merge-first,com.graphbuilder.curve || com.graphbuilder.geom, schemasMicrosoftComOfficeExcel.*
                -->
                <Private-Package>
                org.apache.commons.*,
                org.apache.xmlbeans.*,
                com.graphbuilder.curve.*,
                com.graphbuilder.geom.*,
                com.graphbuilder.math.*,
                com.graphbuilder.org.apache.harmony.awt.gl.*
                </Private-Package>
                <DynamicImport-Package>*</DynamicImport-Package>
                <!-- <Import-Package>*</Import-Package> -->
                </instructions>
                </configuration>
                </plugin>
                <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                <execution>
                <id>copy-dependencies</id>
                <phase>package</phase>
                <goals>
                <goal>copy-dependencies</goal>
                </goals>
                </execution>
                </executions>
                </plugin>
                </plugins>

                </build>

                </project>





                share|improve this answer













                currently there are no except 3.9_2 that work or are successfully deployable to a OSGI karaf container. you need to build your own. here is a start.



                <?xml version="1.0" encoding="UTF-8"?>
                <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/maven-v4_0_0.xsd">

                <modelVersion>4.0.0</modelVersion>

                <groupId>com.ge.ip.poi</groupId>
                <artifactId>poi-bundle</artifactId>
                <version>3.1.7</version>

                <packaging>bundle</packaging>

                <name>POI OSGi-Bundle</name>

                <description>This OSGi bundle wraps poi, poi-ooxml, poi-ooxml-schemas and poi-scratchpad jar files.</description>

                <properties>
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
                <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
                </properties>

                <dependencies>
                <dependency>
                <groupId>org.apache.poi</groupId>
                <artifactId>poi</artifactId>
                <version>3.17</version>
                </dependency>
                <dependency>
                <groupId>org.apache.poi</groupId>
                <artifactId>poi-ooxml</artifactId>
                <version>3.17</version>
                </dependency>
                <!-- <dependency>
                <groupId>org.apache.poi</groupId>
                <artifactId>poi-ooxml-schemas</artifactId>
                <version>3.17</version>
                </dependency> -->
                <dependency>
                <groupId>org.apache.poi</groupId>
                <artifactId>ooxml-schemas</artifactId>
                <version>1.3</version>
                </dependency>
                <dependency>
                <groupId>org.apache.poi</groupId>
                <artifactId>poi-scratchpad</artifactId>
                <version>3.17</version>
                </dependency>
                <dependency>
                <groupId>com.github.virtuald</groupId>
                <artifactId>curvesapi</artifactId>
                <version>1.06</version>
                </dependency>
                <dependency>
                <groupId>commons-codec</groupId>
                <artifactId>commons-codec</artifactId>
                <version>1.10</version>
                </dependency>
                <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-collections4</artifactId>
                <version>4.1</version>
                </dependency>
                <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-compress</artifactId>
                <version>1.18</version>
                </dependency>
                <dependency>
                <groupId>org.apache.xmlbeans</groupId>
                <artifactId>xmlbeans</artifactId>
                <version>2.3.0</version>
                </dependency>
                <dependency>
                <groupId>stax</groupId>
                <artifactId>stax-api</artifactId>
                <version>1.0.1</version>
                </dependency>
                </dependencies>

                <build>
                <plugins>
                <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <version>2.3.7</version>
                <extensions>true</extensions>
                <configuration>
                <instructions>
                <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                <Export-Package>
                org.apache.poi.*;-split-package:=merge-first
                </Export-Package>
                <!--
                One important thing to note: if you are not exporting a package, you add it to the Private-Package instruction.
                Otherwise, the classes inside the package will not be copied to your bundle, as the default value of this instruction is empty.
                ;-split-package:=merge-first,com.graphbuilder.curve || com.graphbuilder.geom, schemasMicrosoftComOfficeExcel.*
                -->
                <Private-Package>
                org.apache.commons.*,
                org.apache.xmlbeans.*,
                com.graphbuilder.curve.*,
                com.graphbuilder.geom.*,
                com.graphbuilder.math.*,
                com.graphbuilder.org.apache.harmony.awt.gl.*
                </Private-Package>
                <DynamicImport-Package>*</DynamicImport-Package>
                <!-- <Import-Package>*</Import-Package> -->
                </instructions>
                </configuration>
                </plugin>
                <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                <execution>
                <id>copy-dependencies</id>
                <phase>package</phase>
                <goals>
                <goal>copy-dependencies</goal>
                </goals>
                </execution>
                </executions>
                </plugin>
                </plugins>

                </build>

                </project>






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 7 at 19:23









                GLMillsGLMills

                12




                12






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1386059%2fhow-to-use-and-get-working-org-apache-servicemix-bundles-poi-osgi-bundle%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Plaza Victoria

                    Puebla de Zaragoza

                    Musa