I just tried this pom.xml -

<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/maven-v4_0_0.xsd";>

   <modelVersion>4.0.0</modelVersion>

   <groupId>com.sknt.xip.jbi</groupId>
   <artifactId>jbpm-se</artifactId>
   <packaging>jbi-component</packaging>
   <version>1.0</version>

   <name>XIP jBPM Service Engine</name>
   <url>http://www.sknt.com</url>

   <dependencies>
       <dependency>
           <groupId>junit</groupId>
           <artifactId>junit</artifactId>
           <version>3.8</version>
           <scope>test</scope>
       </dependency>
       <dependency>
           <groupId>org.apache.servicemix</groupId>
           <artifactId>servicemix-jbi</artifactId>
           <version>fuse-3.0.0.0</version>
           <scope>provided</scope>
       </dependency>
       <dependency>
           <groupId>org.apache.servicemix</groupId>
           <artifactId>servicemix-common</artifactId>
           <version>fuse-3.0.0.0</version>
       </dependency>
       <dependency>
           <groupId>org.apache.servicemix</groupId>
           <artifactId>servicemix-core</artifactId>
           <version>fuse-3.0.0.0</version>
           <scope>provided</scope>
       </dependency>
   </dependencies>

   <pluginRepositories>
       <pluginRepository>
           <id>apache.snapshots</id>
           <name>Maven Central Plugins Development Repository</name>
           <url>http://cvs.apache.org/maven-snapshot-repository</url>
           <snapshots>
               <enabled>true</enabled>
           </snapshots>
           <releases>
               <enabled>false</enabled>
           </releases>
       </pluginRepository>
   </pluginRepositories>

   <repositories>
       <repository>
           <id>ServiceMixRepo</id>
           <layout>default</layout>
           <name>ServiceMix 3.0 M2 snapshots</name>
           <releases>
               <enabled>true</enabled>
           </releases>
           <snapshots>
               <enabled>true</enabled>
           </snapshots>
           <url>http://servicemix.org/m2-snapshots</url>
       </repository>
   </repositories>

   <build>
       <plugins>
           <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <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>
                <version>3.0-incubating-SNAPSHOT</version>
                <extensions>true</extensions>
                <configuration>
                    <type>service-engine</type>

<bootstrap>com.sknt.xip.jbi.se.jbpm.component.JbpmBootstrap</bootstrap>

<component>com.sknt.xip.jbi.se.jbpm.component.JbpmComponent</component>
                </configuration>
           </plugin>
       </plugins>
   </build>

   <profiles>
       <profile>
           <id>Javadoc</id>
           <build>
               <plugins>
                   <plugin>
                       <groupId>org.apache.maven.plugins</groupId>
                       <artifactId>maven-javadoc-plugin</artifactId>
                       <executions>
                           <execution>
                               <phase>compile</phase>
                               <goals>
                                   <goal>javadoc</goal>
                               </goals>
                           </execution>
                       </executions>
                   </plugin>
               </plugins>
           </build>
           <activation>
               <property>
                   <name>maven.generate.javadoc</name>
                   <value>true</value>
               </property>
           </activation>
       </profile>
   </profiles>
</project>

Note that the plugin section at the bottom has the entry for the
servicemix tooling and there iis a configuration element with type
under that which sets whether it is a service engine or binding
component (more information is here -
http://www.servicemix.org/site/working-with-components.html).

I did successfully generate this jbi.xml -

<?xml version="1.0" encoding="UTF-8"?>
<jbi xmlns="http://java.sun.com/xml/ns/jbi"; version="1.0">
 <component type="service-engine"
component-class-loader-delegation="parent-first"
bootstrap-class-loader-delegation="parent-first">
   <identification>
     <name>jbpm-se</name>
     <description>XIP jBPM Service Engine</description>
   </identification>
   
<component-class-name>com.sknt.xip.jbi.se.jbpm.component.JbpmComponent</component-class-name>
   <component-class-path>
     <path-element>lib/jbpm-se-1.0.jar</path-element>
   </component-class-path>
   
<bootstrap-class-name>com.sknt.xip.jbi.se.jbpm.component.JbpmBootstrap</bootstrap-class-name>
   <bootstrap-class-path>
     <path-element>lib/jbpm-se-1.0.jar</path-element>
   </bootstrap-class-path>
   <shared-library version="fuse-3.0.0.0">servicemix-common</shared-library>
 </component>
</jbi>

Which is showing the shared library?  Can you try this one?  I'm
wondering if there might be a problem with one of the other
dependencies you had listed referencing common and therefore taking it
out as a shared library?

P


On 8/31/06, Timothy High <[EMAIL PROTECTED]> wrote:
I tried this with just one dependency's scope removed:

        <dependency>
            <groupId>org.apache.servicemix</groupId>
            <artifactId>servicemix-common</artifactId>
            <version>fuse-3.0.0.0</version>
        </dependency>

It didn't seem to make a difference. My classpaths stayed the same:

    <component-class-path>
      <path-element>lib/jbpm-se-1.0.jar</path-element>
      <path-element>lib/commons-logging-1.1.jar</path-element>
      <path-element>lib/xip-jbi-common-1.0.jar</path-element>
    </component-class-path>
    
<bootstrap-class-name>com.sknt.xip.jbi.se.jbpm.component.JbpmBootstrap</bootstrap-class-name>
    <bootstrap-class-path>
      <path-element>lib/jbpm-se-1.0.jar</path-element>
      <path-element>lib/commons-logging-1.1.jar</path-element>
      <path-element>lib/xip-jbi-common-1.0.jar</path-element>
    </bootstrap-class-path>

Any other suggestions? Also, the JBI says that my type="binding-component", but 
this is a service engine. How can I change that value via pom.xml?

Thanks again,
Tim.


-----Original Message-----
From: Philip Dodds [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 31, 2006 11:52 AM
To: [email protected]
Subject: Re: Using shared libraries with the maven plugin

The scope needs to be left off the dependencies and the entries should be

<dependency>
  <groupId>org.apache.servicemix</groupId>
  <artifactId>servicemix-jbi</artifactId>
  <version>fuse-3.0.0.0</version>
 </dependency>

Can you try that?

P

On 8/31/06, Timothy High <[EMAIL PROTECTED]> wrote:
> I'm attaching the pom.xml file and the resulting jbi.xml that is produced. 
Note also that the commons-logging jar appears on the classpaths as well, even 
though they are not declared in the pom file.
>
> Thanks,
> Tim.
>
> -----Original Message-----
> From: Philip Dodds [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 31, 2006 11:39 AM
> To: [email protected]
> Subject: Re: Using shared libraries with the maven plugin
>
> Can you send us the pom.xml?
>
> P
>
> On 8/31/06, Timothy High <[EMAIL PROTECTED]> wrote:
> > I'm using FUSE 3.0, and I'm using the 3.0-incubating-SNAPSHOT version of the plug-in. If I 
use the <scope>provided</scope> designation, the jars do not appear in the in the 
configuration; otherwise they appear as <path-elements> in the bootstrap and component classpaths.
> >
> > -----Original Message-----
> > From: Philip Dodds [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 31, 2006 11:29 AM
> > To: [email protected]
> > Subject: Re: Using shared libraries with the maven plugin
> >
> > What version of ServiceMix are you using? and which dependency is it
> > mis-packaging?
> >
> > P
> >
> > On 8/31/06, Timothy High <[EMAIL PROTECTED]> wrote:
> > > Is there a specific scope designation I should be using? It's packaging 
everything as local jars rather than using the <shared-library> designation.
> > >
> > > -----Original Message-----
> > > From: Guillaume Nodet [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, August 31, 2006 11:14 AM
> > > To: [email protected]
> > > Subject: Re: Using shared libraries with the maven plugin
> > >
> > > If you put a dependency on the shared library inside your pom,
> > > the generated descriptor should include the reference.
> > > If this is already the case, the problem may come from
> > > the fact that this is an old version of the maven plugin
> > > which was not able to handle SL yet.
> > >
> > > On 8/31/06, Timothy High <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Hi all,
> > > >
> > > >
> > > >
> > > > I am trying to use Maven to generate my component, which uses the
> > > > servicemix-common shared library. However, I couldn't find a way to 
declare
> > > > that it uses this shared library via my pom.xml configuration. I would
> > > > like Maven to generate the following line in my jbi.xml file:
> > > >
> > > >
> > > >
> > > >     <shared-library version="fuse-3.0.0.0
> > > > ">servicemix-common</shared-library>
> > > >
> > > >
> > > >
> > > > Can anyone tell me how this can be done?
> > > >
> > > >
> > > >
> > > > Thanks,
> > > >
> > > > Tim.
> > > >
> > > >
> > > >
> > > > ----------------------------------------------------------
> > > >
> > > > Timothy High
> > > >
> > > > Software Engineering
> > > >
> > > > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> > > >
> > > >
> > > >
> > > > Sakonnet Technology
> > > > Centro Empresarial Mourisco
> > > > Praia de Botafogo 501 1°Andar
> > > > Bloco A - Torre Pão de Açúcar
> > > > 22250-040  - Rio de Janeiro, RJ Brazil
> > > > www.sknt.com <http://www.sknt.com/>
> > > >
> > > > +55 (21) 2586 6102  direct
> > > > +55 (21) 2586 6001  fax
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > Cheers,
> > > Guillaume Nodet
> > >
> >
>
>
>

Reply via email to