Skip to content

Commit 52c7ab8

Browse files
committed
Getting rid of deprecated sonatype parent pom
1 parent c0d4de5 commit 52c7ab8

File tree

1 file changed

+40
-8
lines changed

1 file changed

+40
-8
lines changed

pom.xml

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<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">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
34
<modelVersion>4.0.0</modelVersion>
45

5-
<parent>
6-
<groupId>org.sonatype.oss</groupId>
7-
<artifactId>oss-parent</artifactId>
8-
<version>9</version>
9-
</parent>
10-
116
<groupId>de.andrena.tools.nopackagecycles</groupId>
127
<artifactId>no-package-cycles-enforcer-rule</artifactId>
138
<version>1.0.6-SNAPSHOT</version>
@@ -107,12 +102,38 @@
107102
<phase>compile</phase>
108103
<configuration>
109104
<rules>
110-
<NoPackageCyclesRule implementation="de.andrena.tools.nopackagecycles.NoPackageCyclesRule" />
105+
<NoPackageCyclesRule
106+
implementation="de.andrena.tools.nopackagecycles.NoPackageCyclesRule" />
111107
</rules>
112108
</configuration>
113109
</execution>
114110
</executions>
115111
</plugin>
112+
<plugin>
113+
<groupId>org.sonatype.plugins</groupId>
114+
<artifactId>nexus-staging-maven-plugin</artifactId>
115+
<version>1.6.7</version>
116+
<extensions>true</extensions>
117+
<configuration>
118+
<serverId>ossrh</serverId>
119+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
120+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
121+
</configuration>
122+
</plugin>
123+
<plugin>
124+
<groupId>org.apache.maven.plugins</groupId>
125+
<artifactId>maven-gpg-plugin</artifactId>
126+
<version>1.5</version>
127+
<executions>
128+
<execution>
129+
<id>sign-artifacts</id>
130+
<phase>verify</phase>
131+
<goals>
132+
<goal>sign</goal>
133+
</goals>
134+
</execution>
135+
</executions>
136+
</plugin>
116137
</plugins>
117138
</build>
118139

@@ -177,4 +198,15 @@
177198
<scope>test</scope>
178199
</dependency>
179200
</dependencies>
201+
202+
<distributionManagement>
203+
<snapshotRepository>
204+
<id>ossrh</id>
205+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
206+
</snapshotRepository>
207+
<repository>
208+
<id>ossrh</id>
209+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
210+
</repository>
211+
</distributionManagement>
180212
</project>

0 commit comments

Comments
 (0)