|
35 | 35 |
|
36 | 36 | <description>Tyrus Bill of Materials (BOM)</description> |
37 | 37 |
|
| 38 | + <!-- TODO: Can be removed after it would be removed from parent too --> |
| 39 | + <distributionManagement> |
| 40 | + <snapshotRepository> |
| 41 | + <id>ossrh</id> |
| 42 | + <name>Disabled Sonatype Nexus</name> |
| 43 | + <url>http://localhost</url> |
| 44 | + <releases> |
| 45 | + <enabled>false</enabled> |
| 46 | + </releases> |
| 47 | + <snapshots> |
| 48 | + <enabled>false</enabled> |
| 49 | + </snapshots> |
| 50 | + </snapshotRepository> |
| 51 | + <repository> |
| 52 | + <id>ossrh</id> |
| 53 | + <name>Disabled Sonatype Nexus</name> |
| 54 | + <url>http://localhost</url> |
| 55 | + <releases> |
| 56 | + <enabled>false</enabled> |
| 57 | + </releases> |
| 58 | + <snapshots> |
| 59 | + <enabled>false</enabled> |
| 60 | + </snapshots> |
| 61 | + </repository> |
| 62 | + </distributionManagement> |
| 63 | + |
38 | 64 | <dependencyManagement> |
39 | 65 | <dependencies> |
40 | 66 | <dependency> |
|
127 | 153 | </plugins> |
128 | 154 | </pluginManagement> |
129 | 155 | </build> |
| 156 | + |
| 157 | + <profiles> |
| 158 | + <profile> |
| 159 | + <id>oss-release</id> |
| 160 | + <properties> |
| 161 | + <!-- Do not autopublish by default --> |
| 162 | + <release.autopublish>false</release.autopublish> |
| 163 | + <!-- By default block until everything is really published --> |
| 164 | + <release.waitUntil>published</release.waitUntil> |
| 165 | + </properties> |
| 166 | + <build> |
| 167 | + <plugins> |
| 168 | + <plugin> |
| 169 | + <groupId>org.sonatype.plugins</groupId> |
| 170 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 171 | + <configuration> |
| 172 | + <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo> |
| 173 | + </configuration> |
| 174 | + <executions> |
| 175 | + <execution> |
| 176 | + <id>injected-nexus-deploy</id> |
| 177 | + <phase>none</phase> |
| 178 | + </execution> |
| 179 | + </executions> |
| 180 | + </plugin> |
| 181 | + <plugin> |
| 182 | + <groupId>org.sonatype.central</groupId> |
| 183 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 184 | + <version>0.10.0</version> |
| 185 | + <extensions>true</extensions> |
| 186 | + <configuration> |
| 187 | + <autoPublish>${release.autopublish}</autoPublish> |
| 188 | + <centralSnapshotsUrl>https://central.sonatype.com/repository/maven-snapshots</centralSnapshotsUrl> |
| 189 | + <deploymentName>Eclipse Tyrus ${project.version}</deploymentName> |
| 190 | + <publishingServerId>central</publishingServerId> |
| 191 | + <waitUntil>${release.waitUntil}</waitUntil> |
| 192 | + </configuration> |
| 193 | + </plugin> |
| 194 | + </plugins> |
| 195 | + </build> |
| 196 | + </profile> |
| 197 | + </profiles> |
130 | 198 | </project> |
0 commit comments