Skip to content

Commit 8a2bb72

Browse files
committed
reconfigured POM for Central Repository deployment
1 parent d028331 commit 8a2bb72

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

pom.xml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,17 @@
5656
<developerConnection>scm:git:git@github.com:Skelp/verifier.git</developerConnection>
5757
</scm>
5858

59+
<distributionManagement>
60+
<snapshotRepository>
61+
<id>ossrh</id>
62+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
63+
</snapshotRepository>
64+
<repository>
65+
<id>ossrh</id>
66+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
67+
</repository>
68+
</distributionManagement>
69+
5970
<developers>
6071
<developer>
6172
<id>neocotic</id>
@@ -91,6 +102,20 @@
91102

92103
<build>
93104
<plugins>
105+
<plugin>
106+
<groupId>org.apache.maven.plugins</groupId>
107+
<artifactId>maven-gpg-plugin</artifactId>
108+
<version>1.6</version>
109+
<executions>
110+
<execution>
111+
<id>sign-artifacts</id>
112+
<phase>verify</phase>
113+
<goals>
114+
<goal>sign</goal>
115+
</goals>
116+
</execution>
117+
</executions>
118+
</plugin>
94119
<plugin>
95120
<groupId>org.apache.maven.plugins</groupId>
96121
<artifactId>maven-jar-plugin</artifactId>
@@ -104,6 +129,32 @@
104129
</archive>
105130
</configuration>
106131
</plugin>
132+
<plugin>
133+
<groupId>org.apache.maven.plugins</groupId>
134+
<artifactId>maven-javadoc-plugin</artifactId>
135+
<version>2.10.4</version>
136+
<executions>
137+
<execution>
138+
<id>attach-javadocs</id>
139+
<goals>
140+
<goal>jar</goal>
141+
</goals>
142+
</execution>
143+
</executions>
144+
</plugin>
145+
<plugin>
146+
<groupId>org.apache.maven.plugins</groupId>
147+
<artifactId>maven-source-plugin</artifactId>
148+
<version>3.0.1</version>
149+
<executions>
150+
<execution>
151+
<id>attach-sources</id>
152+
<goals>
153+
<goal>jar-no-fork</goal>
154+
</goals>
155+
</execution>
156+
</executions>
157+
</plugin>
107158
<plugin>
108159
<groupId>org.apache.maven.plugins</groupId>
109160
<artifactId>maven-surefire-plugin</artifactId>
@@ -184,6 +235,17 @@
184235
</execution>
185236
</executions>
186237
</plugin>
238+
<plugin>
239+
<groupId>org.sonatype.plugins</groupId>
240+
<artifactId>nexus-staging-maven-plugin</artifactId>
241+
<version>1.6.7</version>
242+
<extensions>true</extensions>
243+
<configuration>
244+
<serverId>ossrh</serverId>
245+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
246+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
247+
</configuration>
248+
</plugin>
187249
</plugins>
188250
</build>
189251
</project>

0 commit comments

Comments
 (0)