Marius
Marius

Reputation: 980

maven: add same 2 artifacts but with different versions

Is this possible?

In my project I have Hibernate search which need apache lucene version 3.x,
but my project also has magnolia cms which needs apache jackrabbit which in turn needs apache lucene 2.x.

The only solution would be to use lucene 3.x for hibernate search and 2.x for magnolia, but how can I do that?

thank you :)

Upvotes: 2

Views: 284

Answers (1)

Sean Patrick Floyd
Sean Patrick Floyd

Reputation: 298818

Get a newer JackRabbit version. The latest versions are based on Lucene 3.x.

If for some reason you can't do that, you will have to go through elaborate package-renaming tasks using the maven-shade-plugin, but that's nasty, so I'd go with the new version instead.

Upvotes: 2

Related Questions