[MGNLEESOLR-174] info.magnolia.solr groupId libraries keep bringing old magnolia-content-indexer artifactId Created: 08/Nov/22 Updated: 08/Nov/22 Resolved: 08/Nov/22 |
|
| Status: | Closed |
| Project: | Solr Search Provider |
| Component/s: | None |
| Affects Version/s: | 6.1.2 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Sergio Marino | Assignee: | Federico Grilli |
| Resolution: | Workaround exists | Votes: | 0 |
| Labels: | None | ||
| 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
[ ]*
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
|
||||
| Date of First Response: | |||||
| Team: | |||||
| Description |
|
Steps to reproduce From your pom.xml apart add magnolia-content-indexer latest version, 6.1.2, and then add any library whose groupId is info.magnolia.solr. For instance: pom.xml
<dependency>
<groupId>info.magnolia.solr</groupId>
<artifactId>magnolia-content-indexer</artifactId>
<version>6.1.2</version>
<exclusions>
<exclusion>
<groupId>org.apache.tika</groupId>
<artifactId>tika-parsers</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>info.magnolia.solr</groupId>
<artifactId>magnolia-solr-search-provider</artifactId>
<version>6.1.2</version>
<exclusions>
<exclusion>
<groupId>org.apache.tika</groupId>
<artifactId>tika-parsers</artifactId>
</exclusion>
</exclusions>
</dependency>
In this case the library magnolia-solr-search-provider also brings the old magnolia-content-indexer 6.1.1 and there is a compilation error. Expected results Actual results
Failure to find info.magnolia.maven.poms-internal:magnolia-parent-pom-internal:pom:50 in https://ci-repo.aexp.com/java-proxy/content/groups/prod was cached in the local repository, resolution will not be reattempted until the update interval of prod has elapsed or updates are forced
WorkaroundWhen adding, for the above example, magnolia-solr-search-provider artifactId also exclude the magnolia-content-indexer. So the it looks like this: pom.xml
<dependency>
<groupId>info.magnolia.solr</groupId>
<artifactId>magnolia-solr-search-provider</artifactId>
<version>6.1.2</version>
<exclusions>
<exclusion>
<groupId>org.apache.tika</groupId>
<artifactId>tika-parsers</artifactId>
</exclusion>
<exclusion>
<groupId>info.magnolia.solr</groupId>
<artifactId>magnolia-content-indexer</artifactId>
</exclusion>
</exclusions>
</dependency>
Note the magnolia-content-indexer exclusion needs to be done for every library whose groupId is info.magnolia.solr (magnolia-solr-search-provider, magnolia-solr-templating, magnolia-solr-workbench, magnolia-solr-ui) Dev notesThis happens when using dx-core's parent pom to manage Magnolia Solr module dependencies. 6.2.26 parent pom manages Solr module 6.1.1 version which is affected by a known issue. |