|
617 | 617 | </repository> |
618 | 618 | </distributionManagement> |
619 | 619 | </profile> |
| 620 | + |
| 621 | + <profile> |
| 622 | + <id>release</id> |
| 623 | + <build> |
| 624 | + <plugins> |
| 625 | + <plugin> |
| 626 | + <groupId>org.sonatype.central</groupId> |
| 627 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 628 | + <version>0.6.0</version> |
| 629 | + <extensions>true</extensions> |
| 630 | + <configuration> |
| 631 | + <publishingServerId>central</publishingServerId> |
| 632 | + <tokenAuth>true</tokenAuth> |
| 633 | + <autoPublish>true</autoPublish> |
| 634 | + </configuration> |
| 635 | + </plugin> |
| 636 | + <plugin> |
| 637 | + <groupId>org.apache.maven.plugins</groupId> |
| 638 | + <artifactId>maven-source-plugin</artifactId> |
| 639 | + <version>${maven-source-plugin.version}</version> |
| 640 | + <executions> |
| 641 | + <execution> |
| 642 | + <id>attach-sources</id> |
| 643 | + <phase>package</phase> |
| 644 | + <goals> |
| 645 | + <goal>jar-no-fork</goal> |
| 646 | + </goals> |
| 647 | + </execution> |
| 648 | + </executions> |
| 649 | + </plugin> |
| 650 | + <plugin> |
| 651 | + <groupId>org.apache.maven.plugins</groupId> |
| 652 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 653 | + <version>${maven-javadoc-plugin.version}</version> |
| 654 | + <configuration> |
| 655 | + <sourceFileExcludes> |
| 656 | + <sourceFileExclude>dev/amp/validator/ValidatorProtos.java</sourceFileExclude> |
| 657 | + </sourceFileExcludes> |
| 658 | + </configuration> |
| 659 | + <executions> |
| 660 | + <execution> |
| 661 | + <id>attach-javadocs</id> |
| 662 | + <phase>package</phase> |
| 663 | + <goals> |
| 664 | + <goal>jar</goal> |
| 665 | + </goals> |
| 666 | + </execution> |
| 667 | + </executions> |
| 668 | + </plugin> |
| 669 | + <plugin> |
| 670 | + <groupId>org.apache.maven.plugins</groupId> |
| 671 | + <artifactId>maven-gpg-plugin</artifactId> |
| 672 | + <version>${maven-gpg-plugin.version}</version> |
| 673 | + <executions> |
| 674 | + <execution> |
| 675 | + <id>sign-artifacts</id> |
| 676 | + <phase>verify</phase> |
| 677 | + <goals> |
| 678 | + <goal>sign</goal> |
| 679 | + </goals> |
| 680 | + </execution> |
| 681 | + </executions> |
| 682 | + <configuration> |
| 683 | + <!-- Specify a pair of arguments to gpg to change it's pinentry-mode to 'loopback' |
| 684 | + Once you've done this, it will honor the gpg.passphrase value, either from an |
| 685 | + environment variable or from a user property.--> |
| 686 | + <gpgArguments> |
| 687 | + <arg>--pinentry-mode</arg> |
| 688 | + <arg>loopback</arg> |
| 689 | + </gpgArguments> |
| 690 | + </configuration> |
| 691 | + </plugin> |
| 692 | + </plugins> |
| 693 | + </build> |
| 694 | + </profile> |
620 | 695 | </profiles> |
621 | 696 |
|
622 | 697 | <dependencies> |
|
0 commit comments