Skip to content
This repository was archived by the owner on Sep 13, 2024. It is now read-only.

Commit a6c95c8

Browse files
committed
Move release elements from oss-parent to local project
1 parent 3b8d2f9 commit a6c95c8

File tree

1 file changed

+129
-77
lines changed

1 file changed

+129
-77
lines changed

pom.xml

+129-77
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@
1414
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1515
<modelVersion>4.0.0</modelVersion>
1616

17-
<parent>
18-
<groupId>org.sonatype.oss</groupId>
19-
<artifactId>oss-parent</artifactId>
20-
<version>9</version>
21-
</parent>
22-
2317
<groupId>org.eclipse.sisu</groupId>
2418
<artifactId>sisu-plexus</artifactId>
2519
<version>0.9.0-SNAPSHOT</version>
@@ -77,11 +71,39 @@
7771
<url>https://ci.eclipse.org/sisu/job/sisu.plexus/</url>
7872
</ciManagement>
7973

74+
<repositories>
75+
<repository>
76+
<id>sonatype-nexus-snapshots</id>
77+
<name>Sonatype Nexus Snapshots</name>
78+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
79+
<releases>
80+
<enabled>false</enabled>
81+
</releases>
82+
<snapshots>
83+
<enabled>true</enabled>
84+
</snapshots>
85+
</repository>
86+
</repositories>
87+
88+
<distributionManagement>
89+
<snapshotRepository>
90+
<id>sonatype-nexus-snapshots</id>
91+
<name>Sonatype Nexus Snapshots</name>
92+
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
93+
</snapshotRepository>
94+
<repository>
95+
<id>sonatype-nexus-staging</id>
96+
<name>Nexus Release Repository</name>
97+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
98+
</repository>
99+
</distributionManagement>
100+
80101
<properties>
81102
<maven.compiler.release>8</maven.compiler.release>
82-
<!-- These two below are NOT used as release above is set, but are linked to it's value to keep things sane -->
103+
<!-- Set to same version as release target for consistency -->
83104
<maven.compiler.source>1.${maven.compiler.release}</maven.compiler.source>
84105
<maven.compiler.target>1.${maven.compiler.release}</maven.compiler.target>
106+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
85107

86108
<mavenBuildVersion>3.6.3</mavenBuildVersion>
87109
<javaBuildVersion>11</javaBuildVersion>
@@ -92,8 +114,42 @@
92114
<plugins>
93115
<plugin>
94116
<groupId>org.apache.maven.plugins</groupId>
95-
<artifactId>maven-antrun-plugin</artifactId>
96-
<version>3.1.0</version>
117+
<artifactId>maven-enforcer-plugin</artifactId>
118+
<version>3.2.1</version>
119+
<configuration>
120+
<rules>
121+
<enforceBytecodeVersion>
122+
<maxJdkVersion>${maven.compiler.target}</maxJdkVersion>
123+
<excludes>
124+
<!-- Used in tests only -->
125+
<exclude>org.junit.jupiter:junit-jupiter-api</exclude>
126+
<exclude>org.junit.platform:junit-platform-commons</exclude>
127+
<exclude>org.apache.felix:org.apache.felix.framework:jar:7.0.5</exclude>
128+
</excludes>
129+
</enforceBytecodeVersion>
130+
<requireMavenVersion>
131+
<version>${mavenBuildVersion}</version>
132+
</requireMavenVersion>
133+
<requireJavaVersion>
134+
<version>${javaBuildVersion}</version>
135+
</requireJavaVersion>
136+
</rules>
137+
</configuration>
138+
<executions>
139+
<execution>
140+
<id>enforce-versions</id>
141+
<goals>
142+
<goal>enforce</goal>
143+
</goals>
144+
</execution>
145+
</executions>
146+
<dependencies>
147+
<dependency>
148+
<groupId>org.codehaus.mojo</groupId>
149+
<artifactId>extra-enforcer-rules</artifactId>
150+
<version>1.6.1</version>
151+
</dependency>
152+
</dependencies>
97153
</plugin>
98154
<plugin>
99155
<groupId>org.apache.maven.plugins</groupId>
@@ -193,23 +249,34 @@ Bundle-DocURL: http://www.eclipse.org/sisu/
193249
<artifactId>jacoco-maven-plugin</artifactId>
194250
<version>0.8.8</version>
195251
</plugin>
196-
<plugin>
197-
<groupId>org.sonatype.plugins</groupId>
198-
<artifactId>nexus-staging-maven-plugin</artifactId>
199-
<version>1.6.13</version>
200-
</plugin>
201252
<plugin>
202253
<groupId>org.apache.maven.plugins</groupId>
203254
<artifactId>maven-release-plugin</artifactId>
204255
<version>3.0.0</version>
205256
<configuration>
206257
<dryRun>true</dryRun> <!-- releases are made using the prepare/perform_milestone.sh scripts -->
258+
<mavenExecutorId>forked-path</mavenExecutorId>
259+
<useReleaseProfile>false</useReleaseProfile>
260+
<arguments>-Psonatype-oss-release</arguments>
207261
</configuration>
208262
</plugin>
263+
<plugin>
264+
<groupId>org.apache.maven.plugins</groupId>
265+
<artifactId>maven-site-plugin</artifactId>
266+
<version>3.12.1</version>
267+
</plugin>
209268
<plugin>
210269
<groupId>org.apache.maven.plugins</groupId>
211270
<artifactId>maven-source-plugin</artifactId>
212271
<version>3.2.1</version>
272+
<executions>
273+
<execution>
274+
<id>attach-sources</id>
275+
<goals>
276+
<goal>jar-no-fork</goal>
277+
</goals>
278+
</execution>
279+
</executions>
213280
</plugin>
214281
<plugin>
215282
<groupId>org.apache.maven.plugins</groupId>
@@ -222,11 +289,47 @@ Bundle-DocURL: http://www.eclipse.org/sisu/
222289
<detectOfflineLinks>false</detectOfflineLinks>
223290
<quiet>true</quiet>
224291
</configuration>
292+
<executions>
293+
<execution>
294+
<id>attach-javadocs</id>
295+
<goals>
296+
<goal>jar</goal>
297+
</goals>
298+
</execution>
299+
</executions>
225300
</plugin>
226301
<plugin>
227302
<groupId>org.apache.maven.plugins</groupId>
228-
<artifactId>maven-site-plugin</artifactId>
229-
<version>3.12.1</version>
303+
<artifactId>maven-gpg-plugin</artifactId>
304+
<version>3.0.1</version>
305+
<configuration>
306+
<passphrase>${gpg.passphrase}</passphrase>
307+
<useAgent>true</useAgent>
308+
</configuration>
309+
<executions>
310+
<execution>
311+
<id>sign-artifacts</id>
312+
<phase>verify</phase>
313+
<goals>
314+
<goal>sign</goal>
315+
</goals>
316+
</execution>
317+
</executions>
318+
</plugin>
319+
<plugin>
320+
<groupId>org.sonatype.plugins</groupId>
321+
<artifactId>nexus-staging-maven-plugin</artifactId>
322+
<version>1.6.13</version>
323+
<extensions>true</extensions>
324+
<configuration>
325+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
326+
<serverId>sonatype-nexus-staging</serverId>
327+
</configuration>
328+
</plugin>
329+
<plugin>
330+
<groupId>org.apache.maven.plugins</groupId>
331+
<artifactId>maven-project-info-reports-plugin</artifactId>
332+
<version>3.4.2</version>
230333
</plugin>
231334
<plugin>
232335
<groupId>com.diffplug.spotless</groupId>
@@ -235,59 +338,11 @@ Bundle-DocURL: http://www.eclipse.org/sisu/
235338
</plugin>
236339
</plugins>
237340
</pluginManagement>
341+
238342
<plugins>
239343
<plugin>
240-
<!-- Must have it here as pluginMgmt would NOT override since parent POM defined it here as well -->
241344
<groupId>org.apache.maven.plugins</groupId>
242345
<artifactId>maven-enforcer-plugin</artifactId>
243-
<version>3.2.1</version>
244-
<executions>
245-
<execution>
246-
<id>enforce-maven</id>
247-
<goals>
248-
<goal>enforce</goal>
249-
</goals>
250-
<configuration>
251-
<rules>
252-
<enforceBytecodeVersion>
253-
<maxJdkVersion>${maven.compiler.target}</maxJdkVersion>
254-
<excludes>
255-
<!-- Used in tests only -->
256-
<exclude>org.junit.jupiter:junit-jupiter-api</exclude>
257-
<exclude>org.junit.platform:junit-platform-commons</exclude>
258-
<exclude>org.apache.felix:org.apache.felix.framework:jar:7.0.5</exclude>
259-
</excludes>
260-
</enforceBytecodeVersion>
261-
<requireMavenVersion>
262-
<version>${mavenBuildVersion}</version>
263-
</requireMavenVersion>
264-
<requireJavaVersion>
265-
<version>${javaBuildVersion}</version>
266-
</requireJavaVersion>
267-
</rules>
268-
</configuration>
269-
</execution>
270-
</executions>
271-
<dependencies>
272-
<dependency>
273-
<groupId>org.codehaus.mojo</groupId>
274-
<artifactId>extra-enforcer-rules</artifactId>
275-
<version>1.6.1</version>
276-
</dependency>
277-
</dependencies>
278-
</plugin>
279-
<plugin>
280-
<groupId>org.apache.maven.plugins</groupId>
281-
<artifactId>maven-source-plugin</artifactId>
282-
<executions>
283-
<execution>
284-
<id>attach-sources</id>
285-
<phase>verify</phase>
286-
<goals>
287-
<goal>jar-no-fork</goal>
288-
</goals>
289-
</execution>
290-
</executions>
291346
</plugin>
292347
</plugins>
293348
</build>
@@ -297,7 +352,6 @@ Bundle-DocURL: http://www.eclipse.org/sisu/
297352
<plugin>
298353
<groupId>org.apache.maven.plugins</groupId>
299354
<artifactId>maven-project-info-reports-plugin</artifactId>
300-
<version>3.4.2</version>
301355
</plugin>
302356
</plugins>
303357
</reporting>
@@ -333,27 +387,25 @@ Bundle-DocURL: http://www.eclipse.org/sisu/
333387
<id>sonatype-oss-release</id>
334388
<build>
335389
<plugins>
390+
<plugin>
391+
<groupId>org.apache.maven.plugins</groupId>
392+
<artifactId>maven-source-plugin</artifactId>
393+
</plugin>
394+
<plugin>
395+
<groupId>org.apache.maven.plugins</groupId>
396+
<artifactId>maven-javadoc-plugin</artifactId>
397+
</plugin>
336398
<plugin>
337399
<groupId>org.apache.maven.plugins</groupId>
338400
<artifactId>maven-gpg-plugin</artifactId>
339-
<version>3.0.1</version>
340-
<configuration>
341-
<passphrase>${gpg.passphrase}</passphrase>
342-
<useAgent>true</useAgent>
343-
</configuration>
344401
</plugin>
345402
<plugin>
346-
<extensions>true</extensions>
347403
<groupId>org.sonatype.plugins</groupId>
348404
<artifactId>nexus-staging-maven-plugin</artifactId>
349-
<configuration>
350-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
351-
<serverId>sonatype-nexus-staging</serverId>
352-
</configuration>
405+
<extensions>true</extensions>
353406
</plugin>
354407
</plugins>
355408
</build>
356409
</profile>
357410
</profiles>
358-
359411
</project>

0 commit comments

Comments
 (0)