On Wed, May 14, 2008 at 2:00 PM, Kulchar <[EMAIL PROTECTED]> wrote:
>
> Problem:
> I added a servicemix-file su to the bridge example and am getting an error,
> in an attempt to figure out integration testing.
>
> * I created a bridge-su-file directory, under bridge.
>
> * I created a bridge-su-file/pom.xml file (see below).
>
> * I created a bridge-su-file/src/main/resources/xbean.xml file (see below).
>
> * I added a 'module' entry into the bridge/pom.xml *and* uncommented the
> bridge-sa-itest module
> <module>bridge-su-file</module>
> <module>bridge-sa-itest</module>
>
> * I added a dependency to bridge-su-file into the bridge-sa/pom.xml file
> <dependency>
> <groupId>org.apache.servicemix.samples.bridge</groupId>
> <artifactId>bridge-su-file</artifactId>
> <version>3.2.1</version>
> </dependency>
>
> * I commented -out- the route in
> bridge-sa-itest\src\test\resources\integrationTest.xml
> <!-- You can use Spring XML syntax to define the routes here using the
> <route> element
> <route>
> <from uri="activemq:example.A"/>
> <to uri="activemq:example.B"/>
> </route>
> -->
>
> * I put the command line into the bridge directory and typed 'mvn clean
> install'
> *err* And got the error that is the title of this issue - and the whole
> error can be found below.
>
> --------------------------
> bridge-su-file pom.xml
> --------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <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>
> <parent>
> <groupId>org.apache.servicemix.samples</groupId>
> <artifactId>bridge</artifactId>
> <version>3.2.1</version>
> </parent>
> <groupId>org.apache.servicemix.samples.bridge</groupId>
> <artifactId>bridge-su-file</artifactId>
> <packaging>jbi-service-unit</packaging>
> <name>ServiceMix :: Samples :: Bridge :: FILE (2)</name>
> <version>3.2.1</version>
>
> <dependencies>
> </dependencies>
>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.servicemix.tooling</groupId>
> <artifactId>jbi-maven-plugin</artifactId>
> <extensions>true</extensions>
> </plugin>
> </plugins>
> </build>
>
> <properties>
> <componentName>bridge-su-file</componentName>
> </properties>
> </project>
There is no dependency on the servicemix-file component. This is why
you're getting a confusing error message. The jbi-maven-plugin cannot
figure out on which component this configuration is to be used. Add
the servicemix-file component as a dependency to the POM above.
Bruce
--
perl -e 'print unpack("u30","D0G)[EMAIL
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'
Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/
Blog: http://bruceblog.org/