|
34 | 34 | <nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version> |
35 | 35 | <jacoco-maven-plugin.version>0.8.6</jacoco-maven-plugin.version> |
36 | 36 | <coveralls-maven-plugin.version>4.3.0</coveralls-maven-plugin.version> |
| 37 | + <version-maven-plugin.version>2.8.1</version-maven-plugin.version> |
37 | 38 |
|
38 | 39 | <!--Dependency Version--> |
39 | 40 | <jackson.version>2.11.3</jackson.version> |
|
298 | 299 | </execution> |
299 | 300 | </executions> |
300 | 301 | </plugin> |
| 302 | + <plugin> |
| 303 | + <groupId>org.codehaus.mojo</groupId> |
| 304 | + <artifactId>versions-maven-plugin</artifactId> |
| 305 | + </plugin> |
301 | 306 | </plugins> |
302 | 307 | <!--Plugin Dependency Management--> |
303 | 308 | <pluginManagement> |
|
391 | 396 | <artifactId>coveralls-maven-plugin</artifactId> |
392 | 397 | <version>${coveralls-maven-plugin.version}</version> |
393 | 398 | </plugin> |
| 399 | + <plugin> |
| 400 | + <groupId>org.codehaus.mojo</groupId> |
| 401 | + <artifactId>versions-maven-plugin</artifactId> |
| 402 | + <version>${version-maven-plugin.version}</version> |
| 403 | + </plugin> |
394 | 404 | </plugins> |
395 | 405 | </pluginManagement> |
396 | 406 | </build> |
|
449 | 459 | </plugins> |
450 | 460 | </build> |
451 | 461 | </profile> |
| 462 | + <profile> |
| 463 | + <id>release</id> |
| 464 | + <properties> |
| 465 | + <maven.test.skip>true</maven.test.skip> |
| 466 | + </properties> |
| 467 | + <build> |
| 468 | + <plugins> |
| 469 | + <plugin> |
| 470 | + <groupId>org.jacoco</groupId> |
| 471 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 472 | + <executions> |
| 473 | + <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as |
| 474 | + VM argument when Maven the Surefire plugin is executed. --> |
| 475 | + <execution> |
| 476 | + <id>pre-unit-test</id> |
| 477 | + <goals> |
| 478 | + <goal>prepare-agent</goal> |
| 479 | + </goals> |
| 480 | + </execution> |
| 481 | + <!-- Ensures that the code coverage report for unit tests is created after unit tests have |
| 482 | + been run. --> |
| 483 | + <execution> |
| 484 | + <id>post-unit-test</id> |
| 485 | + <phase>test</phase> |
| 486 | + <goals> |
| 487 | + <goal>report</goal> |
| 488 | + </goals> |
| 489 | + </execution> |
| 490 | + </executions> |
| 491 | + </plugin> |
| 492 | + <plugin> |
| 493 | + <groupId>org.eluder.coveralls</groupId> |
| 494 | + <artifactId>coveralls-maven-plugin</artifactId> |
| 495 | + </plugin> |
| 496 | + <plugin> |
| 497 | + <groupId>org.apache.maven.plugins</groupId> |
| 498 | + <artifactId>maven-deploy-plugin</artifactId> |
| 499 | + <configuration> |
| 500 | + <skip>true</skip> |
| 501 | + </configuration> |
| 502 | + </plugin> |
| 503 | + <plugin> |
| 504 | + <groupId>org.sonatype.plugins</groupId> |
| 505 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 506 | + <executions> |
| 507 | + <execution> |
| 508 | + <id>deploy-to-sonatype</id> |
| 509 | + <phase>deploy</phase> |
| 510 | + <goals> |
| 511 | + <goal>deploy</goal> |
| 512 | + <goal>release</goal> |
| 513 | + </goals> |
| 514 | + </execution> |
| 515 | + </executions> |
| 516 | + <configuration> |
| 517 | + <serverId>sonatype</serverId> |
| 518 | + <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
| 519 | + </configuration> |
| 520 | + </plugin> |
| 521 | + </plugins> |
| 522 | + </build> |
| 523 | + </profile> |
452 | 524 | </profiles> |
453 | 525 |
|
454 | 526 | <distributionManagement> |
|
0 commit comments