[ 
https://issues.apache.org/jira/browse/SOLR-18003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18048777#comment-18048777
 ] 

Christos Malliaridis commented on SOLR-18003:
---------------------------------------------

I have further analyzed the current dependencies and their resolution in 
consumer projects.

It seems that only {{solr-api}}, {{solr-core}} and {{solr-modules-llm}} are 
using directly these dependencies without versions in the catalog, and they all 
resolve them properly in consumer projects. The first two modules already 
include the platform module as a direct dependency, and the llm module includes 
the BOM library as platform dependency, so all three modules are fine.

The only module that seems to be affected by that is {{solr-solrj}} which 
depends on {{solr-api}} via {{api}}. Apparently it seems to ignore the platform 
constraints added in {{solr-api}}, probably due to transitive dependencies. So 
{{api platform(":platform")}} does not pass down constraints transitively to 
everyone when the module is added via {{api ...}}

> The POM for org.apache.solr:solr-solrj:jar:11.0.0-SNAPSHOT is invalid
> ---------------------------------------------------------------------
>
>                 Key: SOLR-18003
>                 URL: https://issues.apache.org/jira/browse/SOLR-18003
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrJ
>    Affects Versions: 10.0, main(11.0)
>         Environment: * https://github.com/Tailormap/tailormap-api/pull/1522
>            Reporter: mark
>            Priority: Trivial
>              Labels: easyfix, pull-request-available
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> While preparing an upgrade of SolrJ from 9.10 to 10.x or later (forced by 
> upgrading to Spring Boot 4) I run into the following warning while building"
> {{[WARNING] The POM for 
> org.apache.solr:solr-solrj:jar:11.0.0-20251126.070616-55 is invalid, 
> transitive dependencies (if any) will not be available: 3 problems were 
> encountered while building the effective model for 
> org.apache.solr:solr-solrj:11.0.0-SNAPSHOT}}
> {{[ERROR] 'dependencies.dependency.version' for 
> com.fasterxml.jackson.core:jackson-databind:jar is missing. @ }}
> {{[ERROR] 'dependencies.dependency.version' for 
> com.fasterxml.jackson.core:jackson-annotations:jar is missing. @ }}
> {{[ERROR] 'dependencies.dependency.version' for 
> com.fasterxml.jackson.core:jackson-core:jar is missing. @ }}
> {*}Note{*}: this message appears for both 10.0.0-SNAPSHOT as well as 
> 11.0.0-SNAPSHOT (I don't see snapshots for 10.1.x but that may have the same 
> issue)
> The problem then shows up at runtime because transitive deoendecies are 
> missing resulting in ClassNotFoundExceptions, eg. 
> https://github.com/Tailormap/tailormap-api/actions/runs/19762262610/job/56627206060?pr=1522#step:7:2148
> I think the pom file for SolrJ should:
>  * import the Jackson BOM atrifact the same way as the solr-api does,
> or
>  * solr-solrj should have a parent that provides the Jackson version.
> I guess either should not be hard for someone that understands how the build 
> and publishing of the artifacts works.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to