How to resolve "Build with maven" that blend in the same link 2 packages together?

Hi everyone, we have a problem for github action at the “Build with maven” moment, where it blend together two different packages in the same url, it then result into a 401 error.

The first package is “paper” and the second is “cartographer”.

Warning:  Could not transfer metadata com.destroystokyo.paper:paper-api:1.16.4-R0.1-SNAPSHOT/maven-metadata.xml from/to github-Cartographer (https://maven.pkg.github.com/BananaPuncher714/Cartographer2): Authentication failed for https://maven.pkg.github.com/BananaPuncher714/Cartographer2/com/destroystokyo/paper/paper-api/1.16.4-R0.1-SNAPSHOT/maven-metadata.xml 401 Unauthorized
Warning:  Failure to transfer com.destroystokyo.paper:paper-api:1.16.4-R0.1-SNAPSHOT/maven-metadata.xml from https://maven.pkg.github.com/BananaPuncher714/Cartographer2 was cached in the local repository, resolution will not be reattempted until the update interval of github-Cartographer has elapsed or updates are forced. Original error: Could not transfer metadata com.destroystokyo.paper:paper-api:1.16.4-R0.1-SNAPSHOT/maven-metadata.xml from/to github-Cartographer (https://maven.pkg.github.com/BananaPuncher714/Cartographer2): Authentication failed for https://maven.pkg.github.com/BananaPuncher714/Cartographer2/com/destroystokyo/paper/paper-api/1.16.4-R0.1-SNAPSHOT/maven-metadata.xml 401 Unauthorized

The maven_publish look like this :

name: Publish maven package to GitHub Packages

on:
  push:
    branches: [master]
  release:
    types: [created]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Set up JDK 11.0.7
      uses: actions/setup-java@v1
      with:
        java-version: 11.0.7

    - name: Build with Maven
      run: mvn -B package --file pom.xml
      env:
        GITHUB_USERNAME: ${{ secrets.GITHUB_USERNAME }}
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

    - name: Publish to GitHub Packages Apache Maven
      run: mvn deploy -e -s ~/.m2/settings.xml
      env:
        GITHUB_TOKEN: ${{ github.token }}
        server-id: github
        settings-path: ${{ github.workspace }}

    - uses: actions/upload-artifact@v2
      with:
        name: tesseractLib
        path: /home/runner/work/TesseractLib/TesseractLib/target/tesseractlib-*

The pom.xml look like this :

?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>onl.tesseract</groupId>
    <artifactId>tesseractlib</artifactId>
    <version>1.6.6</version>
    <packaging>jar</packaging>

    <name>tesseractlib</name>

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

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version>
                <configuration>
                    <source>11</source>
                    <target>11</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.2.4</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <createDependencyReducedPom>false</createDependencyReducedPom>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
    </build>

    <repositories>
        <repository>
            <id>papermc</id>
            <url>https://papermc.io/repo/repository/maven-public/</url>
        </repository>
        <repository>
            <id>github-Cartographer</id>
            <url>https://maven.pkg.github.com/BananaPuncher714/Cartographer2</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>com.destroystokyo.paper</groupId>
            <artifactId>paper-api</artifactId>
            <version>1.16.4-R0.1-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>io.github.bananapuncher714</groupId>
            <artifactId>cartographer2_api</artifactId>
            <version>2.14.4</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>
</project>

The problem look like this :

It will be great if someone know the answer !

Fixed by adding this in the maven.xml

    steps:
    - uses: actions/labeler@v2
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}
    - uses: actions/checkout@v2
    - name: Set up JDK 11.0.7
      uses: actions/setup-java@v1
      with:
        java-version: 11.0.7
    - name: maven-settings-xml-action
      uses: whelk-io/maven-settings-xml-action@v14
      with:
          repositories: '[{ "id": "", "url": "" },{ "id": "", "url": "" }]'
          servers: