Skip to content

Commit 6c4a150

Browse files
committed
adding sign plugin for release profile
1 parent 322dd30 commit 6c4a150

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

pom.xml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,19 @@
152152
</execution>
153153
</executions>
154154
</plugin>
155+
<plugin>
156+
<groupId>org.apache.maven.plugins</groupId>
157+
<artifactId>maven-javadoc-plugin</artifactId>
158+
<version>2.10.4</version>
159+
<executions>
160+
<execution>
161+
<id>attach-javadocs</id>
162+
<goals>
163+
<goal>jar</goal>
164+
</goals>
165+
</execution>
166+
</executions>
167+
</plugin>
155168
</plugins>
156169
</build>
157170

@@ -163,6 +176,20 @@
163176
</activation>
164177
<build>
165178
<plugins>
179+
<plugin>
180+
<groupId>org.apache.maven.plugins</groupId>
181+
<artifactId>maven-gpg-plugin</artifactId>
182+
<version>1.5</version>
183+
<executions>
184+
<execution>
185+
<id>sign-artifacts</id>
186+
<phase>verify</phase>
187+
<goals>
188+
<goal>sign</goal>
189+
</goals>
190+
</execution>
191+
</executions>
192+
</plugin>
166193
<plugin>
167194
<groupId>org.apache.maven.plugins</groupId>
168195
<artifactId>maven-enforcer-plugin</artifactId>
@@ -190,37 +217,10 @@
190217
<extensions>true</extensions>
191218
<configuration>
192219
<checksums>required</checksums>
193-
<skipPublishing>true</skipPublishing>
194-
<publishingServerId>central</publishingServerId>
220+
<skipPublishing>false</skipPublishing>
221+
<publishingServerId>sonatype-nexus-staging</publishingServerId>
195222
</configuration>
196223
</plugin>
197-
198-
<plugin>
199-
<groupId>org.apache.maven.plugins</groupId>
200-
<artifactId>maven-source-plugin</artifactId>
201-
<version>2.2.1</version>
202-
<executions>
203-
<execution>
204-
<id>attach-sources</id>
205-
<goals>
206-
<goal>jar-no-fork</goal>
207-
</goals>
208-
</execution>
209-
</executions>
210-
</plugin>
211-
<plugin>
212-
<groupId>org.apache.maven.plugins</groupId>
213-
<artifactId>maven-javadoc-plugin</artifactId>
214-
<version>2.9.1</version>
215-
<executions>
216-
<execution>
217-
<id>attach-javadocs</id>
218-
<goals>
219-
<goal>jar</goal>
220-
</goals>
221-
</execution>
222-
</executions>
223-
</plugin>
224224
</plugins>
225225
</build>
226226
</profile>

0 commit comments

Comments
 (0)