Skip to content

Commit 0c1ae96

Browse files
rishavsharanDavid Staheli
authored andcommitted
Cleaning up maven config (MicrosoftDocs#4)
1 parent 5e9f51c commit 0c1ae96

File tree

1 file changed

+23
-42
lines changed

1 file changed

+23
-42
lines changed

pom.xml

Lines changed: 23 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<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/maven-v4_0_0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>helloworld</groupId>
55
<artifactId>helloworld</artifactId>
@@ -19,52 +19,33 @@
1919

2020
<build>
2121
<finalName>helloworld</finalName>
22-
2322
<plugins>
2423
<plugin>
25-
<groupId>org.jacoco</groupId>
26-
<artifactId>jacoco-maven-plugin</artifactId>
27-
<version>0.8.2</version>
28-
<executions>
29-
<execution>
30-
<id>prepare-agent</id>
31-
<goals>
32-
<goal>prepare-agent</goal>
33-
</goals>
34-
</execution>
35-
<execution>
36-
<id>report</id>
37-
<phase>prepare-package</phase>
38-
<goals>
39-
<goal>report</goal>
40-
</goals>
41-
</execution>
42-
<execution>
43-
<id>post-unit-test</id>
44-
<phase>test</phase>
45-
<goals>
46-
<goal>report</goal>
47-
</goals>
48-
<configuration>
49-
<!-- Sets the path to the file which contains the execution data. -->
50-
<dataFile>target/jacoco.exec</dataFile>
51-
<!-- Sets the output directory for the code coverage report. -->
52-
<outputDirectory>target/jacoco-ut</outputDirectory>
53-
</configuration>
54-
</execution>
55-
</executions>
56-
<configuration>
57-
<systemPropertyVariables>
58-
<jacoco-agent.destfile>target/jacoco.exec</jacoco-agent.destfile>
59-
</systemPropertyVariables>
60-
</configuration>
61-
</plugin>
24+
<groupId>org.jacoco</groupId>
25+
<artifactId>jacoco-maven-plugin</artifactId>
26+
<version>0.8.2</version>
27+
<executions>
28+
<execution>
29+
<id>prepare-agent</id>
30+
<goals>
31+
<goal>prepare-agent</goal>
32+
</goals>
33+
</execution>
34+
<execution>
35+
<id>report</id>
36+
<phase>test</phase>
37+
<goals>
38+
<goal>report</goal>
39+
</goals>
40+
</execution>
41+
</executions>
42+
</plugin>
6243
</plugins>
6344
</build>
6445

6546
<properties>
6647
<maven.compiler.source>1.8</maven.compiler.source>
6748
<maven.compiler.target>1.8</maven.compiler.target>
6849
</properties>
69-
70-
</project>
50+
51+
</project>

0 commit comments

Comments
 (0)