[MGNLEESOLR-163] Building project with content-indexer fails on banned com.sleepycat:je:jar:5.0.84 version Created: 21/Apr/22  Updated: 13/Jul/22  Resolved: 10/May/22

Status: Closed
Project: Solr Search Provider
Component/s: None
Affects Version/s: 6.0
Fix Version/s: 6.0.1

Type: Bug Priority: Critical
Reporter: Milan Divilek Assignee: Milan Divilek
Resolution: Fixed Votes: 0
Labels: quickwin
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Release notes required:
Yes
Date of First Response:
Epic Link: Support
Story Points: 1
Team: DeveloperX

 Description   

Steps to reproduce

1. Use the maven setting for DX Core project settings (not the settings for Magnolia staff) - https://wiki.magnolia-cms.com/display/DEV/Maven+setup#Mavensetup-DXCoreprojectsettings
2. Into your webapp pom add dependency to content-indexer 6.0

    <dependency>
      <groupId>info.magnolia.solr</groupId>
      <artifactId>magnolia-content-indexer</artifactId>
      <version>6.0</version>
    </dependency>

Expected results

Project is build without error

Actual results

Build fails on getting the old com.sleepycat:je:jar:5.0.84

[ERROR] Failed to execute goal on project forge-community-sample: Could not resolve dependencies for project info.magnolia.forge:forge-community-sample:jar:1.0-SNAPSHOT: Failed to collect dependencies at info.magnolia.solr:magnolia-content-indexer:jar:6.0 -> edu.uci.ics:crawler4j:jar:4.4.0 -> com.sleepycat:je:jar:5.0.84: Failed to read artifact descriptor for com.sleepycat:je:jar:5.0.84: Could not transfer artifact com.sleepycat:je:pom:5.0.84 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [oracleReleases (http://download.oracle.com/maven, default, releases+snapshots)] -> [Help 1]

Workaround

    <dependency>
      <groupId>info.magnolia.solr</groupId>
      <artifactId>magnolia-content-indexer</artifactId>
      <version>6.0</version>
      <exclusions>
        <exclusion>
          <groupId>com.sleepycat</groupId>
          <artifactId>je</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>com.sleepycat</groupId>
      <artifactId>je</artifactId>
      <version>18.3.12</version>
    </dependency>

Development notes

The old com.sleepycat:je:jar:5.0.84 version is resolved from edu.uci.ics:crawler4j:jar:4.4.0, but it actually never gets into webapp because content-indexer module has newer dependency to je lib https://git.magnolia-cms.com/projects/ENTERPRISE/repos/solr-search-provider/browse/magnolia-content-indexer/pom.xml#46 , but maven still tries to get it during the build.


Generated at Mon Feb 12 11:00:43 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.