brew install maven
cd <your-user>/.m2
vi settings.xml
<settings>
<servers>
<server>
<id>central</id>
<username><!-- your token username --></username>
<password><!-- your token password --></password>
</server>
</servers>
</settings>
gpg --gen-key
gpg --keyserver keys.openpgp.org --send-keys YOUR-KEY-ID
gpg --keyserver keyserver.ubuntu.com --send-keys YOUR-KEY-ID
Add the following to <executions></executions>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
<configuration>
<keyname>YOUR-KEY-ID</keyname>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</executions>
mvn clean deploy
https://central.sonatype.com/artifact/com.starkinfra.core/starkcore