It seems from the manifest that it is exporting and importing "the world": fair enough because that is what I have asked... This helped me pinpoint the problem: it says *no active exported package* which means the bundle is not active.. When I start the bundle I get this:
karaf@root> osgi:start 181 org.osgi.framework.BundleException: Unresolved constraint in bundle osgi.org.springframework.batch [181]: Unable to resolve 181.0: missing requirement [181.0] package; (package=bsh) Regards, Julien. 2012/8/14 Dascalita Dragos <[email protected]> > Is it possible to share the generated manifest from the JAR file ? > > > On Tue, Aug 14, 2012 at 3:15 AM, Julien Martin <[email protected]> wrote: > > > I have added this: <scope>compile</scope> (is this not the default > anyway?) > > I get the same export/impor problems. > > Regards, > > J. > > > > 2012/8/14 Julien Martin <[email protected]> > > > > > Here is my config: > > > > > > > > > <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/xsd/maven-4.0.0.xsd"> > > > <modelVersion>4.0.0</modelVersion> > > > <groupId>osgi.org.springframework.batch</groupId> > > > <artifactId>spring-batch-core</artifactId> > > > <version>2.1.8.RELEASE</version> > > > <packaging>bundle</packaging> > > > <dependencies> > > > <dependency> > > > <groupId>org.springframework.batch</groupId> > > > <artifactId>spring-batch-core</artifactId> > > > <version>2.1.8.RELEASE</version> > > > <optional>true</optional> > > > </dependency> > > > </dependencies> > > > <build> > > > <defaultGoal>install</defaultGoal> > > > <plugins> > > > <plugin> > > > <groupId>org.apache.maven.plugins</groupId> > > > <artifactId>maven-shade-plugin</artifactId> > > > <version>1.7.1</version> > > > <executions> > > > <execution> > > > <phase>package</phase> > > > <goals> > > > <goal>shade</goal> > > > </goals> > > > <configuration> > > > <artifactSet> > > > <includes> > > > <include>org.springframework.batch:spring-batch-core</include> > > > </includes> > > > </artifactSet> > > > <filters> > > > <filter> > > > <artifact>org.springframework.batch:spring-batch-core</artifact> > > > <excludes> > > > <exclude>**</exclude> > > > </excludes> > > > </filter> > > > </filters> > > > <promoteTransitiveDependencies>true</promoteTransitiveDependencies> > > > <createDependencyReducedPom>true</createDependencyReducedPom> > > > </configuration> > > > </execution> > > > </executions> > > > </plugin> > > > <plugin> > > > <groupId>org.apache.felix</groupId> > > > <artifactId>maven-bundle-plugin</artifactId> > > > <version>2.3.7</version> > > > <extensions>true</extensions> > > > <configuration> > > > <instructions> > > > > > > > <Bundle-SymbolicName>osgi.org.springframework.batch</Bundle-SymbolicName> > > > <Export-Package>*</Export-Package> > > > <Import-Package>*</Import-Package> > > > </instructions> > > > <unpackBundle>true</unpackBundle> > > > </configuration> > > > </plugin> > > > </plugins> > > > </build> > > > > > > </project> > > > > > > 2012/8/14 Julien Martin <[email protected]> > > > > > >> Hi all, > > >> Can anyone please tell me what is wrong with my config? > > >> Regards, > > >> J. > > >> > > >> > > >> 2012/8/14 Julien Martin <[email protected]> > > >> > > >>> Hi Felix, > > >>> Yes I do. > > >>> Regards, > > >>> J. > > >>> > > >>> > > >>> 2012/8/14 Felix Meschberger <[email protected]> > > >>> > > >>>> Hi, > > >>>> > > >>>> Do you intend to wrap some library as a bundle ? > > >>>> > > >>>> > > >>>> Regards > > >>>> Felix > > >>>> > > >>>> Am 14.08.2012 um 10:59 schrieb Julien Martin: > > >>>> > > >>>> > Hello, > > >>>> > > > >>>> > I am having problem configuring the <Import-Package> and > > >>>> <Export-Package> > > >>>> > of maven-bundle-plugin... > > >>>> > I do specify a *** in order to import and export all packages but > > >>>> *nothing *is > > >>>> > imported or exported... > > >>>> > > > >>>> > *<plugin>* > > >>>> > *<groupId>org.apache.felix</groupId>* > > >>>> > *<artifactId>maven-bundle-plugin</artifactId>* > > >>>> > *<version>2.3.7</version>* > > >>>> > *<extensions>true</extensions>* > > >>>> > *<configuration>* > > >>>> > *<instructions>* > > >>>> > > > >>>> > > > *<Bundle-SymbolicName>osgi.org.springframework.batch</Bundle-SymbolicName>* > > >>>> > *<Export-Package>*</Export-Package>* > > >>>> > *<Import-Package>*</Import-Package>* > > >>>> > *</instructions>* > > >>>> > *<unpackBundle>true</unpackBundle>* > > >>>> > *</configuration>* > > >>>> > *</plugin>* > > >>>> > > > >>>> > Can anyone please help? > > >>>> > > > >>>> > Regards, > > >>>> > > > >>>> > Julien. > > >>>> > > >>>> > > >>>> > --------------------------------------------------------------------- > > >>>> To unsubscribe, e-mail: [email protected] > > >>>> For additional commands, e-mail: [email protected] > > >>>> > > >>>> > > >>> > > >> > > > > > >

