Our project have encountered an urgent situation in which we have to migrate all modules into Axon.ivy v5.1.4. The migration have some serious trouble with Lucene. Our project uses Lucene v3.6.0 and we have the
We found out that the Axon.ivy has upgraded Lucene to v4.5.1 which contains a lots of incompatible changes compared to Lucene v3.6.0. The problem is we could not find a way to force the Axon.ivy build the project with UPDATEWe later tried to upgrade our implementation into Lucene 4.5.1 but got several other problems: (1) Axon.ivy issues warnings about we are trying to access Lucene API. (2) Start the project in Axon.ivy Designer will encounter
.. even if all the jars are shipped with Axon.ivy. (3) If we try to include the jars file into our projects (in the classpath), the build will halt with the QUESTIONS
SAMPLE PROJECTSI attach in this email the two sample projects which illustrate the problems we are facing. We tested the two with AxonIvyDesigner5.1.4.48243_Windows_x64:
UPDATE 2 (extend the answer)The solution from Reguel Wermelinger which suggest to repack all the classes in 1- Download JarJar (hosted on Google Code, if you read this after 25.01.2016, please search it on GitHub). 2 - Put the file 3 - Create a text file, namely
4 - Execute the command
5 - Done! You can download the already-repackged Please note that this is only a work-around. The Axon.ivy still has problem if you use the Lucene v4.5.1 shipped with it. asked 13.04.2015 at 08:07 Genzer Hawker Reguel Werme... ♦♦ |
I guess that the build problems come from a not 100% matching lucene-jar. So to be sure that you use the same version as in the engine: try to get the correct lucene jar from ivyEngine.zip in /lib/shared directory and reference it in your project classpath. UPDATE: since ivy 5.0 our osgi plugin hides the lucene jars explicitly from the classpath. so that other projects will not have these ivy-core dependcy problems in the future. If you want to be 200% save that your project classes and ivy core classes are independet i recommend that you try re-packaging the lucene version you want to use. It means that you change the namespace of every class in the lucene JAR to not land in the JAR hell of conflicting versions. An example can be found here: where I repacked hsqldb of another version as in the ivy core. More infos about repackaging can be founde here on repackage.org answered 13.04.2015 at 08:47 Reguel Werme... ♦♦ 1
The solution which repack the Lucene package works, I already extended my question describing the steps. I'll accept this as an correct answer.
(13.04.2015 at 13:00)
Genzer Hawker
|
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 13.04.2015 at 08:07
Seen: 3,662 times
Last updated: 13.04.2015 at 13:28