Skip to content

Commit 278bc7e

Browse files
authored
Merge pull request #952 from dmatej/maven-central-snapshots
Maven central snapshots fixed
2 parents bfc5703 + e8a1153 commit 278bc7e

File tree

3 files changed

+90
-1
lines changed

3 files changed

+90
-1
lines changed

bom/pom.xml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,32 @@
3535

3636
<description>Tyrus Bill of Materials (BOM)</description>
3737

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+
3864
<dependencyManagement>
3965
<dependencies>
4066
<dependency>
@@ -127,4 +153,46 @@
127153
</plugins>
128154
</pluginManagement>
129155
</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>
130198
</project>

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@
381381
<sourceFileExcludes>
382382
<sourceFileExclude>**/module-info.java</sourceFileExclude>
383383
</sourceFileExcludes>
384+
<doclint>none</doclint>
384385
</configuration>
385386
<executions>
386387
<execution>

tests/plugins/pom.xml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
2+
Copyright 2026 Contributors to the Eclipse Foundation.
33
Copyright (c) 2025 Oracle and/or its affiliates. All rights reserved.
44
55
This program and the accompanying materials are made available under the
@@ -38,6 +38,26 @@
3838
</dependency>
3939
</dependencies>
4040

41+
<build>
42+
<pluginManagement>
43+
<plugins>
44+
<plugin>
45+
<groupId>org.sonatype.plugins</groupId>
46+
<artifactId>nexus-staging-maven-plugin</artifactId>
47+
<configuration>
48+
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
49+
</configuration>
50+
<executions>
51+
<execution>
52+
<id>injected-nexus-deploy</id>
53+
<phase>none</phase>
54+
</execution>
55+
</executions>
56+
</plugin>
57+
</plugins>
58+
</pluginManagement>
59+
</build>
60+
4161
<profiles>
4262
<profile>
4363
<id>notSkipTests</id>

0 commit comments

Comments
 (0)