scope.seed( MojoExecution.class, mojoExecution ); mojo = mavenPluginManager.getConfiguredMojo( Mojo.class, session, mojoExecution );
/** * Create mojo. * @param execution The execution * @return The mojo */ private Mojo mojo(final MojoExecution execution) { final Mojo mojo; try { mojo = this.manager.getConfiguredMojo( Mojo.class, this.session, execution ); } catch (final PluginConfigurationException ex) { throw new IllegalStateException("Can't configure MOJO", ex); } catch (final PluginContainerException ex) { throw new IllegalStateException("Plugin container failure", ex); } return mojo; }