I’m using the mojo-executor library to call a number of Maven plugins from within another Maven plugin.
However, I can’t find any way to specify dependencies on the plugins as I’m invoking them. This is an issue for the maven-assembly-plugin, where I need to add an assembly descriptor file as a dependency. Adding the dependency at another level doesn’t seem to get the descriptor file onto the plugin’s classpath.
Any idea if this is possible, or if mojo-executor could be improved to provide this functionality? Thanks.
The mojo-executor will execute the mojo in an environment without any classpaths.
You need to manually add the dependency.