Re: Dependencies missing when using solr-core-10.0.0 instead of 9.10.1

Thorsten Heit <[email protected]> Thu, 12 Mar 2026 11:28:25 +0100
Newsgroups gmane.comp.jakarta.turbine.maven.user
Message-ID <[email protected]>
Hi,

just tried with 3.9.12, same results.


Thorsten


Am 12.03.26 um 11:21 schrieb Tamás Cservenák:
> Do you have same thing happening with 3.9.12?
> 
> T
> 
> On Thu, Mar 12, 2026, 10:47 Thorsten Heit <[email protected]> wrote:
> 
>> Hi,
>>
>> I forgot to mention that this was tested with Maven 3.9.13 and Java 25
>> (Temurin 25.0.2 to be precise) on Windows 11 if that matters.
>>
>>
>> /Thorsten
>>
>> Am 12.03.26 um 10:32 schrieb Thorsten Heit:
>>> Hi,
>>>
>>> I have asked this on the Solr mailing list before, but got no helpful
>>> answer so far. I hope someone here as a glue what's going on:
>>>
>>>
>>> I have written an internal library that uses SolrJ for connecting to a
>>> (remote) Solr server. The library is a multi-module project consisting
>>> of several parts; the interesting ones are:
>>>
>>> - a common module that represents the bridge to Solr (by using SolrJ)
>>> - a test module that implements JUnit tests and an integration test;
>>> uses jetty-maven-plugin to start a local Solr server with an empty
>>> database before the IT is executed
>>>
>>>
>>> Actually I'm using the following dependencies in the IT module pom
>>> (unnecessary parts omitted):
>>>
>>> <dependencies>
>>>       <dependency>
>>>           <groupId>org.apache.logging.log4j</groupId>
>>>           <artifactId>log4j-core</artifactId>
>>>       </dependency>
>>>       <dependency>
>>>           <groupId>${project.groupId}</groupId>
>>>           <!-- bridge to connect to Solr: -->
>>>           <artifactId>solr-connector-common</artifactId>
>>>           <version>${project.version}</version>
>>>       </dependency>
>>>       <dependency>
>>>           <groupId>org.apache.solr</groupId>
>>>           <artifactId>solr-core</artifactId>
>>>           <version>${solr.version}</version>
>>>       </dependency>
>>>
>>>       <dependency>
>>>           <groupId>org.junit.jupiter</groupId>
>>>           <artifactId>junit-jupiter-engine</artifactId>
>>>           <scope>test</scope>
>>>       </dependency>
>>>       <dependency>
>>>           <groupId>org.junit.jupiter</groupId>
>>>           <artifactId>junit-jupiter-params</artifactId>
>>>           <scope>test</scope>
>>>       </dependency>
>>> </dependencies>
>>>
>>> (the property "solr.version" is defined in the parent pom)
>>>
>>>
>>> With solr-core-9.10.1 "mvn dependency:tree" gives me
>>>
>>> (...)
>>> [INFO] +- org.apache.solr:solr-core:jar:9.10.1:compile
>>> [INFO] |  +- org.apache.lucene:lucene-core:jar:9.12.2:compile
>>> [INFO] |  +- org.apache.lucene:lucene-analysis-common:jar:9.12.2:compile
>>> [INFO] |  +- org.apache.lucene:lucene-queries:jar:9.12.3:compile
>>> (...)
>>> [INFO] |  \- org.xerial.snappy:snappy-java:jar:1.1.10.8:runtime
>>> [INFO] +- org.eclipse.jdt:org.eclipse.jdt.annotation:jar:2.4.100:provided
>>> [INFO] +- org.junit.jupiter:junit-jupiter-engine:jar:6.0.3:test
>>> [INFO] |  +- org.junit.platform:junit-platform-engine:jar:6.0.3:test
>>> [INFO] |  |  +- org.opentest4j:opentest4j:jar:1.3.0:test
>>> [INFO] |  |  \- org.junit.platform:junit-platform-commons:jar:6.0.3:test
>>> [INFO] |  +- org.junit.jupiter:junit-jupiter-api:jar:6.0.3:test
>>> [INFO] |  +- org.apiguardian:apiguardian-api:jar:1.1.2:test
>>> [INFO] |  \- org.jspecify:jspecify:jar:1.0.0:runtime
>>> [INFO] \- org.junit.jupiter:junit-jupiter-params:jar:6.0.3:test
>>> (...)
>>>
>>>
>>> What puzzles me that the same command with solr-core-10.0.0 only shows
>>>
>>> (...)
>>> [INFO] +- org.apache.solr:solr-core:jar:10.0.0:compile
>>> [INFO] +- org.eclipse.jdt:org.eclipse.jdt.annotation:jar:2.4.100:provided
>>> [INFO] +- org.junit.jupiter:junit-jupiter-engine:jar:6.0.3:test
>>> [INFO] |  +- org.junit.platform:junit-platform-engine:jar:6.0.3:test
>>> [INFO] |  |  +- org.opentest4j:opentest4j:jar:1.3.0:test
>>> [INFO] |  |  \- org.junit.platform:junit-platform-commons:jar:6.0.3:test
>>> [INFO] |  +- org.junit.jupiter:junit-jupiter-api:jar:6.0.3:test
>>> [INFO] |  +- org.apiguardian:apiguardian-api:jar:1.1.2:test
>>> [INFO] |  \- org.jspecify:jspecify:jar:1.0.0:runtime
>>> [INFO] \- org.junit.jupiter:junit-jupiter-params:jar:6.0.3:test
>>> (...)
>>>
>>> i.e. no dependencies at all in solr-core-10.0.0 in the tree. Therefore
>>> the IT test fails with ClassNotFoundExceptions when Jetty starts the
>>> local server:
>>>
>>> (...)
>>> [WARNING] Failed startup of context
>>> oeje10mp.MavenWebAppContext@54bd2345{/solr,/solr,b=file:///(...)/solr-
>>> connector-tests/src/main/
>>> webapp/,a=STOPPED,h=oeje10s.SessionHandler@10897221{STOPPED}}{file:///
>>> (...)/solr-connector-tests/src/main/webapp/}
>>> java.lang.NoClassDefFoundError: org/apache/solr/common/cloud/
>>> ClusterPropertiesListener
>>>       at java.lang.Class.getDeclaredConstructors0 (Native Method)
>>>       at java.lang.Class.privateGetDeclaredConstructors (Class.java:2985)
>>>       at java.lang.Class.getConstructor0 (Class.java:3180)
>>>       at java.lang.Class.getDeclaredConstructor (Class.java:2491)
>>>       at
>>>
>> org.eclipse.jetty.ee10.servlet.ServletContextHandler$ServletScopedContext.createInstance
>> (ServletContextHandler.java:2023)
>>>       at org.eclipse.jetty.ee10.servlet.BaseHolder.createInstance
>>> (BaseHolder.java:203)
>>> (...)
>>>
>>>
>>> But:
>>>
>>> When you look at the pom of solr-core-10.0.0 there are indeed lots of
>>> dependencies; if I counted correctly 76 in sum, 9 having scope
>>> "compiled" and 67 with scope "runtime".
>>> Additionally the poms of solr-core-9.10.1 and solr-core-10.0.0 don't
>>> differ much. The dependencies are basically the same, some with newer
>>> versions; a few removed, a few added IIRC.
>>>
>>>
>>> To make the IT work again I manually have to add about a third of the
>>> dependencies defined in solr-core-10.0.0 such as org.apache.solr:solr-
>>> solrj, org.apache.solr:solr-solrj-zookeeper, tons of lucene dependencies
>>> etc.
>>>
>>>
>>> Has somehere a clue why this is necessary?
>>>
>>>
>>> Regards
>>>
>>> Thorsten
>>
>>
>
OpenPGP_0x5A54BBB878225E08.asc (application/pgp-keys, 3 KB)
-----BEGIN PGP PUBLIC KEY BLOCK-----

xsFNBE1UerIBEADOIKMezkCBDe0CkxPZ0SLk7tYlnHBdC8KIhxHY+AodLK0FBUKV
TLoTT6BqwPqJEr2JUF9v8grNqAPgFnGr9dbE3xkrcUCVjpYXl74iE0HpyTIWmW/b
RTUdzZeI2P4tS6/sfoGcw2rVNIxUGNtowqwRiMUy7E6jK9RvYuDlB0ekB2H9yphM
tiRMf5ndnBWCNYC3ZvXvE3fmXRXHWepEi75HmdUr0qF5mcQtftdFOVbQQ2sHqncd
Zdh60YMeA5AU/GBA8mMjiOUFxxpezLduzaO97ljNHBeiHkjbvLxqMNBammI4KYLp
umqQqMRwPr6k+fQ25HUqUG5nL1KeIZ5j0tblGEcwLdTPMHkEZpSQVV7uI6wknL6D
cVpCxJayrYICvticMZ42zEHYRp4MQZeDyQ4LCKsHGcfa/0zm7DZmhJWzQdlLWnEa
bUqJAetjV9pbe2YScZB8UpRu17aqLhzXgD3Ca539KG+rcXYLFKX+H4l1C71pmDTC
mqZixOoYbRh0eEw+lOgmSccpjbPyIQyUsATTeLaK294NHmUXai379CNKs+RvUuPu
wAr++krdrPyYPYFgI9bYhAZLhzHaLM2c94GB4u+cC7q+RgG1TfYKs4zIzHFdOulx
0LrA1EFpO2FWLxqEYluGP6V70ntT16Iy/lnXJ9/3dgQ7PNzIQVlXryvT/QARAQAB
zRxUaG9yc3RlbiBIZWl0IDx0aGVpdEBnbXguZGU+wsF4BBMBAgAiBQJNVHqyAhsD
BgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRBaVLu4eCJeCKwaD/99CdQ+Z7xZ
nCRED/L2De6Tr740uf98+bZra/zCfXHuxjHnwD/8mNJiAj4zL+rfzDkeN55zguUS
KKE1oKGWpRrkTFVUZKIMMOQR+kP55Z1lPxuD11/qlQCmzHtE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Np
+EHSCFxvl2gqtMWb+5w8zd4LGspdELNz+3UDcEhRDxIJLl5ex2k4IPISMZVouOI0
IDgM565KaAeL1u4P3FNj/zHN91YlMk06Z9DThEQ/NvUv7PzEyThn8mJiHU856697
hoAREffmK/2EEH4ktEaftBxfIHg3bmkaVNiBbGRpQ3e0f8pQgkASjCTCfaRSmFXw
BQ5Ut3Tr1PCobwpa+seFVpldZscAEQEAAcLBXwQYAQIACQUCTVR6sgIbDAAKCRBa
VLu4eCJeCE3yD/0RcFOEXLV6NH7Ene/bwsdXzt5gR2bv7hQwV3dgP2YFFlwqN5nv
3sAi8ElR8VHtKBDmnoiuOMDXdAGf7Cdx0BfHSn1BZ5z74UJZb0xyphVScT0DJrHt
EQcMcJ2GPQle57e4CBTnhNmrmdFUfjTkWF/QDERhX7S708yVXLRpCqTL/Z5msRrP
NRyxNggmQ+jxAKf2bbvDKQD+2LTtXJ89JPVT+yZ8uk5vAWve6y+peP5WBfqX7lgJ
vTztEuT8/rjcw96XycPqc78roEtvEaqKqQB0/JywyZNt1Yjzl2RWYB7wQ/E72och
fM63e8MvhMz1qa7MV84VYQ1R0bdarh0grJZtMcj8GDzzGgKbc9IMK9LAVrMzALp9
Uyrrv7zJ3PCnh8/FkhYUkoBgIo0+Q5uc9Aan87MC9sD6jRXOY3AbnrBu/1WV/Sn0
U8p/3KZmALblJjnp1XzwYUB2hHfuCHX+sbJKEt4dGJvslMgnUH7TicV2DnWp/WPB
lHcbQoZOuizvFBCJSdIghC5kCth7DeZYPGuROY0IDdDMkFgyHAHzt+D7duucswma
koxmWP1vj+QXHVuwz2Jvt74LQ084IiON6DojujcCVWT3gby++lemKsxRpPDQW3eZ
AfgJOW8zpAwkIMQ0GdQPts0oTdjJV4lxNMBWwjcsEb3iqbQjQlao8Isigg==
=Vfaa
-----END PGP PUBLIC KEY BLOCK-----
OpenPGP_signature.asc (application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE-----

wsF5BAABCAAjFiEEg4R16yy6iEem6mq+WlS7uHgiXggFAmmylUkFAwAAAAAACgkQWlS7uHgiXggE
fQ/7BwmAn10jzj8JwYD9VgkLMyQM1pSTKNy9AsE17Cow2Lkv57RIzA2t068zlUJq4MeGthNsBCtI
KONJ1+FeTGvR34VwVEk25PqtANsB1EKwRQdVaaYIpv8C1G4elPQfgt/AZllNt6bS107pPs5mrBQf
vbPVKHfhiPgthHeTGeWmhPjd7rAdEOVewF+DrolAUXVHGq10H/5h/mm50VxE+qo3JLYoCW2pPAAX
4h/SczQ9bOVi7VGsHUgbkjRDaJ6gUvvrLGqPQ6hf7ZbgwjhWWQiY2Nei5+73z+rKp3AE/Ik92NI5
/1ezEn5YxOv+Wpk05q0BqKoPRT15TkmXcPzdZNQx6hPmFWl2refjDARfZMeAQLFsUHlPtsquQEQX
NLpC1f5+Awbga2doWlu/y+/yB4EUnHXvZ8Y/54sAjpquwLFKmOLenqaLsHhcI7yShm4kP17lh5DK
b0iSq3B0hk9WiBIrDn8gKZRGdMIVVCsXwfkYXNuoOzEO5/T45KPkvmdtjlCgNe9uBmcLU/3RBdZl
53yoUWRKb31bepCeGotYTYyTf1qpcDUtGLXgjZQoBQybLMNVEJWHFFUjbk/CT7FEM5aSpjgW8dQw
LmBfAofFm/KD8bqoz2bYFatbgNbEE6FUvv88mQfY4bcWDGj7go678+1f4oKh5cA5gbjxO6xjTvap
yn0=
=ZCeK
-----END PGP SIGNATURE-----