Skip to content

Commit 641381e

Browse files
optimize pom.xml
1 parent 6524ba1 commit 641381e

1 file changed

Lines changed: 11 additions & 37 deletions

File tree

pom.xml

Lines changed: 11 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
<distribution>repo</distribution>
1515
</license>
1616
</licenses>
17-
<parent>
18-
<groupId>org.sonatype.oss</groupId>
19-
<artifactId>oss-parent</artifactId>
20-
<version>7</version>
21-
</parent>
2217
<organization>
2318
<name>TestingBot</name>
2419
<url>https://testingbot.com/</url>
@@ -32,37 +27,16 @@
3227
</developer>
3328
</developers>
3429
<scm>
35-
<connection>scm:git:git://github.com/testingbot/testingbot-java.git</connection>
30+
<connection>scm:git:https://github.com/testingbot/testingbot-java.git</connection>
3631
<developerConnection>scm:git:git@github.com:testingbot/testingbot-java.git</developerConnection>
37-
<url>git@github.com:testingbot/testingbot-java.git</url>
32+
<url>https://github.com/testingbot/testingbot-java</url>
3833
<tag>HEAD</tag>
3934
</scm>
4035
<properties>
36+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
37+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
4138
<junit.version>4.13.2</junit.version>
4239
</properties>
43-
<distributionManagement>
44-
<snapshotRepository>
45-
<id>ossrh</id>
46-
<name>Nexus Release Repository</name>
47-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
48-
</snapshotRepository>
49-
<repository>
50-
<id>ossrh</id>
51-
<name>Nexus Release Repository</name>
52-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
53-
</repository>
54-
</distributionManagement>
55-
<profiles>
56-
<profile>
57-
<id>JDK 8 Build</id>
58-
<activation>
59-
<jdk>[1.8,)</jdk>
60-
</activation>
61-
<properties>
62-
<additionalparam>-Xdoclint:none</additionalparam>
63-
</properties>
64-
</profile>
65-
</profiles>
6640
<dependencies>
6741
<dependency>
6842
<groupId>org.apache.httpcomponents</groupId>
@@ -127,14 +101,14 @@
127101
</executions>
128102
</plugin>
129103
<plugin>
130-
<groupId>org.sonatype.plugins</groupId>
131-
<artifactId>nexus-staging-maven-plugin</artifactId>
132-
<version>1.6.12</version>
104+
<groupId>org.sonatype.central</groupId>
105+
<artifactId>central-publishing-maven-plugin</artifactId>
106+
<version>0.7.0</version>
133107
<extensions>true</extensions>
134108
<configuration>
135-
<serverId>ossrh</serverId>
136-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
137-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
109+
<publishingServerId>central</publishingServerId>
110+
<autoPublish>true</autoPublish>
111+
<waitUntil>published</waitUntil>
138112
</configuration>
139113
</plugin>
140114
<plugin>
@@ -186,7 +160,6 @@
186160
<artifactId>maven-release-plugin</artifactId>
187161
<version>2.5.3</version>
188162
<configuration>
189-
<goals>deploy nexus-staging:release</goals>
190163
<autoVersionSubmodules>true</autoVersionSubmodules>
191164
<useReleaseProfile>false</useReleaseProfile>
192165
<releaseProfiles>release</releaseProfiles>
@@ -239,6 +212,7 @@
239212
<configuration>
240213
<source>8</source>
241214
<detectJavaApiLink>false</detectJavaApiLink>
215+
<doclint>none</doclint>
242216
</configuration>
243217
<executions>
244218
<execution>

0 commit comments

Comments
 (0)