|
56 | 56 | </modules> |
57 | 57 | <!-- Distribution config from http://central.sonatype.org/pages/apache-maven.html#distribution-management-and-authentication --> |
58 | 58 | <distributionManagement> |
59 | | - <snapshotRepository> |
60 | | - <id>ossrh</id> |
61 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
62 | | - </snapshotRepository> |
63 | 59 | </distributionManagement> |
64 | 60 |
|
65 | 61 | <properties> |
|
69 | 65 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
70 | 66 |
|
71 | 67 | <!-- Maven Plugins versions --> |
| 68 | + <central-publishing-maven-plugin.version>0.7.0</central-publishing-maven-plugin.version> |
72 | 69 | <maven-bundle-plugin.version>6.0.0</maven-bundle-plugin.version> |
73 | 70 | <maven-checkstyle-plugin.version>3.6.0</maven-checkstyle-plugin.version> |
74 | 71 | <maven-clean-plugin.version>3.5.0</maven-clean-plugin.version> |
|
83 | 80 | <maven-source-plugin.version>3.3.1</maven-source-plugin.version> |
84 | 81 | <maven-surefire-plugin.version>3.5.3</maven-surefire-plugin.version> |
85 | 82 | <maven.test.failure.ignore>false</maven.test.failure.ignore> |
86 | | - <nexus-staging-maven-plugin.version>1.7.0</nexus-staging-maven-plugin.version> |
87 | 83 | <pitest-junit5-plugin.version>1.2.3</pitest-junit5-plugin.version> |
88 | 84 | <pitmp-maven-plugin.version>1.3.7</pitmp-maven-plugin.version> |
89 | 85 |
|
|
280 | 276 | <artifactId>maven-repository-plugin</artifactId> |
281 | 277 | <version>${maven-repository-plugin.version}</version> |
282 | 278 | </plugin> |
283 | | - <plugin> |
284 | | - <groupId>org.sonatype.plugins</groupId> |
285 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
286 | | - <version>${nexus-staging-maven-plugin.version}</version> |
287 | | - <extensions>true</extensions> |
288 | | - <configuration> |
289 | | - <serverId>ossrh</serverId> |
290 | | - <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
291 | | - <autoReleaseAfterClose>false</autoReleaseAfterClose> |
292 | | - </configuration> |
293 | | - </plugin> |
294 | 279 | <plugin> |
295 | 280 | <groupId>org.apache.felix</groupId> |
296 | 281 | <artifactId>maven-bundle-plugin</artifactId> |
|
401 | 386 | <id>release</id> |
402 | 387 | <build> |
403 | 388 | <plugins> |
| 389 | + <!-- Publish Plugin only if profile is set. --> |
| 390 | + <plugin> |
| 391 | + <groupId>org.sonatype.central</groupId> |
| 392 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 393 | + <version>${central-publishing-maven-plugin.version}</version> |
| 394 | + <extensions>true</extensions> |
| 395 | + <configuration> |
| 396 | + <publishingServerId>central</publishingServerId> |
| 397 | + </configuration> |
| 398 | + </plugin> |
404 | 399 | <!-- Create javadoc for help --> |
405 | 400 | <plugin> |
406 | 401 | <groupId>org.apache.maven.plugins</groupId> |
|
0 commit comments