diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2019-06-18 17:44:44 -0400 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2019-06-18 17:44:44 -0400 |
| commit | cdaba9198e9c8d19ed273754dc47602e028b68ff (patch) | |
| tree | e0f550ee26b3c069296c879801eb52e96b6352e6 | |
| parent | d86cbcbabc4b251956bd2c5bf4dfa459a00bb239 (diff) | |
Update POM
| -rw-r--r-- | pom.xml | 59 |
1 files changed, 59 insertions, 0 deletions
@@ -61,6 +61,11 @@ <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>2.22.1</version> + <configuration> + <!-- Sets the VM argument line used + when unit tests are run. --> + <argLine>${surefireArgLine}</argLine> + </configuration> </plugin> <plugin> <artifactId>maven-jar-plugin</artifactId> @@ -142,6 +147,49 @@ </execution> </executions> </plugin> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>0.8.2</version> + <executions> + <!-- + Prepares the property pointing to the JaCoCo runtime agent which + is passed as VM argument when Maven the Surefire plugin is executed. + --> + <execution> + <id>pre-unit-test</id> + <goals> + <goal>prepare-agent</goal> + </goals> + <configuration> + <!-- Sets the path to the file which contains the execution data. --> + <destFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</destFile> + <!-- + Sets the name of the property containing the settings + for JaCoCo runtime agent. + --> + <propertyName>surefireArgLine</propertyName> + </configuration> + </execution> + <!-- + Ensures that the code coverage report for unit tests is created after + unit tests have been run. + --> + <execution> + <id>post-unit-test</id> + <phase>test</phase> + <goals> + <goal>report</goal> + </goals> + <configuration> + <!-- Sets the path to the file which contains the execution data. --> + <dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile> + <!-- Sets the output directory for the code coverage report. --> + <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory> + </configuration> + </execution> + </executions> + </plugin> </plugins> <resources> <resource> @@ -198,6 +246,17 @@ </execution> </executions> </plugin> + <plugin> + <groupId>org.sonatype.plugins</groupId> + <artifactId>nexus-staging-maven-plugin</artifactId> + <version>1.6.7</version> + <extensions>true</extensions> + <configuration> + <serverId>ossrh</serverId> + <nexusUrl>https://oss.sonatype.org/</nexusUrl> + <autoReleaseAfterClose>true</autoReleaseAfterClose> + </configuration> + </plugin> </plugins> </build> </profile> |
