|
62 | 62 | <flatten-maven-plugin.version>1.0.1</flatten-maven-plugin.version> |
63 | 63 | <maven-checkstyle-plugin.version>3.0.0</maven-checkstyle-plugin.version> |
64 | 64 | <checkstyle.version>8.8</checkstyle.version> |
| 65 | + <nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version> |
65 | 66 | </properties> |
66 | 67 | <modules> |
67 | 68 | <module>spring-boot-admin-server</module> |
|
345 | 346 | <artifactId>asciidoctor-maven-plugin</artifactId> |
346 | 347 | <version>${asciidoctor-maven-plugin.version}</version> |
347 | 348 | </plugin> |
| 349 | + <plugin> |
| 350 | + <groupId>org.jacoco</groupId> |
| 351 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 352 | + <version>${jacoco-maven-plugin.version}</version> |
| 353 | + </plugin> |
| 354 | + <plugin> |
| 355 | + <groupId>org.eluder.coveralls</groupId> |
| 356 | + <artifactId>coveralls-maven-plugin</artifactId> |
| 357 | + <version>${coveralls-maven-plugin.version}</version> |
| 358 | + </plugin> |
| 359 | + <plugin> |
| 360 | + <groupId>org.sonatype.plugins</groupId> |
| 361 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 362 | + <version>${nexus-staging-maven-plugin.version}</version> |
| 363 | + </plugin> |
348 | 364 | </plugins> |
349 | 365 | </pluginManagement> |
350 | 366 | </build> |
|
404 | 420 | <artifactId>jacoco-maven-plugin</artifactId> |
405 | 421 | <version>${jacoco-maven-plugin.version}</version> |
406 | 422 | <executions> |
407 | | - <!-- Prepares the property pointing to the JaCoCo |
408 | | - runtime agent which is passed as VM argument when Maven the Surefire plugin |
409 | | - is executed. --> |
| 423 | + <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as |
| 424 | + VM argument when Maven the Surefire plugin is executed. --> |
410 | 425 | <execution> |
411 | 426 | <id>pre-unit-test</id> |
412 | 427 | <goals> |
413 | 428 | <goal>prepare-agent</goal> |
414 | 429 | </goals> |
415 | 430 | </execution> |
416 | | - <!-- Ensures that the code coverage report for |
417 | | - unit tests is created after unit tests have been run. --> |
| 431 | + <!-- Ensures that the code coverage report for unit tests is created after unit tests have |
| 432 | + been run. --> |
418 | 433 | <execution> |
419 | 434 | <id>post-unit-test</id> |
420 | 435 | <phase>test</phase> |
|
427 | 442 | <plugin> |
428 | 443 | <groupId>org.eluder.coveralls</groupId> |
429 | 444 | <artifactId>coveralls-maven-plugin</artifactId> |
430 | | - <version>${coveralls-maven-plugin.version}</version> |
| 445 | + </plugin> |
| 446 | + |
| 447 | + <!-- We need to deploy using the nexus-staging-maven-plugin specifying a stagingProfileId. This is to |
| 448 | + workaround the problem that travis uploads the artifacts using different ip addresses resulting |
| 449 | + in multiple staging repositories --> |
| 450 | + <plugin> |
| 451 | + <groupId>org.apache.maven.plugins</groupId> |
| 452 | + <artifactId>maven-deploy-plugin</artifactId> |
| 453 | + <configuration> |
| 454 | + <skip>true</skip> |
| 455 | + </configuration> |
| 456 | + </plugin> |
| 457 | + <plugin> |
| 458 | + <groupId>org.sonatype.plugins</groupId> |
| 459 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 460 | + <executions> |
| 461 | + <execution> |
| 462 | + <id>default-deploy</id> |
| 463 | + <phase>deploy</phase> |
| 464 | + <goals> |
| 465 | + <goal>deploy</goal> |
| 466 | + </goals> |
| 467 | + </execution> |
| 468 | + </executions> |
| 469 | + <configuration> |
| 470 | + <serverId>${repositoryId}</serverId> |
| 471 | + <nexusUrl>https://oss.sonatype.org</nexusUrl> |
| 472 | + <!-- explicit matching using the staging profile id --> |
| 473 | + <stagingProfileId>1e79a0f1acc1b8</stagingProfileId> |
| 474 | + </configuration> |
431 | 475 | </plugin> |
432 | 476 | </plugins> |
433 | 477 | </build> |
|
0 commit comments