XWIKI-10336: Solr module triggers a build dependency on servlet api
* better fix

(cherry picked from commit 9494812befbc735628b9f6a4cb859d65adce8d3a)