Skip to content

Commit 7f5e4e9

Browse files
author
Olivier Chédru
committed
Fix release build
1 parent ff71480 commit 7f5e4e9

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed

pom.xml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,92 @@
2828
<developerConnection>scm:git:git@github.com:dhatim/dropwizard-correlation-id.git</developerConnection>
2929
<url>git@github.com:dhatim/dropwizard-correlation-id.git</url>
3030
</scm>
31+
<distributionManagement>
32+
<snapshotRepository>
33+
<id>ossrh</id>
34+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
35+
</snapshotRepository>
36+
</distributionManagement>
3137
<properties>
3238
<java.source>1.8</java.source>
3339
<maven.compiler.source>1.8</maven.compiler.source>
3440
<maven.compiler.target>1.8</maven.compiler.target>
3541
<dropwizard.version>2.1.0</dropwizard.version>
3642
</properties>
43+
<repositories>
44+
<repository>
45+
<id>sonatype-nexus-snapshots</id>
46+
<name>Sonatype Nexus Snapshots</name>
47+
<url>http://oss.sonatype.org/content/repositories/snapshots</url>
48+
<releases>
49+
<enabled>false</enabled>
50+
</releases>
51+
<snapshots>
52+
<enabled>true</enabled>
53+
</snapshots>
54+
</repository>
55+
</repositories>
56+
<profiles>
57+
<profile>
58+
<id>release</id>
59+
<build>
60+
<plugins>
61+
<plugin>
62+
<artifactId>maven-gpg-plugin</artifactId>
63+
<version>3.0.1</version>
64+
<executions>
65+
<execution>
66+
<id>sign-artifacts</id>
67+
<phase>verify</phase>
68+
<goals>
69+
<goal>sign</goal>
70+
</goals>
71+
</execution>
72+
</executions>
73+
</plugin>
74+
<plugin>
75+
<artifactId>maven-javadoc-plugin</artifactId>
76+
<version>3.4.0</version>
77+
<configuration>
78+
<quiet>true</quiet>
79+
</configuration>
80+
<executions>
81+
<execution>
82+
<id>attach-javadocs</id>
83+
<goals>
84+
<goal>jar</goal>
85+
</goals>
86+
</execution>
87+
</executions>
88+
</plugin>
89+
<plugin>
90+
<artifactId>maven-source-plugin</artifactId>
91+
<version>3.2.1</version>
92+
<executions>
93+
<execution>
94+
<id>attach-sources</id>
95+
<goals>
96+
<goal>jar-no-fork</goal>
97+
</goals>
98+
</execution>
99+
</executions>
100+
</plugin>
101+
<plugin>
102+
<groupId>org.sonatype.plugins</groupId>
103+
<artifactId>nexus-staging-maven-plugin</artifactId>
104+
<version>1.6.13</version>
105+
<extensions>true</extensions>
106+
<configuration>
107+
<serverId>ossrh</serverId>
108+
<nexusUrl>https://oss.sonatype.org</nexusUrl>
109+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
110+
<stagingProgressTimeoutMinutes>60</stagingProgressTimeoutMinutes>
111+
</configuration>
112+
</plugin>
113+
</plugins>
114+
</build>
115+
</profile>
116+
</profiles>
37117
<dependencies>
38118
<dependency>
39119
<groupId>io.dropwizard</groupId>

0 commit comments

Comments
 (0)