Hi,

I actually reworked one of my BC's to use now an external library.
This lib is declared as a dependency inside the pom.xml of the bc.
When I first time tried to build it, it failed because of the missing
library...that is clear to me because the lib is not in the official online
repositories. So I installed it with the given comand by maven into my local
repository /home/<user>/.m2/repository. I checked it, it is there.
When I now build the BC, the library ipp of net.compart is not put into the
BC installer. When trying to deploy a SA using this BC, then it throws a
ClassNotFound Exception telling me, that one of the classes of the lib was
missing.

The question is now, why is the library not put into the BC? When I add the
dependency to the SA, then it is put into the SA installer, but this doesn't
help me.

Any ideas?

Regards,
Lars

Find the BC's pom.xml below:
---------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?><project>

  <parent>
    <artifactId>cp-portlistener</artifactId>
    <groupId>net.compart.jbi</groupId>
    <version>1.0-SNAPSHOT</version>
  </parent>

  <modelVersion>4.0.0</modelVersion>

  <groupId>net.compart.jbi</groupId>
  <artifactId>cp-portlistener-bc</artifactId>
  <packaging>jbi-component</packaging>
  <name>Compart ESB :: Port Binding :: Port Binding Component</name>
  <version>1.0-SNAPSHOT</version>
  <url>http://www.compart.net</url>

  <dependencies>
    <dependency>
      <groupId>net.compart</groupId>
      <artifactId>ipp</artifactId>
      <version>1.0</version>
    </dependency>
    <dependency>
      <groupId>org.apache.servicemix</groupId>
      <artifactId>servicemix-shared</artifactId>
      <version>${servicemix-version}</version>
    </dependency>
    <dependency>
      <groupId>org.apache.servicemix</groupId>
      <artifactId>servicemix-core</artifactId>
      <version>${servicemix-version}</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
      <version>1.2</version>
    </dependency>
    <dependency>
      <groupId>org.xsocket</groupId>
      <artifactId>xSocket</artifactId>
      <version>1.0-beta-4</version>
    </dependency>
    <dependency>
      <groupId>jetty</groupId>
      <artifactId>org.mortbay.jetty</artifactId>
      <version>5.1.9</version> 
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.servicemix.tooling</groupId>
        <artifactId>jbi-maven-plugin</artifactId>        
        <extensions>true</extensions>
        <configuration>   
                <type>binding-component</type>       
                <component>net.compart.jbi.portlistener.PLComponent</component>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.xbean</groupId>
        <artifactId>maven-xbean-plugin</artifactId>
        <version>${xbean-version}</version>
        <executions>
          <execution>
            <configuration>
              <namespace>http://www.compart.net/ns/jbi/1.0</namespace>
            </configuration>
            <goals>
              <goal>mapping</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

</project>

-- 
View this message in context: 
http://www.nabble.com/Missing-library-in-my-own-bc...why--tp15450673s12049p15450673.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to