karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rcbandit <peter.pen...@gmail.com>
Subject Re: Unresolved requirements: [[custom_jar [12](R 12.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.framework)(version>=1.7.0)(!(version>=2.0.0)))]
Date Tue, 01 Sep 2015 19:34:57 GMT
Yes, I have in one of my bundles embedded OSGI bundles

<dependencies>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>org.osgi.core</artifactId>
            <version>6.0.0</version>
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.framework</artifactId>
            <version>5.0.1</version>
            <type>jar</type>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <version>2.5.4</version>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Embed-Dependency>*;inline=true</Embed-Dependency>
                        <Embed-Transitive>true</Embed-Transitive>
                        <Import-Package>
                            org.osgi.framework,
                            javax.xml.bind
                        </Import-Package>
                        <Export-Package>
                        </Export-Package>
                       
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                       
<Bundle-Activator>org.system.activator.Activator</Bundle-Activator>
                        <Main-Class>org.system.main.Main</Main-Class>
                    </instructions>
                </configuration>
            </plugin>


This is because I want to use the bundle as Felix embedded mode and also
when it's deployed in Karaf to deploy bundles from XML file.



--
View this message in context: http://karaf.922171.n3.nabble.com/Unresolved-requirements-custom-jar-12-R-12-0-osgi-wiring-package-osgi-wiring-package-org-osgi-framew-tp4041134p4042265.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Mime
View raw message