sidebar hamburger menu

Apache Lucene® & Solr

Apache®, Apache Lucene®, are either registered trademarks or trademarks of the Apache Software Foundation in the United States and/or other countries.


TuxCare's Endless Lifecycle Support (ELS) for Apache Lucene® and Apache Solr provides security patches and selected bug fixes that are integral to the stable operation of applications running on these libraries.

Supported Versions

  • Apache Lucene® 5.5.5
  • Apache Solr 5.5.5

Installation

Prerequisites

  • Maven or Gradle build tool installed
  • Nexus repository access credentials (username and password) — contact sales@tuxcare.com
  • To browse available artifacts, visit TuxCare Nexus and click Sign in in the top right corner. You may need to refresh the page after logging in.
  1. Navigate to the build tool directory

    • Windows
    Maven: C:\Users\{username}\.m2
    Gradle: C:\Users\{username}\.gradle
    
    • macOS
    Maven: /Users/{username}/.m2
    Gradle: /Users/{username}/.gradle
    
    • Linux
    Maven: /home/{username}/.m2
    Gradle: /home/{username}/.gradle
    
  2. Configure credentials

    For Maven, you may choose any valid <id> value instead of tuxcare-registry, but the same value must be used in both settings.xml and pom.xml.

    <?xml version="1.0" encoding="UTF-8"?>
    <settings xmlns="http://maven.apache.org/SETTINGS/1.1.0">
      <servers>
        <server>
          <id>tuxcare-registry</id>
          <username>USERNAME</username>
          <password>PASSWORD</password>
        </server>
      </servers>
    </settings>

    Here USERNAME and PASSWORD are your Tuxcare credentials.

  3. Add the TuxCare repository

    Add the TuxCare repository and plugins to your build configuration.

    <repositories>
      <repository>
        <id>tuxcare-registry</id>
        <url>https://nexus.repo.tuxcare.com/repository/els_java/</url>
      </repository>
    </repositories>
    • To fully switch from the official Apache Lucene® / Apache Solr repository, replace it with the TuxCare repository.
    • To keep both, add TuxCare after the official one.

    Example Maven and Gradle projects are available on GitHub. Ensure the required environment variables are set.

  4. Update dependencies

    Replace Apache Lucene® or Apache Solr dependencies with TuxCare-maintained versions. You can find artifact versions on Nexus — sign in with your TuxCare credentials.

    Choose version:
    <dependencies>
        <dependency>
            <groupId>org.apache.lucene</groupId>
            <artifactId>lucene-core</artifactId>
            <version>5.5.5-tuxcare.1</version>
        </dependency>
    </dependencies>
  5. Verify and build

    Verify the setup:

    mvn dependency:tree -Dverbose

    Build the project:

    mvn clean install

    The build tool should be able to identify and resolve dependencies from the TuxCare ELS for Apache Lucene® / Apache Solr repository.

Resolved CVEs

What's Next?