Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel1
maxLevel7
printablefalse


Configuring the Maven plugin in the pom.xml file

Note

The below is handled automatically when using the automatic pom integration (Scanning Builds and Tests using SeaLights Maven plugin - Automatic configuration) with build scanner 2.0.1045 and up

...

Here is a sample configuration for failsafe with the updated argLine at line 8:

Code Block
languagexml
linenumberstrue
<configuration>
</configuration>
  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-failsafe-plugin</artifactId>
    <version>${maven.failsafe.plugin.version}</version>
    <configuration>
	  <argLine>${argLine} @{sealightsArgLine} -Dsl.testStage="Integration Tests"</argLine>
      <includes>
        <include>**/IT/**/*Test*</include>
      </includes>
    </configuration>
    <executions>
      <execution>
        <goals>
          <goal>integration-test</goal>
          <goal>verify</goal>
        </goals>
      </execution>
    </executions>
  </plugin>

You can set an empty property called sealightsArgLine so that the build will not fail when the SeaLights maven plugin doesn't run

Code Block
languagexmllinenumberstrue
<properties>
  ...
  <sealightsArgLine></sealightsArgLine>
</properties>

...

Page Properties
hiddentrue


Related issues