You must reference a component in the dependencies
of the SU or give a component name. Take a look at the
different SUs in the distribution, they all refererence a
component.
On 10/20/06, dadade <[EMAIL PROTECTED]> wrote:
Thanks,
To Mavenize the project, I put the source codes and service.xml (JMSBinding)
in the loan-broker-su project. I build it and create a
loan-broker-su-1.0.zip.
Then I create a project call loan-broker-sa that has nothing in it. The
loan-broker-su depends on the loan-broker-su. When i build it, I get the
following error. What is wrong?
[INFO] Determining component name for service unit loan-broker-su
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] The service unit loan-broker-su does not have a dependency which is
packaged as a jbi-component or a project property 'componentName'
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 23 seconds
[INFO] Finished at: Thu Oct 19 18:54:55 PDT 2006
[INFO] Final Memory: 10M/22M
[INFO]
------------------------------------------------------------------------
bash-3.00$
Here is the some of the codes in the loan-broker-su pom file:
<modelVersion>4.0.0</modelVersion>
<groupId>loanbroker</groupId>
<artifactId>loan-broker-su</artifactId>
<packaging>jbi-service-unit</packaging>
<dependencies>
..all the dependency jars the source codes need ..
</dependencies>
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.servicemix.tooling</groupId>
<artifactId>jbi-maven-plugin</artifactId>
<extensions>true</extensions>
</plugin>
...
</build>
Here is some codes of the loan-broker-sa pom.xml
<modelVersion>4.0.0</modelVersion>
<groupId>com.lmco.tmos.log</groupId>
<artifactId>tmos-log-sa</artifactId>
<packaging>jbi-service-assembly</packaging>
<dependencies>
<dependency>
<groupId>loanbroker</groupId>
<artifactId>loan-broker-su</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.servicemix.tooling</groupId>
<artifactId>jbi-maven-plugin</artifactId>
<extensions>true</extensions>
</plugin>
...
</build>
Thanks for your help
gnodet wrote:
>
> When you reference a dependency in your pom, you can exclude
> some of its dependencies:
> <dependency>
> <groupId>...</groupId>
> <artifactId>...</artifactId>
> <version>...</version>
> <exclusions>
> <exclusion>
> <groupId>..</groupId>
> <artifactId>..</artifactId>
> </exclusion>
> ...
> </exclusions>
> </dependency>
>
> See
>
http://maven.apache.org/ref/2.0.3-SNAPSHOT/maven-model/maven.html#class_exclusion
> for more informations.
>
> On 10/18/06, dadade <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I am trying to convert the Ant build script to Maven Pom. I am using
>> Maven-2.0.4.
>>
>> In my pom.xml, I include lingo-1.0.jar because my client needs the
>> org.logicblaze.lingo.jms.impl.MultiplexingRequestor and
>> org.logicblaze.lingo.jms.Requestor.
>>
>> However, when I compile it, lingo-1.0.jar requires some run-time jars.
>> They
>> are:
>>
>> incubator-derby:derby:jar:10.1.1.0
>> javax.resource:connector:jar:1.0
>> javax.activation:activation:jar:1.0.2
>> javax.mail:mail:jar:1.3.2
>> incubator-derby:derbynet:jar:10.1.1.0
>>
>> Maven cannot find these jars (the pom files exist but not the jars) in
>> the
>> ibiblio.
>>
>> Where can I find these jars? Or how can I eliminate these dependencies?
>>
>> Thanks
>> --
>> View this message in context:
>> http://www.nabble.com/Mavenize-Loan-Broker-Example-tf2464094.html#a6869250
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Cheers,
> Guillaume Nodet
>
>
--
View this message in context:
http://www.nabble.com/Mavenize-Loan-Broker-Example-tf2464094.html#a6910429
Sent from the ServiceMix - User mailing list archive at Nabble.com.
--
Cheers,
Guillaume Nodet