Announcement Announcement Module
Collapse
No announcement yet.
ADDON CREATE WRAPPER - An endless journey or Am I missing something? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ADDON CREATE WRAPPER - An endless journey or Am I missing something?

    I wanted to create an ADDON WRAPPER for the Apache-Velocity jars. When I deployed the wrapped Bundle, OSGI asked for werken-xpath jar. I added this to POM.xml. OSGI then asked for antlr. The chain reaction went on: javax.servlet, junit, commons-logging, org.apache.avalon.framework, avalon-logkit & javax.jms.
    Finally, the javax.jms jars were missing in MavenRepository. (<groupId>javax.jms</groupId> <artifactId>jms</artifactId> <version>1.1</version>)
    Please help.

  • #2
    You probably have to add exclusions to your wrapping pom. An example (H2 database) is:
    Code:
        <build>
            <plugins>
                <plugin>
                    <groupId>org.apache.felix</groupId>
                    <artifactId>maven-bundle-plugin</artifactId>
                    <extensions>true</extensions>
                    <configuration>
                        <instructions>
                            <Import-Package>javax.servlet.*;resolution:=optional,org.apache.lucene.*;resolution:=optional,org.slf4j;resolution:=optional,*</Import-Package>
                        </instructions>
                    </configuration>
                </plugin>
            </plugins>
        </build>
    Add one package at a time, build and start the bundle and see what package it complains about next.

    Comment

    Working...
    X