Prerequisite:
- folder of your choice (do not need a pom.xml here)
- maven installed
- your jar-fil is in the current folder
- settings.xml as described below in same folder with github token (classic) with package.write + repo
RUN:
mvn -s settings.xml deploy:deploy-file -Dfile=eidas-saml-engine-2.7.1.jar -DrepositoryId=github -Durl=https://maven.pkg.github.com/oyri/eidas-lib
Where settings.xml has this content:
<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
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>github</id>
<username><USERNAME></username>
<configuration>
<httpHeaders>
<property>
<name>Authorization</name>
<value>Bearer <GH-classic-token-with-package_write-and-repo-rights></value>
</property>
</httpHeaders>
</configuration>
</server>
</servers>
</settings>
mvn -s settings.xml deploy:deploy-file -DpomFile=eidas-parent-2.7.1.pom -DrepositoryId=github -Durl=https://maven.pkg.github.com/oyri/eidas-lib -DartifactId=eidas-parent -Dgroupid=eu.eidas -Dversion=2.7.1 -Dpackaging=pom -Dfile=eidas-parent-2.7.1.pom
Maybe not nessasary with -DartifactId=eidas-parent -Dgroupid=eu.eidas -Dversion=2.7.1 -Dpackaging=pom.