This is an automated email from the ASF dual-hosted git repository.
rmaucher pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/tomcat-maven-plugin.git
The following commit(s) were added to refs/heads/trunk by this push:
new 4d55e7e Add boilerplate coverage
4d55e7e is described below
commit 4d55e7e33acb0da5e5ed14b646aac21315789252
Author: remm <[email protected]>
AuthorDate: Tue Apr 21 22:40:36 2026 +0200
Add boilerplate coverage
Clunky since it does not run inside the main lifecycle.
---
build.sh | 7 ++++++-
pom.xml | 17 +++++++++++++++++
2 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/build.sh b/build.sh
index c9d4613..31fe4b4 100755
--- a/build.sh
+++ b/build.sh
@@ -15,5 +15,10 @@
# specific language governing permissions and limitations
# under the License.
-export MAVEN_OPTS="--add-opens=java.base/java.util.zip=ALL-UNNAMED
--add-opens=java.base/java.util.jar=ALL-UNNAMED
--add-opens=java.base/sun.net.www.protocol.http=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED"
+export
MAVEN_OPTS="-javaagent:$HOME/.m2/repository/org/jacoco/org.jacoco.agent/0.8.13/org.jacoco.agent-0.8.13-runtime.jar=destfile=/tmp/jacoco/jacoco-it.exec
--add-opens=java.base/java.util.zip=ALL-UNNAMED
--add-opens=java.base/java.util.jar=ALL-UNNAMED
--add-opens=java.base/sun.net.www.protocol.http=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED"
+
+# Run the main build lifecycle + integration tests
mvn clean install failsafe:integration-test invoker:integration-test
+
+# Generate JaCoCo report from integration test coverage data
+mvn jacoco:report -Djacoco.dataFile=/tmp/jacoco/jacoco-it.exec
diff --git a/pom.xml b/pom.xml
index 60dc91f..2f297c5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -469,6 +469,11 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <version>0.8.13</version>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>
@@ -533,6 +538,18 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>default-prepare-agent</id>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]