# Status code: 401, reason phrase: Unauthorized (401)

## post by hanzmeier70 on Mar 22, 2024

Hi Sonatype community,

I am sorry, but I can’t anymore. After following the [article](https://central.sonatype.org/publish/publish-maven/) on how to publish to maven central, maven deploy still refuses to corporate with me. To my setup: I have a settings.xml file with the tokens generated by [sonatype.com](/content/site-root.html) But those wont work on the [Nexus Repository Manager](https://s01.oss.sonatype.org/). Where can I create an account for this site? I appended the error log and because new users can’t upload anything I appended my pom.xml also here.

Any constructive and targeted help is very welcome!

Best regards pizzadox9999

### POM.XML:
```xml
<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>io.github.pizzadox9999</groupId>
    <artifactId>radp-for-gwtswing</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <packaging>war</packaging>
    <properties>
        <maven.compiler.source>0.9.2</maven.compiler.source>
        <maven.compiler.target>0.9.2</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
    <name>RADP for GWTSwing</name>
    <description>Most critical stuff missing in GWTSwing provided here.</description>
    <url>https://github.com/pizzadox9999/RADP_for_GWTSwing</url>
</project>
```

### Error log:
[ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy on project radp-for-gwtswing: Failed to deploy artifacts: Could not transfer artifact io.github.pizzadox9999:radp-for-gwtswing:war.asc:0.0.1-20240323.014835-1 from/to ossrh ( [Index of /repositories/snapshots](https://s01.oss.sonatype.org/content/repositories/snapshots)): status code: 401, reason phrase: Unauthorized (401)

## post by mpiggott on Mar 25, 2024

Hi this isn’t the right forum and I don’t have the ability to move posts. You’d want to ask your question in Central forum.

## post by hanzmeier70 on Mar 25, 2024

Hi, it is solved. How can I close/delete this topic?

## Plugins Configuration:
```xml
<plugins>
    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.1</version>
        <configuration>
            <source>${java.version}</source>
            <target>${java.version}</target>
        </configuration>
    </plugin>
    <plugin>
        <groupId>org.sonatype.plugins</groupId>
        <artifactId>nexus-staging-maven-plugin</artifactId>
        <version>1.6.7</version>
        <extensions>true</extensions>
        <configuration>
            <serverId>ossrh</serverId>
            <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
            <autoReleaseAfterClose>true</autoReleaseAfterClose>
        </configuration>
    </plugin>
</plugins>
```
