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

mark commented on SOLR-18003:
-----------------------------

afaik "import" scoped BOM dependencies do not propagate/inherit, unless they 
are imported (solrj would need to import the solr api as a bom) or are used as 
a parent; that means that when solr-api imports the jackson bom; it provides 
version information for only those dependencies that are in the solr-api pom 
(and those would be available transitively); solr api does not have all the 
jackson dependencies that solr-solrj has (if it did jackson dependencies would 
not need to be declared in the solrj pom at all; it could just rely on the 
transitive dependencies of the deps tree)

> 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