|
20 | 20 | Project Maintenance |
21 | 21 | ================= |
22 | 22 |
|
23 | | -Publishing to Maven Central Repository: |
| 23 | +## Release steps |
24 | 24 |
|
25 | | -1. Create a Jira account by signing up at: https://issues.sonatype.org/secure/Signup!default.jspa |
26 | | -2. Create a new project ticket at: https://issues.sonatype.org/secure/CreateIssue.jspa?issuetype=21&pid=10134 (make sure the Issue Type is *New Project*) |
27 | | -3. Generate a PGP Signature and distribute it to one or more public key servers. To generate a PGP Signature: |
28 | | - ``` |
29 | | - $ gpg2 --gen-key |
| 25 | +### Publish Maven Artifacts |
| 26 | +Apache projects release all software packages through the ASF distribution system. |
30 | 27 |
|
31 | | - $ gpg: key YOUR_KEY_ID marked as ultimately trusted |
32 | | - ``` |
33 | | - To distribute: |
34 | | - ``` |
35 | | - $ gpg2 --keyserver SERVER_NAME --send-keys YOUR_KEY_ID |
36 | | - ``` |
| 28 | +1. Set up your development environment. For more details, see the [Publishing Maven Releases to Maven Central Repository](https://infra.apache.org/publishing-maven-artifacts.html). |
37 | 29 |
|
38 | | -4. Find your ~.m2 folder (this folder is hidden on some systems) |
39 | | -5. Update or create your settings.xml to contain your Jira and public key information: |
40 | | -```xml |
41 | | -<settings> |
42 | | - <servers> |
43 | | - <server> |
44 | | - <id>ossrh</id> |
45 | | - <username>jira_username</username> |
46 | | - <password>jira_password</password> |
47 | | - </server> |
48 | | - </servers> |
49 | | - <profiles> |
50 | | - <profile> |
51 | | - <id>ossrh</id> |
52 | | - <activation> |
53 | | - <activeByDefault>true</activeByDefault> |
54 | | - </activation> |
55 | | - <properties> |
56 | | - <gpg.executable>gpg2</gpg.executable> |
57 | | - <gpg.passphrase>your_key_passphrase</gpg.passphrase> |
58 | | - </properties> |
59 | | - </profile> |
60 | | - </profiles> |
61 | | -</settings> |
62 | | -``` |
63 | | -6. Run Maven from the project directory |
64 | | -``` |
65 | | -$ mvn clean deploy |
66 | | -``` |
67 | | -7. Login to nexus repository manager using your Jira account created in step 1 (https://s01.oss.sonatype.org/#welcome) |
68 | | -8. Click on *Staging Repositories* on the left sidebar, your staging repository should be available |
69 | | -9. Click on your staging repository and ensure it contains the correct contents, click *Close*, include a relevant description |
70 | | -10. Wait a few seconds for Sonatype to buffer |
71 | | -11. Click *Release*, include a relevant description |
72 | | -12. Comment your Jira ticket to sync Maven Central with your Group ID |
| 30 | +2. Deploy the snapshot artifacts to Apache Nexus |
73 | 31 |
|
74 | | -Congratulations! You have released to Maven Central Repository. The search query should sync within a few hours to a day. |
| 32 | +```shell |
| 33 | +make deploy |
| 34 | +``` |
0 commit comments