[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: |
|
||||
| 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: | |||||
| Description |
Steps to reproduce1. 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
<dependency>
<groupId>info.magnolia.solr</groupId>
<artifactId>magnolia-content-indexer</artifactId>
<version>6.0</version>
</dependency>
Expected resultsProject is build without error Actual resultsBuild 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 notesThe 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. |