1. generate Personal Access Tocken
steps are here
2. add to ~/.m2/settings.xml
replace the TOKEN string with the token from prev step!!
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<activeProfiles>
<activeProfile>github</activeProfile>
</activeProfiles>
<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
</repository>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/BorisDaich/biz.daich</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
<servers>
<server>
<id>github</id>
<username>BorisDaich</username>
<password>TOKEN</password>
</server>
</servers>
</settings>reference is from here https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry3. Add raspberry pi ssh key to the Boris Daich account
steps are here
4. do git clone
5. do mvn package
No comments:
Post a Comment