Hi Freeman,
Thanks for your reply! Actually I do have this in the xbean.xml, otherwise,
deployment will give me a compile error.
Here is my SL pom file:
<?xml version="1.0" encoding="UTF-8"?><project>
<parent>
<artifactId>bmf.example.parent</artifactId>
<groupId>com.example</groupId>
<version>1.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>bmf.example.common.libraries</artifactId>
<packaging>jbi-shared-library</packaging>
<name>Apache ServiceMix :: Shared Library</name>
<version>1.0</version>
<build>
<defaultGoal>install</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.servicemix.tooling</groupId>
<artifactId>jbi-maven-plugin</artifactId>
<version>4.3</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.3.1</version>
<executions>
<execution>
<id>IMF</id>
<phase>validate</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<file>${basedir}/imf.jar</file>
<groupId>example</groupId>
<artifactId>imf</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
</configuration>
</execution>
<execution>
<id>jacc</id>
<phase>validate</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<file>${basedir}/jacc-1.0.jar</file>
<groupId>javax.security</groupId>
<artifactId>jacc</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
</repositories>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.7</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>example</groupId>
<artifactId>imf</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>hibernate</groupId>
<artifactId>hibernate</artifactId>
<version>3.0</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>javax.security</groupId>
<artifactId>jacc</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
</project>
Here is my bean SU pom:
<beans ...>
<bean:endpoint service="example:MyBeanService1" endpoint="bean"
bean="#myBean1"/>
...
<bean id="myBean1" class="bmf.example.bean.su.MyBean"/>
<classpath><library>osgi:com.example.service</library></classpath>
</beans>
Anything wrong?
Hart
--
View this message in context:
http://servicemix.396122.n5.nabble.com/Shared-Library-Problems-tp3296911p3297919.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.