Skip to content

Commit a4d4ade

Browse files
author
Olivier Chédru
committed
Fix deploy
1 parent bb04245 commit a4d4ade

File tree

1 file changed

+23
-28
lines changed

1 file changed

+23
-28
lines changed

pom.xml

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<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">
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
23
<modelVersion>4.0.0</modelVersion>
34

45
<parent>
@@ -53,38 +54,32 @@
5354
<url>https://github.com/dhatim/dropwizard-prometheus/issues</url>
5455
</issueManagement>
5556

56-
<repositories>
57-
<repository>
58-
<id>sonatype-nexus-snapshots</id>
59-
<name>Sonatype Nexus Snapshots</name>
60-
<url>http://oss.sonatype.org/content/repositories/snapshots</url>
61-
<releases>
62-
<enabled>false</enabled>
63-
</releases>
64-
<snapshots>
65-
<enabled>true</enabled>
66-
</snapshots>
67-
</repository>
68-
</repositories>
69-
70-
<distributionManagement>
71-
<snapshotRepository>
72-
<id>sonatype-nexus-snapshots</id>
73-
<name>Sonatype Nexus Snapshots</name>
74-
<url>http://oss.sonatype.org/content/repositories/snapshots</url>
75-
</snapshotRepository>
76-
<repository>
77-
<id>sonatype-nexus-staging</id>
78-
<name>Nexus Release Repository</name>
79-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
80-
</repository>
81-
</distributionManagement>
82-
8357
<profiles>
8458
<profile>
8559
<id>release</id>
8660
<build>
8761
<plugins>
62+
<plugin>
63+
<groupId>org.sonatype.plugins</groupId>
64+
<artifactId>nexus-staging-maven-plugin</artifactId>
65+
<extensions>true</extensions>
66+
<configuration>
67+
<serverId>ossrh</serverId>
68+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
69+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
70+
</configuration>
71+
</plugin>
72+
<plugin>
73+
<artifactId>maven-source-plugin</artifactId>
74+
<executions>
75+
<execution>
76+
<id>attach-sources</id>
77+
<goals>
78+
<goal>jar-no-fork</goal>
79+
</goals>
80+
</execution>
81+
</executions>
82+
</plugin>
8883
<plugin>
8984
<artifactId>maven-gpg-plugin</artifactId>
9085
<executions>

0 commit comments

Comments
 (0)