activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: Maven assembly with spring
Date Mon, 10 Dec 2007 07:23:51 GMT
On 10/12/2007, Jonathan Share <> wrote:
> Hi,
> Quick background, I have a feed crawler implemented as a standalone
> spring application that I deploy to the server by using maven 2's
> jar-with-dependencies assembly.
> I have recently added activemq to this application so that I can
> distribute the crawler nodes (previous implementation just used local
> thread pools, limiting processing to one machine).
> Unfortunately when maven creates the jar file including all dependencies
> it extracts all of the jar files and then re-packages them into one.
> When it does this the spring.jar:META-INF/spring-schemas gets
> overwritten by the activemq-core.jar:META-INF/spring-schemas this causes
> spring to fail to locate it's own schema and the spring context fails to
> initialise with an xml parsing error.
> Has anyone else come across this, or similar issues?
> Anyone have any inspiration on how I can resolve this problem?

Sounds like the META-INF/spring* files need to be concatenated
together. I've no idea if the maven plugin can handle such a thing
though; you might have to hack the plugin a little.

Open Source Integration

View raw message