Hi, I'm using the BuildPluginManager in my custom maven-plugin to execute an external maven plugin but I have a NPE in the executeMojo because the maven session in the external maven plugin is null.
Here an example of the code I'm using: PluginDescriptor toolPluginDescriptor = pluginManager.loadPlugin(toolPlugin, mavenProject.getRemotePluginRepositories(), mavenSession.getRepositorySession()); MojoDescriptor toolMojoDescriptor = toolPluginDescriptor.getMojo("assembly"); MojoExecution execution = new MojoExecution(toolMojoDescriptor, configuration); pluginManager.executeMojo(mavenSession, execution); //mavenSession is not null Any ideas? Thanks! regards, -- François fpa...@apache.org