The SeaLights Test Listener agent is needed for capturing coverage from the application server. It does this by being defined as a javaagent during run time.

The location of the SeaLights Test Listener jar file that is downloaded by the Maven plugin is saved in the property ${sl.testListenerPath}
You can use this property to copy the jar file into a location that gets packaged alongside your artifact, for instance in a docker file.

Here is a sample of copying the SeaLights Test Listerner into the folder target/SeaLights

<plugin>
	<groupId>com.coderplus.maven.plugins</groupId>
	<artifactId>copy-rename-maven-plugin</artifactId>
	<version>1.0</version>
	<executions>
		<execution>
			<id>copy-file</id>
			<phase>prepare-package</phase>
			<goals>
			<goal>copy</goal>
			</goals>
			<configuration>
				<sourceFile>${sl.testListenerPath}</sourceFile>
				<destinationFile>target/SeaLights/sl-test-listener.jar</destinationFile>
			</configuration>
		</execution>
	</executions>
</plugin>
XML