Never mind, as usual right after I post a question I just happen to stumble
on the answer.  Which is that there is a generateJbiDescriptor property to
set to false.  I guess I'll need to learn to create and manage my own
jbi.xml file now. :)

On Jan 7, 2008 10:51 PM, Ryan Moquin <[EMAIL PROTECTED]> wrote:

> I was looking at Guillaume's blog post:
>
> http://gnodet.blogspot.com/2007/03/using-maven-to-switch-runtime.html
>
> but haven't been able to figure out how to make this happen properly.  My
> xbean.xml file in target\classes has the properties filtered correctly but
> it looks like the maven jbi plugin is looking at the src/main/resources
> directory... is there something in the plugin configuration that I need to
> configure?
>
> [WARNING] Failed to generate jbi.xml:
> org.apache.servicemix.maven.plugin.jbi.JbiPluginException: Unable to
> generate servi
> ce unit descriptor!
> org.apache.servicemix.maven.plugin.jbi.JbiPluginException: Unable to
> generate service unit descriptor!
>         at
> org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.generateJbiDescriptor
> (GenerateService
> UnitDescriptorMojo.java:206)
> .....
> Caused by: org.springframework.beans.factory.BeanCreationException : Error
> creating bean with name 'org.apache.servicemix.
> jms.JmsEndpoint' defined in URL
> [file:/C:/projects/services/NotificationJBI/NotificationJmsSU/src/main/resou
> rces/xbean.xml]: Cannot resolve reference to bean 'connectionFactory'
> while setting bean property 'connectionFactory'; ne
> sted exception is org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'connectionFacto
> ry' defined in URL
> [file:/C:/projects/services/NotificationJBI/NotificationJmsSU/src/main/resources/xbean.xm
>
> l]: Error setting property values; nested exception is
> org.springframework.beans.PropertyBatchUpdateException; nested Pro
> pertyAccessExceptions (1) are:
> PropertyAccessException 1:
> org.springframework.beans.MethodInvocationException : Property 'brokerURL'
> threw exception; nes
> ted exception is java.lang.IllegalArgumentException: Invalid broker URI:
> tcp://localhost:${activemq-port}
>         at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueReso
> lver.java:269)
>
>
> Why is the plugin reading the src/main/resources directory (near the
> bottom of the error output)?
>

Reply via email to