dependenciesmaven-plugintransitivity

Transitive dependencies in maven plugins


Are dependencies in Maven plugins supposed to resolve their transitive dependencies or do they have to be manually added to the plugin dependencies?


Solution

  • Normal transitive dependency rules apply to maven plugins. You can further override existing plugin dependencies or add to the classpath seen by a plugin in your project's pom using that plugin's configuration - adding a dependencies section. An example can be seen here.