Class StartTestEngineMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="start-test-engine") public class StartTestEngineMojo extends AbstractIntegrationTestMojo
Starts the Axon Ivy Engine for integration testing.

After starting the engine, this goal provides the url of the engine as property test.engine.url. You can use this property to configure your 'maven-failsafe-plugin' to work against this test engine. However, in an iar-integration-test lifecycle this is already provided by the 'ivy-integration-test-properties' goal.

 
   <artifactId>maven-failsafe-plugin</artifactId>
   ...
   <configuration>
     <argLine>-Dtest.engine.url=${test.engine.url} -Dtest.engine.app=Portal</argLine>
   </configuration>
 
 
Since:
6.2.0
  • Field Details

    • GOAL

      public static final String GOAL
      See Also:
    • IVY_ENGINE_START_TIMEOUT_SECONDS

      public static final String IVY_ENGINE_START_TIMEOUT_SECONDS
      See Also:
    • project

      @Parameter(property="project", required=true, readonly=true) public org.apache.maven.project.MavenProject project
  • Constructor Details

    • StartTestEngineMojo

      public StartTestEngineMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • startEngine

      public org.apache.commons.exec.Executor startEngine() throws Exception
      Throws:
      Exception
    • copyEngine

      public void copyEngine(Path src, Path dest) throws IOException
      Throws:
      IOException