| <project xmlns="http://maven.apache.org/POM/4.0.0" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| |
| <name>EASE Unit Tests</name> |
| |
| <modelVersion>4.0.0</modelVersion> |
| <artifactId>org.eclipse.ease.core.tests</artifactId> |
| <version>0.9.0-SNAPSHOT</version> |
| <packaging>pom</packaging> |
| |
| <parent> |
| <groupId>org.eclipse.ease</groupId> |
| <version>0.9.0-SNAPSHOT</version> |
| <artifactId>org.eclipse.ease.releng</artifactId> |
| <relativePath>../releng/org.eclipse.ease.releng</relativePath> |
| </parent> |
| |
| <build> |
| <plugins> |
| <!-- set JUnit runner to Junit 5 --> |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>tycho-surefire-plugin</artifactId> |
| <version>${tycho.version}</version> |
| <configuration> |
| <providerHint>junit57</providerHint> |
| |
| <dependencies> |
| <!-- avoid CNFE in Surefire when looking for JUnitPlatformProvider --> |
| <dependency> |
| <artifactId>org.junit</artifactId> |
| <type>eclipse-plugin</type> |
| </dependency> |
| </dependencies> |
| </configuration> |
| |
| </plugin> |
| |
| <!-- enable JaCoCo code coverage --> |
| <plugin> |
| <groupId>org.jacoco</groupId> |
| <artifactId>jacoco-maven-plugin</artifactId> |
| <version>${jacoco.version}</version> |
| |
| <configuration> |
| <output>file</output> |
| </configuration> |
| |
| <executions> |
| <execution> |
| <id>jacoco-initialize</id> |
| <phase>pre-integration-test</phase> |
| <goals> |
| <goal>prepare-agent</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| |
| <!-- enable PMD code analysis --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-pmd-plugin</artifactId> |
| <version>${maven.pmd.version}</version> |
| <configuration> |
| <linkXRef>false</linkXRef> |
| <rulesets>../../releng/org.eclipse.ease.releng/pmd/pmd_rules_unittest.xml</rulesets> |
| </configuration> |
| |
| <executions> |
| <execution> |
| <id>pmd-integration</id> |
| <phase>verify</phase> |
| <goals> |
| <goal>pmd</goal> |
| <goal>cpd</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- enable spotbugs code analysis --> |
| <plugin> |
| <groupId>com.github.spotbugs</groupId> |
| <artifactId>spotbugs-maven-plugin</artifactId> |
| <version>${maven.spotbugs.version}</version> |
| |
| <configuration> |
| <effort>Max</effort> |
| <threshold>Low</threshold> |
| <fork>false</fork> |
| |
| <excludeFilterFile>../../releng/org.eclipse.ease.releng/spotbugs/spotbugs_filter_unittest.xml</excludeFilterFile> |
| </configuration> |
| |
| <executions> |
| <execution> |
| <id>spotbugs-integration</id> |
| <phase>verify</phase> |
| <goals> |
| <goal>spotbugs</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- enable checkstyle code analysis --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-checkstyle-plugin</artifactId> |
| <version>${maven.checkstyle.version}</version> |
| <configuration> |
| <configLocation>../../releng/org.eclipse.ease.releng/checkstyle/checkstyle_rules_unittest.xml</configLocation> |
| <linkXRef>false</linkXRef> |
| </configuration> |
| |
| <executions> |
| <execution> |
| <id>checkstyle-integration</id> |
| <phase>verify</phase> |
| <goals> |
| <goal>check</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| </plugins> |
| </build> |
| </project> |