Skip to content

Commit 2914b9b

Browse files
committed
chore: update POM for new Maven Central deployment
1 parent 9ca0e3e commit 2914b9b

File tree

1 file changed

+69
-18
lines changed

1 file changed

+69
-18
lines changed

pom.xml

Lines changed: 69 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33

44
<modelVersion>4.0.0</modelVersion>
55

6-
<parent>
7-
<groupId>org.sonatype.oss</groupId>
8-
<artifactId>oss-parent</artifactId>
9-
<version>7</version>
10-
</parent>
11-
126
<groupId>org.w3c</groupId>
137
<artifactId>epubcheck</artifactId>
148
<version>5.3.0-SNAPSHOT</version>
@@ -63,17 +57,6 @@
6357
<url>https://github.com/w3c/epubcheck/issues</url>
6458
</issueManagement>
6559

66-
<distributionManagement>
67-
<snapshotRepository>
68-
<id>ossrh</id>
69-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
70-
</snapshotRepository>
71-
<repository>
72-
<id>ossrh</id>
73-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
74-
</repository>
75-
</distributionManagement>
76-
7760
<properties>
7861
<java.version>1.8</java.version>
7962
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -423,13 +406,23 @@
423406
<plugin>
424407
<groupId>org.apache.maven.plugins</groupId>
425408
<artifactId>maven-javadoc-plugin</artifactId>
426-
<version>3.4.1</version>
409+
<version>3.11.3</version>
427410
<configuration>
428411
<additionalparam>-Xdoclint:none</additionalparam>
429412
<failOnError>false</failOnError>
430413
<source>${java.version}</source>
431414
</configuration>
432415
</plugin>
416+
<plugin>
417+
<groupId>org.apache.maven.plugins</groupId>
418+
<artifactId>maven-source-plugin</artifactId>
419+
<version>3.3.1</version>
420+
</plugin>
421+
<plugin>
422+
<groupId>org.apache.maven.plugins</groupId>
423+
<artifactId>maven-gpg-plugin</artifactId>
424+
<version>3.2.8</version>
425+
</plugin>
433426
<plugin>
434427
<!-- required to work around issues with git 1.8.5 and release-plugin -->
435428
<!-- https://jira.codehaus.org/browse/SCM-738 -->
@@ -446,6 +439,9 @@
446439
<configuration>
447440
<tagNameFormat>v@{project.version}</tagNameFormat>
448441
<scmCommentPrefix xml:space="preserve">chore: </scmCommentPrefix>
442+
<mavenExecutorId>forked-path</mavenExecutorId>
443+
<useReleaseProfile>false</useReleaseProfile>
444+
<arguments>-Prelease</arguments>
449445
</configuration>
450446
</plugin>
451447
<plugin>
@@ -482,6 +478,15 @@
482478
</execution>
483479
</executions>
484480
</plugin>
481+
<plugin>
482+
<groupId>org.sonatype.central</groupId>
483+
<artifactId>central-publishing-maven-plugin</artifactId>
484+
<version>0.8.0</version>
485+
<extensions>true</extensions>
486+
<configuration>
487+
<publishingServerId>central</publishingServerId>
488+
</configuration>
489+
</plugin>
485490
</plugins>
486491
<pluginManagement>
487492
<plugins>
@@ -539,4 +544,50 @@
539544
</plugins>
540545
</pluginManagement>
541546
</build>
547+
<profiles>
548+
<profile>
549+
<id>release</id>
550+
<build>
551+
<plugins>
552+
<plugin>
553+
<groupId>org.apache.maven.plugins</groupId>
554+
<artifactId>maven-source-plugin</artifactId>
555+
<executions>
556+
<execution>
557+
<id>attach-sources</id>
558+
<goals>
559+
<goal>jar-no-fork</goal>
560+
</goals>
561+
</execution>
562+
</executions>
563+
</plugin>
564+
<plugin>
565+
<groupId>org.apache.maven.plugins</groupId>
566+
<artifactId>maven-javadoc-plugin</artifactId>
567+
<executions>
568+
<execution>
569+
<id>attach-javadocs</id>
570+
<goals>
571+
<goal>jar</goal>
572+
</goals>
573+
</execution>
574+
</executions>
575+
</plugin>
576+
<plugin>
577+
<groupId>org.apache.maven.plugins</groupId>
578+
<artifactId>maven-gpg-plugin</artifactId>
579+
<executions>
580+
<execution>
581+
<id>sign-artifacts</id>
582+
<phase>verify</phase>
583+
<goals>
584+
<goal>sign</goal>
585+
</goals>
586+
</execution>
587+
</executions>
588+
</plugin>
589+
</plugins>
590+
</build>
591+
</profile>
592+
</profiles>
542593
</project>

0 commit comments

Comments
 (0)