Support for github packages (or support settings.xml in maven plugin)

We have a private maven repo in github packages. The authentication for this repo is defined in a settings.xml file. Is there any way for the maven plugin to support this authentication? The settings.xml configuration is like

<server>
  <id>github</id>
  <username>username</username>
  <password>6587659-example-token-sdf9679das9d759</password>
</server>