[MGNLSITE-98] broken dependencies magnolia-external-dependencies:pom (5.6.9 + 5.7.5) Created: 01/Apr/20  Updated: 02/Apr/20  Resolved: 02/Apr/20

Status: Closed
Project: Magnolia Site Module
Component/s: None
Affects Version/s: 1.2.4
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Oliver Böhrs Assignee: Unassigned
Resolution: Workaround exists Votes: 0
Labels: None
Remaining Estimate: 0.25h
Time Spent: Not Specified
Original Estimate: 0.25h

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

 Description   

I'm migrating a project from 6.1.4 to 6.2 (already happens in 6.1.5) with new site-module version, but can't be built, since the "magnolia-external-dependencies"-module isn't accessible in the public maven repository:

 

Failed to collect dependencies at info.magnolia.templating:magnolia-templating-kit:jar:1.2.3 -> info.magnolia.templating:magnolia-templating-essentials-models:jar:1.2.3 -> info.magnolia.site:magnolia-site:jar:1.2.4: Failed to read artifact descriptor for info.magnolia.site:magnolia-site:jar:1.2.4: Could not find artifact info.magnolia.boms:magnolia-external-dependencies:pom:5.6.9 in magnolia.public (https://nexus.magnolia-cms.com/content/groups/public) -> [Help 1]

 

I tried to exclude the "magnolia-external-dependencies" dependency, but that gave me more problems.

 

when I exclude those broken dependencies, then other modules - like publishing-core - includes other unavailable "magnolia-external-dependencies" versions (5.7.5):

Failed to collect dependencies at info.magnolia.publishing:magnolia-publishing-core:jar:1.1.4: Failed to read artifact descriptor for info.magnolia.publishing:magnolia-publishing-core:jar:1.1.4: Could not find artifact info.magnolia.boms:magnolia-external-dependencies:pom:5.7.5 in magnolia.public (https://nexus.magnolia-cms.com/content/groups/public) -> [Help 1]

to fix this, just upload the artifacts to the public maven repository (this is the "patch")

 

 



 Comments   
Comment by Mercedes Iruela [ 02/Apr/20 ]

Hi Oliver,

this is a known issue as you can read in Magnolia 6.2 Release notes:Site module inaccessible to non-DX Core users :

Site 1.2.4 relies on artifacts in maintenance mode (BOM 5.6.9), which makes it inaccessible to non-DX Core users. To fix this, the recommended Site 1.3 is now available in our public Nexus repository and will be bundled with Magnolia 6.2.1.

Hope this helps.

Mercedes

Comment by Oliver Böhrs [ 02/Apr/20 ]

hi mercedes, thanks for the fast response!

it seems to help. had to add some more exclusions:

<dependency>
  <groupId>info.magnolia.templating</groupId>
  <artifactId>magnolia-templating-kit</artifactId>
  <version>${magnoliaMtkVersion}</version>
  <scope>provided</scope>
  <exclusions>
    <exclusion>
      <groupId>info.magnolia.templating</groupId>
      <artifactId>magnolia-templating-essentials-models</artifactId>
    </exclusion>
  </exclusions>
</dependency>
<dependency>
  <groupId>info.magnolia.templating</groupId>
  <artifactId>magnolia-templating-essentials-models</artifactId>
  <version>${magnoliaMteModelsVersion}</version>
  <scope>provided</scope>
  <exclusions>
    <exclusion>
      <groupId>info.magnolia.site</groupId>
      <artifactId>magnolia-site</artifactId>
    </exclusion>
  </exclusions>
</dependency>

thanks a lot!

Comment by Oliver Böhrs [ 02/Apr/20 ]

ps: in magnolia 6.1.5 I had to upgrade publishing-core from to 1.2, because there was the same issue. event though the official supported version is 1.1.4 in magnolia 6.1.5

Comment by Mercedes Iruela [ 02/Apr/20 ]

Thanks for reporting. We added a note in the Release notes.

Comment by Oliver Böhrs [ 02/Apr/20 ]

thanks to you!

Generated at Mon Feb 12 07:12:42 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.