222222 <artifactId >maven-deploy-plugin</artifactId >
223223 <version >2.8.2</version >
224224 </plugin >
225- <plugin >
226- <groupId >com.github.s4u.plugins</groupId >
227- <artifactId >pgpverify-maven-plugin</artifactId >
228- <version >1.0.0</version >
229- </plugin >
230-
231- <plugin >
225+ <plugin >
232226 <groupId >org.apache.maven.plugins</groupId >
233- <artifactId >maven-pdf-plugin</artifactId >
234- <version >1.3</version >
235-
236- <executions >
237- <execution >
238- <id >pdf-userguide</id >
239- <phase >site</phase >
240- <goals >
241- <goal >pdf</goal >
242- </goals >
243- <configuration >
244- <outputDirectory >${project.reporting.outputDirectory} </outputDirectory >
245- <includeReports >true</includeReports >
246- <docDescriptor >src/site/pdf-user.xml</docDescriptor >
247- </configuration >
248- </execution >
249- <execution >
250- <id >pdf-admin</id >
251- <phase >site</phase >
252- <goals >
253- <goal >pdf</goal >
254- </goals >
255- <configuration >
256- <outputDirectory >${project.reporting.outputDirectory} </outputDirectory >
257- <includeReports >true</includeReports >
258- <docDescriptor >src/site/pdf-admin.xml</docDescriptor >
259- </configuration >
260- </execution >
261- </executions >
262- <dependencies >
263- <dependency >
264- <groupId >org.apache.maven.doxia</groupId >
265- <artifactId >doxia-module-markdown</artifactId >
266- <version >1.6</version >
267- </dependency >
268- </dependencies >
227+ <artifactId >maven-release-plugin</artifactId >
228+ <version >2.5.3</version >
229+ <configuration >
230+ <autoVersionSubmodules >true</autoVersionSubmodules >
231+ <preparationGoals >clean install</preparationGoals >
232+ <goals >deploy</goals >
233+ <releaseProfiles >release</releaseProfiles >
234+ <tagNameFormat >installcert-@{project.version}</tagNameFormat >
235+ </configuration >
269236 </plugin >
270237 </plugins >
271238
429396
430397 </plugins >
431398 </reporting >
399+
400+ <profiles >
432401
402+ <!-- START SNIPPET: release-profile -->
403+ <profile >
404+ <id >release</id >
405+
406+
407+ <build >
408+ <plugins >
409+
410+
411+ <!-- We want to deploy the artifact to a staging location for perusal -->
412+ <plugin >
413+ <inherited >true</inherited >
414+ <groupId >org.apache.maven.plugins</groupId >
415+ <artifactId >maven-deploy-plugin</artifactId >
416+ <configuration >
417+ <updateReleaseInfo >true</updateReleaseInfo >
418+ </configuration >
419+ </plugin >
420+ <plugin >
421+ <groupId >org.apache.maven.plugins</groupId >
422+ <artifactId >maven-source-plugin</artifactId >
423+ <executions >
424+ <execution >
425+ <id >attach-sources</id >
426+ <goals >
427+ <goal >jar-no-fork</goal >
428+ </goals >
429+ </execution >
430+ </executions >
431+ </plugin >
432+
433+ <plugin >
434+ <groupId >org.apache.maven.plugins</groupId >
435+ <artifactId >maven-javadoc-plugin</artifactId >
436+ </plugin >
437+ <!-- We want to sign the artifact, the POM, and all attached artifacts -->
438+ <plugin >
439+ <groupId >org.apache.maven.plugins</groupId >
440+ <artifactId >maven-gpg-plugin</artifactId >
441+ <version >1.6</version >
442+ <executions >
443+ <execution >
444+ <id >sign-release-artifacts</id >
445+ <goals >
446+ <goal >sign</goal >
447+ </goals >
448+ </execution >
449+ </executions >
450+ </plugin >
451+ </plugins >
452+ </build >
453+ </profile >
454+ </profiles >
433455
434456</project >
0 commit comments