ivy:start-test-engine
Full name:
com.axonivy.ivy.ci:project-build-plugin:13.2.1-SNAPSHOT:start-test-engine
Description:
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>
Attributes:
- Requires a Maven project to be executed.
- The goal is not marked as thread-safe and thus does not support parallel builds.
- Since version:
6.2.0.
Required Parameters
| Name | Type | Since | Description |
|---|---|---|---|
<ivyVersion> |
String |
- |
The ivy Engine version or version-range that must be used. Must be equal or higher than "13.2.0" Examples:
Default: 13.2.0User Property: ivy.engine.version |
Optional Parameters
| Name | Type | Since | Description |
|---|---|---|---|
<additionalClasspath> |
String |
- |
Additional classpath entries for the JVM that runs the Engine User Property: ivy.engine.start.additional.classpath |
<additionalVmArgs> |
List<String> |
- |
Additional arguments for the JVM that runs the Engine. To modify the classpath or the max heap use the provided properties. |
<additionalVmOptions> |
String |
- |
Deprecated. use additionalVmArgsAdditional options for the JVM that runs the Engine. To modify the classpath or the max heap use the provided properties. User Property: ivy.engine.start.additional.vmoptions |
<engineCacheDirectory> |
Path |
- |
Location where ivy engines in required version can be extracted to.
If the Engine does not yet exist, it can be automatically downloaded. Default: ${settings.localRepository}/.cache/ivyUser Property: ivy.engine.cache.directory |
<engineDirectory> |
Path |
- |
Location where an unpacked (may pre-configured) ivy Engine in the required version exists.
If parameter is not set it will be a sub-directory of the If the Engine does not yet exist, it can be automatically downloaded. User Property: ivy.engine.directory |
<engineLogFile> |
Path |
- |
The file where the engine start is logged Default: ${project.build.directory}/testEngineOut.logUser Property: ivy.engine.start.log |
<maxmem> |
String |
- |
The maximum heap (-Xmx) that is used for starting and running the Engine Default: 2048mUser Property: ivy.engine.start.maxmem |
<skipTest> |
boolean |
- |
Set to true to skip the engine start.Default: falseUser Property: maven.test.skip |
<startTimeoutInSeconds> |
Integer |
- |
The maximum amount of seconds that we wait for a engine to start Default: 120User Property: ivy.engine.start.timeout.seconds |
<testEngine> |
String |
8.0.4 |
Configure if the test engine gets copied to the maven target folder. With this you can start each test cycle with a clean engine. Integration tests may leave resources like deployed projects behind which may lead to unwanted side effects on the next test cycle.
Default: COPY_FROM_CACHEUser Property: ivy.test.engine |
<useLatestMinor> |
Boolean |
- |
If set to true it will download the latest available minor version Default: falseUser Property: ivy.engine.version.latest.minor |
Parameter Details
<additionalClasspath>
- Type:
java.lang.String - Required:
No - User Property:
ivy.engine.start.additional.classpath
<additionalVmArgs>
- Type:
java.util.List<java.lang.String> - Required:
No
<additionalVmOptions>
use
additionalVmArgs- Type:
java.lang.String - Required:
No - User Property:
ivy.engine.start.additional.vmoptions
<engineCacheDirectory>
If the Engine does not yet exist, it can be automatically downloaded.
- Type:
java.nio.file.Path - Required:
No - User Property:
ivy.engine.cache.directory - Default:
${settings.localRepository}/.cache/ivy
<engineDirectory>
required version exists.
If parameter is not set it will be a sub-directory of the ch.ivyteam.ivy.maven.AbstractEngineMojo.engineCacheDirectory.
If the Engine does not yet exist, it can be automatically downloaded.
- Type:
java.nio.file.Path - Required:
No - User Property:
ivy.engine.directory
<engineLogFile>
- Type:
java.nio.file.Path - Required:
No - User Property:
ivy.engine.start.log - Default:
${project.build.directory}/testEngineOut.log
<ivyVersion>
- "
6.1.2" means ivyVersion = 6.1.2 - "
[6.1.0,7.0.0)" means 6.1.0 <= ivyVersion < 7.0.0 - "
(6.0.0,]" means ivyVersion > 6.0.0
- Type:
java.lang.String - Required:
Yes - User Property:
ivy.engine.version - Default:
13.2.0
<maxmem>
- Type:
java.lang.String - Required:
No - User Property:
ivy.engine.start.maxmem - Default:
2048m
<skipTest>
true to skip the engine start.- Type:
boolean - Required:
No - User Property:
maven.test.skip - Default:
false
<startTimeoutInSeconds>
- Type:
java.lang.Integer - Required:
No - User Property:
ivy.engine.start.timeout.seconds - Default:
120
<testEngine>
COPY_FROM_CACHE= copy the engine if it comes from thech.ivyteam.ivy.maven.AbstractEngineMojo.engineCacheDirectory.MODIFY_EXISTING= don't copy the engine, this could lead to unforeseen behaviour if the same engine is used multiple times.COPY_FROM_TEMPLATE= always copy the engine. If you have a preconfigured engine in thech.ivyteam.ivy.maven.AbstractEngineMojo.engineDirectoryit will be copied as well.- Note: that we advise you to move the configuration of such engine to the build cycle itself instead of using a preconfigured one.
- Type:
java.lang.String - Since:
8.0.4 - Required:
No - User Property:
ivy.test.engine - Default:
COPY_FROM_CACHE
<useLatestMinor>
- Type:
java.lang.Boolean - Required:
No - User Property:
ivy.engine.version.latest.minor - Default:
false
