|
<?xml version="1.0" encoding="UTF-8"?> |
|
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
<modelVersion>4.0.0</modelVersion> |
|
|
|
<groupId>com.example</groupId> |
|
<artifactId>maven-starter</artifactId> |
|
<version>1.0-SNAPSHOT</version> |
|
|
|
<properties> |
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
|
<maven.compiler.source>1.8</maven.compiler.source> |
|
<maven.compiler.target>${maven.compiler.source}</maven.compiler.target> |
|
<junit.bom.version>${env.JUNIT_JUPITER_VERSION}</junit.bom.version> |
|
</properties> |
|
|
|
<dependencies> |
|
<dependency> |
|
<groupId>org.junit.jupiter</groupId> |
|
<artifactId>junit-jupiter</artifactId> |
|
<scope>test</scope> |
|
</dependency> |
|
<dependency> |
|
<groupId>org.junit.platform</groupId> |
|
<artifactId>junit-platform-reporting</artifactId> |
|
<scope>test</scope> |
|
</dependency> |
|
</dependencies> |
|
|
|
<dependencyManagement> |
|
<dependencies> |
|
<dependency> |
|
<groupId>org.junit</groupId> |
|
<artifactId>junit-bom</artifactId> |
|
<version>${junit.bom.version}</version> |
|
<type>pom</type> |
|
<scope>import</scope> |
|
</dependency> |
|
</dependencies> |
|
</dependencyManagement> |
|
|
|
<build> |
|
<plugins> |
|
<plugin> |
|
<artifactId>maven-compiler-plugin</artifactId> |
|
<version>3.8.1</version> |
|
</plugin> |
|
<plugin> |
|
<artifactId>maven-surefire-plugin</artifactId> |
|
<version>2.22.2</version> |
|
<configuration> |
|
<properties> |
|
<configurationParameters> |
|
junit.platform.reporting.open.xml.enabled = true |
|
junit.platform.reporting.output.dir = target/surefire-reports |
|
</configurationParameters> |
|
</properties> |
|
</configuration> |
|
</plugin> |
|
<plugin> |
|
<groupId>org.codehaus.gmaven</groupId> |
|
<artifactId>groovy-maven-plugin</artifactId> |
|
<version>2.1.1</version> |
|
<executions> |
|
<execution> |
|
<phase>validate</phase> |
|
<goals> |
|
<goal>execute</goal> |
|
</goals> |
|
<configuration> |
|
<source> |
|
println("Using Java version: ${java.version}") |
|
</source> |
|
</configuration> |
|
</execution> |
|
</executions> |
|
</plugin> |
|
</plugins> |
|
</build> |
|
|
|
<repositories> |
|
<repository> |
|
<id>local-temp</id> |
|
<url>file://${maven.repo}</url> |
|
<snapshots> |
|
<enabled>true</enabled> |
|
</snapshots> |
|
<releases> |
|
<enabled>true</enabled> |
|
</releases> |
|
</repository> |
|
</repositories> |
|
|
|
</project> |
|
|