Add jetty maven plugin ITs as part of code coverage as we do it :) (#7962)

* enable of jacoco coverage for maven its plugin

Signed-off-by: Olivier Lamy <oliver.lamy@gmail.com>
This commit is contained in:
Olivier Lamy 2022-07-14 07:19:45 +10:00 committed by GitHub
parent 2e18276ff5
commit c41c73b8de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 9 deletions

14
Jenkinsfile vendored
View File

@ -21,17 +21,21 @@ pipeline {
jacoco inclusionPattern: '**/org/eclipse/jetty/**/*.class',
exclusionPattern: '' +
// build tools
'**/org/eclipse/jetty/ant/**' + ',**/org/eclipse/jetty/maven/**' +
',**/org/eclipse/jetty/jspc/**' +
'**/org/eclipse/jetty/ant/**' +
',*/org/eclipse/jetty/maven/its/**' +
',**/org/eclipse/jetty/its/**' +
// example code / documentation
',**/org/eclipse/jetty/embedded/**' + ',**/org/eclipse/jetty/asyncrest/**' +
',**/org/eclipse/jetty/embedded/**' +
',**/org/eclipse/jetty/asyncrest/**' +
',**/org/eclipse/jetty/demo/**' +
// special environments / late integrations
',**/org/eclipse/jetty/gcloud/**' + ',**/org/eclipse/jetty/infinispan/**' +
',**/org/eclipse/jetty/gcloud/**' +
',**/org/eclipse/jetty/infinispan/**' +
',**/org/eclipse/jetty/osgi/**' +
',**/org/eclipse/jetty/http/spi/**' +
// test classes
',**/org/eclipse/jetty/tests/**' + ',**/org/eclipse/jetty/test/**',
',**/org/eclipse/jetty/tests/**' +
',**/org/eclipse/jetty/test/**',
execPattern: '**/target/jacoco.exec',
classPattern: '**/target/classes',
sourcePattern: '**/src/main/java'

View File

@ -11,7 +11,6 @@
<name>Jetty :: Jetty JSPC Maven Plugin</name>
<properties>
<bundle-symbolic-name>${project.groupId}.jspc.plugin</bundle-symbolic-name>
<jacoco.skip>true</jacoco.skip>
</properties>
<build>
<plugins>

View File

@ -13,7 +13,6 @@
<bundle-symbolic-name>${project.groupId}.maven.plugin</bundle-symbolic-name>
<jetty.stopKey>FREEBEER</jetty.stopKey>
<jetty.jvmArgs></jetty.jvmArgs>
<jacoco.skip>true</jacoco.skip>
</properties>
<build>
<plugins>

13
pom.xml
View File

@ -327,8 +327,6 @@
<excludes>
<!-- build tools -->
<exclude>**/org/eclipse/jetty/ant/**</exclude>
<exclude>**/org/eclipse/jetty/maven/**</exclude>
<exclude>**/org/eclipse/jetty/jspc/**</exclude>
<!-- example code / documentation -->
<exclude>**/org/eclipse/jetty/embedded/**</exclude>
<exclude>**/org/eclipse/jetty/asyncrest/**</exclude>
@ -352,6 +350,17 @@
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>jacoco-setup-m-invoker-p</id>
<phase>initialize</phase>
<configuration>
<!-- Enable recording of coverage during execution of maven-invoker-plugin -->
<propertyName>invoker.mavenOpts</propertyName>
</configuration>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>jacoco-site</id>
<phase>package</phase>