[ 
https://issues.apache.org/jira/browse/MDEPLOY-309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tamas Cservenak closed MDEPLOY-309.
-----------------------------------
    Resolution: Invalid

User changed transport (by upgrading) and transport was not properly 
configured, hence Server responded with 401. Not related to this plugin.

> Can't deploy after upgrade Maven from 3.8 to 3.9
> ------------------------------------------------
>
>                 Key: MDEPLOY-309
>                 URL: https://issues.apache.org/jira/browse/MDEPLOY-309
>             Project: Maven Deploy Plugin
>          Issue Type: Bug
>    Affects Versions: 3.1.1
>            Reporter: Christoph Läubrich
>            Priority: Major
>
> This was reported to Tycho but seems to be a problem/bug of maven-deploy 
> plugin (no Tycho in stacktrace and error from m-deploy-p): 
> [https://github.com/eclipse-tycho/tycho/issues/2453]
>  
> I'm using tycho 3.0.4 and since I've upgraded Maven from 3.8 to 3.9.2 I can't 
> deploy the p2 repository anymore:
> Before (working, maven 3.8):
> {code}
> [INFO] --- tycho-p2-plugin:3.0.4:update-local-index 
> (default-update-local-index) @ ch.ivyteam.ivy.core.p2 ---
> [INFO] 
> [INFO] --- maven-deploy-plugin:3.1.1:deploy (default-deploy) @ 
> ch.ivyteam.ivy.core.p2 ---
> [INFO] Downloading from drone.ivyteam.io: 
> https://MYUSER:mypassw...@drone.ivyteam.io/maven/ivy-core/ch/ivyteam/ivy/ch.ivyteam.ivy.core.p2/11.2.0-SNAPSHOT/maven-metadata.xml
> [INFO] Downloaded from drone.ivyteam.io: 
> https://MYUSER:mypassw...@drone.ivyteam.io/maven/ivy-core/ch/ivyteam/ivy/ch.ivyteam.ivy.core.p2/11.2.0-SNAPSHOT/maven-metadata.xml
>  (1.1 kB at 30 kB/s)
> [INFO] Uploading to drone.ivyteam.io: 
> https://MYUSER:mypassw...@drone.ivyteam.io/maven/ivy-core/ch/ivyteam/ivy/ch.ivyteam.ivy.core.p2/11.2.0-SNAPSHOT/ch.ivyteam.ivy.core.p2-11.2.0-20230527.202217-1.pom
> [INFO] Uploaded to drone.ivyteam.io: 
> https://MYUSER:mypassw...@drone.ivyteam.io/maven/ivy-core/ch/ivyteam/ivy/ch.ivyteam.ivy.core.p2/11.2.0-SNAPSHOT/ch.ivyteam.ivy.core.p2-11.2.0-20230527.202217-1.pom
>  (1.0 kB at 158 B/s)
> [INFO] Uploading to drone.ivyteam.io: 
> https://MYUSER:mypassw...@drone.ivyteam.io/maven/ivy-core/ch/ivyteam/ivy/ch.ivyteam.ivy.core.p2/11.2.0-SNAPSHOT/ch.ivyteam.ivy.core.p2-11.2.0-20230527.202217-1.zip
> [INFO] Uploaded to drone.ivyteam.io: 
> https://MYUSER:mypassw...@drone.ivyteam.io/maven/ivy-core/ch/ivyteam/ivy/ch.ivyteam.ivy.core.p2/11.2.0-SNAPSHOT/ch.ivyteam.ivy.core.p2-11.2.0-20230527.202217-1.zip
>  (226 MB at 7.2 MB/s)
> [INFO] Uploading to drone.ivyteam.io: 
> https://MYUSER:mypassw...@drone.ivyteam.io/maven/ivy-core/ch/ivyteam/ivy/ch.ivyteam.ivy.core.p2/11.2.0-SNAPSHOT/ch.ivyteam.ivy.core.p2-11.2.0-20230527.202217-1-p2metadata.xml
> [INFO] Uploaded to drone.ivyteam.io: 
> https://MYUSER:mypassw...@drone.ivyteam.io/maven/ivy-core/ch/ivyteam/ivy/ch.ivyteam.ivy.core.p2/11.2.0-SNAPSHOT/ch.ivyteam.ivy.core.p2-11.2.0-20230527.202217-1-p2metadata.xml
>  (23 kB at 6.1 kB/s)
> [INFO] Uploading to drone.ivyteam.io: 
> https://MYUSER:mypassw...@drone.ivyteam.io/maven/ivy-core/ch/ivyteam/ivy/ch.ivyteam.ivy.core.p2/11.2.0-SNAPSHOT/ch.ivyteam.ivy.core.p2-11.2.0-20230527.202217-1-p2artifacts.xml
> [INFO] Uploaded to drone.ivyteam.io: 
> https://MYUSER:mypassw...@drone.ivyteam.io/maven/ivy-core/ch/ivyteam/ivy/ch.ivyteam.ivy.core.p2/11.2.0-SNAPSHOT/ch.ivyteam.ivy.core.p2-11.2.0-20230527.202217-1-p2artifacts.xml
>  (100 B at 26 B/s)
> [INFO] Downloading from drone.ivyteam.io: 
> https://MYUSER:mypassw...@drone.ivyteam.io/maven/ivy-core/ch/ivyteam/ivy/ch.ivyteam.ivy.core.p2/maven-metadata.xml
> [INFO] Downloaded from drone.ivyteam.io: 
> https://MYUSER:mypassw...@drone.ivyteam.io/maven/ivy-core/ch/ivyteam/ivy/ch.ivyteam.ivy.core.p2/maven-metadata.xml
>  (986 B at 58 kB/s)
> [INFO] Uploading to drone.ivyteam.io: 
> https://MYUSER:mypassw...@drone.ivyteam.io/maven/ivy-core/ch/ivyteam/ivy/ch.ivyteam.ivy.core.p2/11.2.0-SNAPSHOT/maven-metadata.xml
> [INFO] Uploaded to drone.ivyteam.io: 
> https://MYUSER:mypassw...@drone.ivyteam.io/maven/ivy-core/ch/ivyteam/ivy/ch.ivyteam.ivy.core.p2/11.2.0-SNAPSHOT/maven-metadata.xml
>  (1.2 kB at 390 B/s)
> [INFO] Uploading to drone.ivyteam.io: 
> https://MYUSER:mypassw...@drone.ivyteam.io/maven/ivy-core/ch/ivyteam/ivy/ch.ivyteam.ivy.core.p2/maven-metadata.xml
> [INFO] Uploaded to drone.ivyteam.io: 
> https://MYUSER:mypassw...@drone.ivyteam.io/maven/ivy-core/ch/ivyteam/ivy/ch.ivyteam.ivy.core.p2/maven-metadata.xml
>  (987 B at 310 B/s)
> {code}
> After (not working, maven 3.9.2):
> {code}
> [INFO] --- tycho-p2-plugin:3.0.4:update-local-index 
> (default-update-local-index) @ ch.ivyteam.ivy.core.p2 ---
> [INFO] 
> [INFO] --- deploy:3.1.1:deploy (default-deploy) @ ch.ivyteam.ivy.core.p2 ---
> [INFO] Downloading from drone.ivyteam.io: 
> https://MYUSER:mypassw...@drone.ivyteam.io/maven/ivy-core/ch/ivyteam/ivy/ch.ivyteam.ivy.core.p2/11.2.0-SNAPSHOT/maven-metadata.xml
> [INFO] Downloaded from drone.ivyteam.io: 
> https://MYUSER:mypassw...@drone.ivyteam.io/maven/ivy-core/ch/ivyteam/ivy/ch.ivyteam.ivy.core.p2/11.2.0-SNAPSHOT/maven-metadata.xml
>  (656 B at 11 kB/s)
> [INFO] Uploading to drone.ivyteam.io: 
> https://MYUSER:mypassw...@drone.ivyteam.io/maven/ivy-core/ch/ivyteam/ivy/ch.ivyteam.ivy.core.p2/11.2.0-SNAPSHOT/ch.ivyteam.ivy.core.p2-11.2.0-20230531.065452-1.pom
> [WARNING] Failed to upload checksum to 
> ch/ivyteam/ivy/ch.ivyteam.ivy.core.p2/11.2.0-SNAPSHOT/ch.ivyteam.ivy.core.p2-11.2.0-20230531.065452-1.pom.sha1
> org.apache.http.client.HttpResponseException: status code: 401, reason 
> phrase: Unauthorized (401)
>     at org.eclipse.aether.transport.http.HttpTransporter.handleStatus 
> (HttpTransporter.java:527)
>     at org.eclipse.aether.transport.http.HttpTransporter.execute 
> (HttpTransporter.java:396)
>     at org.eclipse.aether.transport.http.HttpTransporter.implPut 
> (HttpTransporter.java:377)
>     at org.eclipse.aether.spi.connector.transport.AbstractTransporter.put 
> (AbstractTransporter.java:107)
>     at 
> org.eclipse.aether.connector.basic.BasicRepositoryConnector$PutTaskRunner.uploadChecksum
>  (BasicRepositoryConnector.java:608)
>     at 
> org.eclipse.aether.connector.basic.BasicRepositoryConnector$PutTaskRunner.uploadChecksums
>  (BasicRepositoryConnector.java:591)
>     at 
> org.eclipse.aether.connector.basic.BasicRepositoryConnector$PutTaskRunner.runTask
>  (BasicRepositoryConnector.java:565)
>     at 
> org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run 
> (BasicRepositoryConnector.java:414)
>     at org.eclipse.aether.connector.basic.BasicRepositoryConnector.put 
> (BasicRepositoryConnector.java:297)
>     at org.eclipse.aether.internal.impl.DefaultDeployer.deploy 
> (DefaultDeployer.java:270)
>     at org.eclipse.aether.internal.impl.DefaultDeployer.deploy 
> (DefaultDeployer.java:201)
>     at org.eclipse.aether.internal.impl.DefaultRepositorySystem.deploy 
> (DefaultRepositorySystem.java:392)
>     at org.apache.maven.plugins.deploy.AbstractDeployMojo.deploy 
> (AbstractDeployMojo.java:139)
>     at org.apache.maven.plugins.deploy.DeployMojo.execute 
> (DeployMojo.java:203)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
> (DefaultBuildPluginManager.java:126)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 
> (MojoExecutor.java:342)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute 
> (MojoExecutor.java:330)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:213)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:175)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 
> (MojoExecutor.java:76)
>     at org.apache.maven.lifecycle.internal.MojoExecutor$1.run 
> (MojoExecutor.java:163)
>     at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute 
> (DefaultMojosExecutionStrategy.java:39)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:160)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:105)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:73)
>     at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:53)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:118)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:910)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:77)
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:568)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:283)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:226)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:407)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main 
> (Launcher.java:348)
> [WARNING] Failed to upload checksum to 
> ch/ivyteam/ivy/ch.ivyteam.ivy.core.p2/11.2.0-SNAPSHOT/ch.ivyteam.ivy.core.p2-11.2.0-20230531.065452-1.pom.md5
> org.apache.http.client.HttpResponseException: status code: 401, reason 
> phrase: Unauthorized (401)
>     at org.eclipse.aether.transport.http.HttpTransporter.handleStatus 
> (HttpTransporter.java:527)
>     at org.eclipse.aether.transport.http.HttpTransporter.execute 
> (HttpTransporter.java:396)
>     at org.eclipse.aether.transport.http.HttpTransporter.implPut 
> (HttpTransporter.java:377)
>     at org.eclipse.aether.spi.connector.transport.AbstractTransporter.put 
> (AbstractTransporter.java:107)
>     at 
> org.eclipse.aether.connector.basic.BasicRepositoryConnector$PutTaskRunner.uploadChecksum
>  (BasicRepositoryConnector.java:608)
>     at 
> org.eclipse.aether.connector.basic.BasicRepositoryConnector$PutTaskRunner.uploadChecksums
>  (BasicRepositoryConnector.java:591)
>     at 
> org.eclipse.aether.connector.basic.BasicRepositoryConnector$PutTaskRunner.runTask
>  (BasicRepositoryConnector.java:565)
>     at 
> org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run 
> (BasicRepositoryConnector.java:414)
>     at org.eclipse.aether.connector.basic.BasicRepositoryConnector.put 
> (BasicRepositoryConnector.java:297)
>     at org.eclipse.aether.internal.impl.DefaultDeployer.deploy 
> (DefaultDeployer.java:270)
>     at org.eclipse.aether.internal.impl.DefaultDeployer.deploy 
> (DefaultDeployer.java:201)
>     at org.eclipse.aether.internal.impl.DefaultRepositorySystem.deploy 
> (DefaultRepositorySystem.java:392)
>     at org.apache.maven.plugins.deploy.AbstractDeployMojo.deploy 
> (AbstractDeployMojo.java:139)
>     at org.apache.maven.plugins.deploy.DeployMojo.execute 
> (DeployMojo.java:203)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
> (DefaultBuildPluginManager.java:126)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 
> (MojoExecutor.java:342)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute 
> (MojoExecutor.java:330)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:213)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:175)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 
> (MojoExecutor.java:76)
>     at org.apache.maven.lifecycle.internal.MojoExecutor$1.run 
> (MojoExecutor.java:163)
>     at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute 
> (DefaultMojosExecutionStrategy.java:39)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:160)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:105)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:73)
>     at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:53)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:118)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:910)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:77)
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:568)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:283)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:226)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:407)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main 
> (Launcher.java:348)
> [INFO] Uploaded to drone.ivyteam.io: 
> https://MYUSER:mypassw...@drone.ivyteam.io/maven/ivy-core/ch/ivyteam/ivy/ch.ivyteam.ivy.core.p2/11.2.0-SNAPSHOT/ch.ivyteam.ivy.core.p2-11.2.0-20230531.065452-1.pom
>  (1.0 kB at 125 B/s)
> [INFO] Uploading to drone.ivyteam.io: 
> https://MYUSER:mypassw...@drone.ivyteam.io/maven/ivy-core/ch/ivyteam/ivy/ch.ivyteam.ivy.core.p2/11.2.0-SNAPSHOT/ch.ivyteam.ivy.core.p2-11.2.0-20230531.065452-1.zip
> [INFO] Uploading to drone.ivyteam.io: 
> https://MYUSER:mypassw...@drone.ivyteam.io/maven/ivy-core/ch/ivyteam/ivy/ch.ivyteam.ivy.core.p2/11.2.0-SNAPSHOT/ch.ivyteam.ivy.core.p2-11.2.0-20230531.065452-1-p2metadata.xml
> [INFO] Uploading to drone.ivyteam.io: 
> https://MYUSER:mypassw...@drone.ivyteam.io/maven/ivy-core/ch/ivyteam/ivy/ch.ivyteam.ivy.core.p2/11.2.0-SNAPSHOT/ch.ivyteam.ivy.core.p2-11.2.0-20230531.065452-1-p2artifacts.xml
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to