crossminer / scava

https://eclipse.org/scava/
Eclipse Public License 2.0
18 stars 13 forks source link

KB dependencies: Lucene versions #392

Closed creat89 closed 4 years ago

creat89 commented 4 years ago

Hello @md2manoppello,

Some months ago, during the development of the recommender based on the Scava Indexes, i.e. CROSSIndex, I commented you that there were some issues with the KB dependencies in particular the one of Lucene. I quote the email we exchanged 10/07/2019:

Lucene Version incompatibility: I have just seen that you use the Lucene version 7.5.0, which it is the most recent one. However, the version of ElasticSearch that Bitergia and we are using needs Lucene 7.3.1. As the dependencies are being solved using Maven, there cannot be two different versions of Lucene for a same project. Currently, and because of the way it is declared in the POM file, ElasticSearch is being forced to use Lucene 7.5.0. Nonetheless, this causes an assertion error when we try to use ElasticSearch in the knowledge base (the installed version of ElasticSearch in the server or computer uses Lucene 7.3.1). I'm not sure which are the implications of changing the version of Lucene, but it is something that it will need to solve somehow.

Lucene version and JUnit: I have achieved to run the recommender by modifying the POM and downgrading the version of LUCENE, but, only using a main method. For a weird reason JUnit test is still using the Lucene version 7.5.0. Do you have an idea of where this 7.5.0 could be declared? I have looked everywhere and still JUnit continues using 7.5.0

Currently, while trying to test the recommender for giving some examples to FEA (for issue #387), I'm noticing this is still an issue.

What could we do to fix this issue?

creat89 commented 4 years ago

The versions of Lucene are not a problem, so I'm going to close this issue.