Thank you! but i have already done that,the pom.xml is like below:
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<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.mycompany</groupId>
<artifactId>external-service-http-provider</artifactId>
<packaging>jbi-service-unit</packaging>
<version>1.0-SNAPSHOT</version>
<name>Service Unit</name>
<url>http://www.myorganization.org</url>
<pluginRepositories>
<pluginRepository>
<id>logicblaze</id>
<name>LogicBlaze Repository</name>
<url>http://repo.logicblaze.com/maven2-all/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
<repositories>
<repository>
<id>logicblaze</id>
<name>LogicBlaze Repository</name>
<url>http://repo.logicblaze.com/maven2-all/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
<properties>
<servicemix-version>fuse-3.0.1</servicemix-version>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.servicemix</groupId>
<artifactId>servicemix-http</artifactId>
<version>fuse-3.0.1</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.servicemix.tooling</groupId>
<artifactId>jbi-maven-plugin</artifactId>
<version>${servicemix-version}</version>
<extensions>true</extensions>
<configuration>
<type>service-unit</type>
<deployDependencies>false</deployDependencies>
</configuration>
</plugin>
</plugins>
</build>
</project>
bsnyder wrote:
>
> On 1/16/07, beyond30lyc <[EMAIL PROTECTED]> wrote:
>>
>> Thank you!Yes,the consumer and provider are separate from each other,and
>> my
>> log :
> ...
> [INFO] Generating jbi.xml
> [INFO] Determining component name for service unit
> external-service-http-consumer
> [INFO] Project [EMAIL PROTECTED] packaged
> jbi-component
> [INFO] Determining component name for service unit
> external-service-http-provider2
> [ERROR] mojo-execute : jbi:generate-jbi-service-assembly-descriptor
> Diagnosis: The service unit external-service-http-provider2 does not have
> a
> dependency which is packaged as a jbi-component or a project property
> 'componentName'
> FATAL ERROR: Error executing Maven for a project
> [ERROR] project-execute :
> com.mycompany:external-service-assembly:jbi-service-assembly:1.0-SNAPSHOT
> (
> task-segment: [install, jbi:projectDeploy] )
> Diagnosis: The service unit external-service-http-provider2 does not have
> a
> dependency which is packaged as a jbi-component or a project property
> 'componentName'
>
> The error above indicates that there is no dependency on a JBI
> component in the pom.xml file for the external-service-http-provider2
> project. I gather that this project SU is for the servicemix-http
> component, correct? If so, then the pom.xml file should list a
> dependency on that component. Please post the pom.xml file for that
> component.
>
> Bruce
> --
> perl -e 'print
> unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
>
> Apache Geronimo - http://geronimo.apache.org/
> Apache ActiveMQ - http://activemq.org/
> Apache ServiceMix - http://servicemix.org/
> Castor - http://castor.org/
>
>
--
View this message in context:
http://www.nabble.com/Expose-external-web-service-with-http-component-%28very-simplified%29-tf3014055s12049.html#a8405039
Sent from the ServiceMix - User mailing list archive at Nabble.com.