[
https://issues.apache.org/jira/browse/SOLR-18003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18068565#comment-18068565
]
Johannes Baiter commented on SOLR-18003:
----------------------------------------
The exact same problem still persists with the {{solr-core}} 10.0 POM.
We include that as a dependency for a solr plugin, and the build is currently
broken for 10.0, due to the missing versions on the Jackson runtime
dependencies.
https://repo1.maven.org/maven2/org/apache/solr/solr-core/10.0.0/solr-core-10.0.0.pom
It's missing the Jackson BOM that is present in SolrJ.
> 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: Blocker
> Labels: easyfix, pull-request-available
> Fix For: 10.0
>
> Time Spent: 40m
> 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]