How can I use Lucene classes in my custom field plugin?

Tobias Rapp December 3, 2019

I have a custom field plugin that needs to be migrated to the current Jira version. The plugin is based on class CalculatedCFType and implements interface GroupSelectorField. This interface requires a single method

org.apache.lucene.search.Query getQueryForGroup(String fieldID, String groupName)

to be implemented but I struggle to add the Lucene dependency to my plugin project. Is there some groupId/artefactId that needs to be added to pom.xml?

1 answer

1 accepted

0 votes
Answer accepted
Tobias Rapp December 3, 2019

Adding the following dependency block to pom.xml seems to work:

<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
<version>3.3.0</version>
<scope>provided</scope>
</dependency>

Suggest an answer

Log in or Sign up to answer