Reputation: 17489
In order to simplify dependencies and the pom.xml file, I updated a Spring MVC app to use Spring IO platform Bill-Of-Materials.
However I have two problems:
<jetty.version>9.x</jetty.version>
). However this does not work. I have to explicitly add the dependency with the correct version to the dependencyManamgenent
section of the pom.xml file.com.fasterxml.jackson
). However we want to use com.fasterxml.jackson.dataformat.smile
which is not defined in the BOM. So we added the specific dependency to the app's pom.xml (dependencied
and dependencyManagement
). Is it possible to re-use the jackson
version property in the pom.xml ? Currently we have to add property (i.e. <com.fasterxml.jackson.dataformat.smile>
) with the corresponding version and when we update the spring io platform version we have to make sure to also update this property. Upvotes: 1
Views: 548
Reputation: 116091
You've hit a limitation in Maven. Reusing properties from a bom only works if your pom inherits the bom, either directly or indirectly, via its parent.
Perhaps you could use the Platform bom as the parent of the pom where you're currently defining the common dependencies.
Upvotes: 2