Skip to content

HTTP Status: 406 during deployment to nexus 2 #12154

Description

@slawekjaranowski

Affected version

3.10.0

Bug description

Testing deployment to staging with new atr plugin, I have:

Uploaded to apache.releases.https: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/tooling/atr-maven-plugin/1.0.0-beta-1/atr-maven-plugin-1.0.0-beta-1-tests.jar.asc (902 B at 1.7 kB/s)
Downloading from apache.releases.https: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/tooling/atr-maven-plugin/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.tooling:atr-maven-plugin/maven-metadata.xml from/to apache.releases.https (https://repository.apache.org/service/local/staging/deploy/maven2): HTTP Status: 406

org.eclipse.aether.transfer.MetadataTransferException: Could not transfer metadata org.apache.tooling:atr-maven-plugin/maven-metadata.xml from/to apache.releases.https (https://repository.apache.org/service/local/staging/deploy/maven2): HTTP Status: 406
    at org.eclipse.aether.connector.basic.MetadataTransportListener.transferFailed (MetadataTransportListener.java:44)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run (BasicRepositoryConnector.java:467)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get (BasicRepositoryConnector.java:245)
    at org.eclipse.aether.internal.impl.filter.FilteringRepositoryConnector.get (FilteringRepositoryConnector.java:95)
    at org.eclipse.aether.internal.impl.offline.OfflineRepositoryConnector.get (OfflineRepositoryConnector.java:82)
    at org.eclipse.aether.internal.impl.DefaultDeployer.upload (DefaultDeployer.java:311)
    at org.eclipse.aether.internal.impl.DefaultDeployer.deploy (DefaultDeployer.java:243)
    at org.eclipse.aether.internal.impl.DefaultDeployer.deploy (DefaultDeployer.java:154)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.deploy (DefaultRepositorySystem.java:375)
    at org.apache.maven.plugins.deploy.AbstractDeployMojo.deploy (AbstractDeployMojo.java:140)
    at org.apache.maven.plugins.deploy.DeployMojo.execute (DeployMojo.java:206)
...
Caused by: org.eclipse.aether.spi.connector.transport.http.HttpTransporterException: HTTP Status: 406
    at org.eclipse.aether.transport.apache.ApacheTransporter.implGet (ApacheTransporter.java:370)
    at org.eclipse.aether.spi.connector.transport.AbstractTransporter.get (AbstractTransporter.java:64)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask (BasicRepositoryConnector.java:533)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run (BasicRepositoryConnector.java:464)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get (BasicRepositoryConnector.java:245)
    at org.eclipse.aether.internal.impl.filter.FilteringRepositoryConnector.get (FilteringRepositoryConnector.java:95)
    at org.eclipse.aether.internal.impl.offline.OfflineRepositoryConnector.get (OfflineRepositoryConnector.java:82)
    at org.eclipse.aether.internal.impl.DefaultDeployer.upload (DefaultDeployer.java:311)
    at org.eclipse.aether.internal.impl.DefaultDeployer.deploy (DefaultDeployer.java:243)
    at org.eclipse.aether.internal.impl.DefaultDeployer.deploy (DefaultDeployer.java:154)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.deploy (DefaultRepositorySystem.java:375)
    at org.apache.maven.plugins.deploy.AbstractDeployMojo.deploy (AbstractDeployMojo.java:140)

http session:

>> GET /service/local/staging/deploy/maven2/org/apache/tooling/atr-maven-plugin/maven-metadata.xml HTTP/1.1
>> Cache-Control: no-cache, no-store
>> Pragma: no-cache
>> Accept: application/problem+json
>> Host: repository.apache.org
>> Connection: Keep-Alive
>> User-Agent: Apache-Maven/3.10.0-SNAPSHOT (Java 26.0.1; Mac OS X 26.3.1)
>> Accept-Encoding: gzip,deflate
>> Authorization: Basic ***

<< HTTP/1.1 406 Not Acceptable
<< Date: Tue, 26 May 2026 17:48:56 GMT
<< Server: Nexus/2.15.2-03
<< X-Frame-Options: SAMEORIGIN
<< X-Content-Type-Options: nosniff
<< Content-Security-Policy: sandbox allow-forms allow-modals allow-popups allow-presentation allow-scripts allow-top-navigation
<< X-Content-Security-Policy: sandbox allow-forms allow-modals allow-popups allow-presentation allow-scripts allow-top-navigation
<< Cache-Control: post-check=0, pre-check=0
<< Pragma: no-cache
<< Expires: 0
<< Content-Type: text/html
<< Via: 1.1 repository-new.apache.org
<< Keep-Alive: timeout=15, max=92
<< Connection: Keep-Alive
<< Transfer-Encoding: chunked

http session for 3.9.16

>> GET /service/local/staging/deploy/maven2/org/apache/tooling/atr-maven-plugin/maven-metadata.xml HTTP/1.1
>> Cache-Control: no-cache, no-store
>> Pragma: no-cache
>> Host: repository.apache.org
>> Connection: Keep-Alive
>> User-Agent: Apache-Maven/3.9.16 (Java 26.0.1; Mac OS X 26.3.1)
>> Accept-Encoding: gzip,deflate
>> Authorization: Basic ***

<< HTTP/1.1 404 Not Found
<< Date: Tue, 26 May 2026 17:52:36 GMT
<< Server: Nexus/2.15.2-03 Noelios-Restlet-Engine/1.1.6-SONATYPE-5348-V8
<< X-Frame-Options: SAMEORIGIN
<< X-Content-Type-Options: nosniff
<< Content-Security-Policy: sandbox allow-forms allow-modals allow-popups allow-presentation allow-scripts allow-top-navigation
<< X-Content-Security-Policy: sandbox allow-forms allow-modals allow-popups allow-presentation allow-scripts allow-top-navigation
<< Content-Type: text/html
<< Vary: Accept-Charset,Accept-Encoding,Accept-Language,Accept
<< Via: 1.1 repository-new.apache.org
<< Keep-Alive: timeout=15, max=95
<< Connection: Keep-Alive
<< Transfer-Encoding: chunked

in 3.10.0 we have one more header:

>> Accept: application/problem+json

for RFC 9457

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions