Package org.apache.maven.plugin

Examples of org.apache.maven.plugin.Mojo


  }

  protected Mojo lookupConfiguredMojo(MavenSession session, MojoExecution execution) throws Exception,
      ComponentConfigurationException {

    Mojo mojo = getPluginManager().getConfiguredMojo(Mojo.class, session, execution);
    if(mojo instanceof AbstractForgeMojo)
      ((AbstractForgeMojo) mojo).setLogger(new NOPLogger());
    return mojo;
  }
View Full Code Here


    @Test
    public void testExecuteCommandsFromScript() throws Exception {

        final File pom = getPom("execute-script-pom.xml");

        final Mojo executeCommandsMojo = lookupMojo("execute-commands", pom);

        executeCommandsMojo.execute();

        // Create the address
        final ModelNode address = ServerOperations.createAddress("system-property", "org.jboss.maven.plugin");
        final ModelNode op = ServerOperations.createReadAttributeOperation(address, "value");
View Full Code Here

    @Test
    public void testExecuteCommands() throws Exception {

        final File pom = getPom("execute-commands-pom.xml");

        final Mojo executeCommandsMojo = lookupMojo("execute-commands", pom);

        executeCommandsMojo.execute();

        // Read the attribute
        ModelNode address = ServerOperations.createAddress("system-property", "org.jboss.maven.plugin-exec-cmd");
        ModelNode op = ServerOperations.createReadAttributeOperation(address, "value");
        ModelNode result = executeOperation(managementClient.getControllerClient(), op);
View Full Code Here

    @Test
    public void testExecuteBatchCommands() throws Exception {

        final File pom = getPom("execute-batch-commands-pom.xml");

        final Mojo executeCommandsMojo = lookupMojo("execute-commands", pom);

        executeCommandsMojo.execute();

        // Read the attribute
        final ModelNode address = ServerOperations.createAddress("system-property", "org.jboss.maven.plugin-batch");
        final ModelNode op = ServerOperations.createReadAttributeOperation(address, "value");
        final ModelNode result = executeOperation(managementClient.getControllerClient(), op);
View Full Code Here

TOP

Related Classes of org.apache.maven.plugin.Mojo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.