Uploaded image for project: 'Solr Search Provider'
  1. Solr Search Provider
  2. MGNLEESOLR-163

Building project with content-indexer fails on banned com.sleepycat:je:jar:5.0.84 version

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 6.0.1
    • 6.0

      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.

        Acceptance criteria

              mdivilek Milan Divilek
              mdivilek Milan Divilek
              DeveloperX
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD