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
> >
>
<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>com.sknt.xip</groupId>
<artifactId>xip-core</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sknt.xip</groupId>
<artifactId>xip-process-lib</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sknt.xip.jbi</groupId>
<artifactId>xip-jbi-common</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.servicemix</groupId>
<artifactId>servicemix-jbi-fuse</artifactId>
<version>3.0.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.servicemix</groupId>
<artifactId>servicemix-common-fuse</artifactId>
<version>3.0.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.servicemix</groupId>
<artifactId>servicemix-core-fuse</artifactId>
<version>3.0.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jbpm</groupId>
<artifactId>jbpm</artifactId>
<version>3.1.2</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>binding-component</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>
<?xml version="1.0" encoding="UTF-8"?>
<jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
<component type="binding-component" 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>
<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>
</component>
</jbi>