Package ch.ivyteam.ivy.maven.test
Class StartTestEngineMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
ch.ivyteam.ivy.maven.AbstractEngineMojo
ch.ivyteam.ivy.maven.test.AbstractIntegrationTestMojo
ch.ivyteam.ivy.maven.test.StartTestEngineMojo
- 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 Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
org.apache.maven.project.MavenProject
Fields inherited from class ch.ivyteam.ivy.maven.AbstractEngineMojo
DEFAULT_VERSION, ENGINE_DIRECTORY_PROPERTY, engineCacheDirectory, engineDirectory, ivyVersion, MINIMAL_COMPATIBLE_VERSION
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
copyEngine
(Path src, Path dest) void
execute()
org.apache.commons.exec.Executor
Methods inherited from class ch.ivyteam.ivy.maven.test.AbstractIntegrationTestMojo
engineToTarget, getEngineDir
Methods inherited from class ch.ivyteam.ivy.maven.AbstractEngineMojo
findMatchingEngineInCacheDirectory, getInstalledEngineVersion, getIvyVersionRange, getRawEngineDirectory, identifyAndGetEngineDirectory, isEngineDirectoryIdentified
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
GOAL
- See Also:
-
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
- Throws:
Exception
-
copyEngine
- Throws:
IOException
-