Skip to content

Commit d3f0903

Browse files
authored
Replace oss parent with custom configuration (#2902)
1 parent 5b0b5c3 commit d3f0903

File tree

1 file changed

+50
-35
lines changed

1 file changed

+50
-35
lines changed

pom.xml

Lines changed: 50 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ We use these goals frequently to keep the dependencies and plugins up-to-date:
1919
-->
2020
<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/maven-v4_0_0.xsd">
2121
<modelVersion>4.0.0</modelVersion>
22-
<parent>
23-
<groupId>org.sonatype.oss</groupId>
24-
<artifactId>oss-parent</artifactId>
25-
<version>9</version>
26-
</parent>
2722
<groupId>io.vavr</groupId>
2823
<artifactId>vavr-parent</artifactId>
2924
<version>0.10.5-SNAPSHOT</version>
@@ -146,21 +141,6 @@ We use these goals frequently to keep the dependencies and plugins up-to-date:
146141
</plugins>
147142
<pluginManagement>
148143
<plugins>
149-
<plugin>
150-
<groupId>org.apache.maven.plugins</groupId>
151-
<artifactId>maven-source-plugin</artifactId>
152-
<version>${maven.source.version}</version>
153-
<executions>
154-
<execution>
155-
<id>attach-sources</id>
156-
<phase>prepare-package</phase>
157-
<goals>
158-
<goal>jar-no-fork</goal>
159-
<goal>test-jar-no-fork</goal>
160-
</goals>
161-
</execution>
162-
</executions>
163-
</plugin>
164144
<plugin>
165145
<groupId>org.moditect</groupId>
166146
<artifactId>moditect-maven-plugin</artifactId>
@@ -365,38 +345,72 @@ We use these goals frequently to keep the dependencies and plugins up-to-date:
365345
</plugins>
366346
</build>
367347
</profile>
368-
<!-- A profile for gpg-signing .jars when releasing -->
369348
<profile>
370-
<id>release-sign-artifacts</id>
371-
<activation>
372-
<property>
373-
<!-- Automatically set to true on mvn release:perform -->
374-
<name>performRelease</name>
375-
<value>true</value>
376-
</property>
377-
</activation>
349+
<id>sonatype-oss-release</id>
378350
<build>
379351
<plugins>
380352
<plugin>
381353
<groupId>org.apache.maven.plugins</groupId>
382-
<artifactId>maven-gpg-plugin</artifactId>
383-
<version>${maven.gpg.version}</version>
354+
<artifactId>maven-source-plugin</artifactId>
355+
<version>${maven.source.version}</version>
356+
<executions>
357+
<execution>
358+
<id>attach-sources</id>
359+
<phase>prepare-package</phase>
360+
<goals>
361+
<goal>jar-no-fork</goal>
362+
<goal>test-jar-no-fork</goal>
363+
</goals>
364+
</execution>
365+
</executions>
366+
</plugin>
367+
<plugin>
368+
<groupId>org.apache.maven.plugins</groupId>
369+
<artifactId>maven-javadoc-plugin</artifactId>
370+
<version>3.10.1</version>
371+
<executions>
372+
<execution>
373+
<id>attach-javadocs</id>
374+
<goals>
375+
<goal>jar</goal>
376+
</goals>
377+
</execution>
378+
</executions>
384379
<configuration>
385-
<gpgArguments>
386-
<arg>--pinentry-mode</arg>
387-
<arg>loopback</arg>
388-
</gpgArguments>
380+
<links>
381+
<link>https://docs.oracle.com/javase/8/docs/api/</link>
382+
</links>
383+
<stylesheetfile>${basedir}/../.javadoc/stylesheet.css</stylesheetfile>
389384
</configuration>
385+
</plugin>
386+
<plugin>
387+
<groupId>org.apache.maven.plugins</groupId>
388+
<artifactId>maven-gpg-plugin</artifactId>
389+
<version>3.2.7</version>
390390
<executions>
391391
<execution>
392392
<id>sign-artifacts</id>
393393
<phase>verify</phase>
394394
<goals>
395395
<goal>sign</goal>
396396
</goals>
397+
<configuration>
398+
<gpgArguments>
399+
<arg>--pinentry-mode</arg>
400+
<arg>loopback</arg>
401+
</gpgArguments>
402+
</configuration>
397403
</execution>
398404
</executions>
399405
</plugin>
406+
407+
<plugin>
408+
<groupId>org.apache.maven.plugins</groupId>
409+
<artifactId>maven-deploy-plugin</artifactId>
410+
<configuration>
411+
<skip>true</skip>
412+
</configuration>
413+
</plugin>
400414
<plugin>
401415
<groupId>org.sonatype.plugins</groupId>
402416
<artifactId>nexus-staging-maven-plugin</artifactId>
@@ -418,6 +432,7 @@ We use these goals frequently to keep the dependencies and plugins up-to-date:
418432
</plugins>
419433
</build>
420434
</profile>
435+
421436
<!-- A profile for eliminating eclipse m2e warnings -->
422437
<profile>
423438
<id>eclipse-m2e</id>

0 commit comments

Comments
 (0)