Problemas quando vou fazer o deploy no github package

Estou tentando usar o github package para publicar um projeto e está dando erro:

pom.xml
<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>br.com.wferreiracosta.jaiminho</groupId>
  <artifactId>jaiminho</artifactId>
  <version>1.0v</version>

  <name>jaiminho</name>
  <!-- FIXME change it to the project's website -->
  <url>http://www.jaiminho.wferreiracosta.com.br</url>

  <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
  </properties>

  <dependencies>
<dependency>
  <groupId>junit</groupId>
  <artifactId>junit</artifactId>
  <version>4.11</version>
  <scope>test</scope>
</dependency>
  </dependencies>

<distributionManagement>
   <repository>
 <id>Jaiminho</id>
 <name>Jaiminho</name>
 <url>https://maven.pkg.github.com/wferreiracosta</url>
   </repository>
</distributionManagement>

  <build>
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
  <plugins>
    <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
    <plugin>
      <artifactId>maven-clean-plugin</artifactId>
      <version>3.1.0</version>
    </plugin>
    <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
    <plugin>
      <artifactId>maven-resources-plugin</artifactId>
      <version>3.0.2</version>
    </plugin>
    <plugin>
      <artifactId>maven-compiler-plugin</artifactId>
      <version>3.8.0</version>
    </plugin>
    <plugin>
      <artifactId>maven-surefire-plugin</artifactId>
      <version>2.22.1</version>
    </plugin>
    <plugin>
      <artifactId>maven-jar-plugin</artifactId>
      <version>3.0.2</version>
    </plugin>
    <plugin>
      <artifactId>maven-install-plugin</artifactId>
      <version>2.5.2</version>
    </plugin>
    <plugin>
      <artifactId>maven-deploy-plugin</artifactId>
      <version>2.8.2</version>
    </plugin>
    <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
    <plugin>
      <artifactId>maven-site-plugin</artifactId>
      <version>3.7.1</version>
    </plugin>
    <plugin>
      <artifactId>maven-project-info-reports-plugin</artifactId>
      <version>3.0.0</version>
    </plugin>
  </plugins>
</pluginManagement>
  </build>
</project>

Erro:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.316 s
[INFO] Finished at: 2019-12-31T16:53:44-02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project jaiminho: Failed to deploy artifacts: Could not transfer artifact br.com.wferreiracosta.jaiminho:jaiminho:jar:1.0v from/to Jaiminho (https://maven.pkg.github.com/wferreiracosta): Transfer failed for https://maven.pkg.github.com/wferreiracosta/br/com/wferreiracosta/jaiminho/jaiminho/1.0v/jaiminho-1.0v.jar 401 Unauthorized -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Falai @wferreiracosta tud oblz? Cara logo no inicio do erro vc levou um 401 Unauthorized -> [Help 1] e dai ele não conseguiu transferir. Ja verificou lance de senha e usuario para ver se estao corretos???

Abraços
Max

@FacaNaCaveira

Boa tarde,

Saberia me dizer aonde fica esse usuário é senha? São do Github ?

Vc deve usar essa configuração no settings.xml do maven:

<servers>
    <server>
      <id>github</id>
      <username>USERNAME</username>
      <password>TOKEN</password>
    </server>
  </servers>

<id>github</id> é o id do repository configurado.

Esse token é gerado em:

Settings / Developer settings / Personal access tokens

Não mudou.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project jaiminho: Failed to deploy artifacts: Could not transfer artifact br.com.wferreiracosta.jaiminho:jaiminho:jar:1.0v from/to Jaiminho (https://maven.pkg.github.com/wferreiracosta): Transfer failed for https://maven.pkg.github.com/wferreiracosta/br/com/wferreiracosta/jaiminho/jaiminho/1.0v/jaiminho-1.0v.jar 401 Unauthorized -> [Help 1]

Mano, faz assim. Coloca essas configurações todas (repositories e servers) no settings.xml junto com token devidamente criado na sua conta do github e tenta de novo.

FONTE: Configuring Apache Maven for use with GitHub Packages