-
Notifications
You must be signed in to change notification settings - Fork 1
/
tutorial
72 lines (51 loc) · 1.78 KB
/
tutorial
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#### Create Repository
#### https://stackoverflow.com/questions/28846802/how-to-manually-publish-jar-to-maven-central
1) Create your Jira account : Signup Sonatype //https://issues.sonatype.org/secure/Signup!default.jspa
username : febialfarabi
password : Gioibanez.1q2w3e4r
2) Create a new project ticket (to claim your workspace) : Create new project ticket
3) Generate a PGP Signature
gpg2 --gen-key
....
gpg: key YOUR_KEY_ID marked as ultimately trusted
...
4) Distributing your public key
gpg --keyserver hkp://pool.sks-keyservers.net --send-keys YOUR_KEY_ID
gpg --keyserver keyserver.ubuntu.com --send-keys yourkeyID
## To Check Key is exist
gpg --keyserver hkp://keyserver.ubuntu.com --search-key 'your@mail.com'
5) Update your ~/.m2/settings.xml like below
<settings>
<servers>
<server>
<id>ossrh</id>
<username>febialfarabi</username>
<password>Gioibanez.1q2w3e4r</password>
</server>
</servers>
<profiles>
<profile>
<id>ossrh</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.executable>gpg</gpg.executable>
<gpg.passphrase>gioibanez</gpg.passphrase>
</properties>
</profile>
</profiles>
</settings>
6) Update your project pom.xml
7) Run Maven
Maven will ask you for your passphrase
mvn clean deploy
8) Comment your Jira ticket
This will trigger the synchronization with central for your group id.
#### Installing GPG MAC
#### https://cerb.ai/guides/mail/gpg-setup-on-mac/#install-gpg
brew install gpg pinentry-mac
### Fix The Java Doc Failed
### https://github.com/assertj/assertj-core/issues/1403
### Fix the GPG Sign Failed
### https://stackoverflow.com/questions/53992950/maven-gpg-plugin-failing-with-inappropriate-ioctl-for-device-when-running-unde