org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project transformer: Failed to deploy artifacts: Could not transfer artifact com.example:transformer:yml:openshift:1.0.9 from/to local-nexus (http://nexus/content/repositories/staging/): Failed to transfer file: http://nexus/content/repositories/staging/com/example/1.0.9/transformer-1.0.9-openshift.yml. Return code is: 400, ReasonPhrase: Bad Request.


Solutions on the web

Solution icon of github
via GitHub by abdoo
, 8 months ago
Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project transformer: Failed to deploy artifacts: Could not transfer artifact com.example:transformer:yml:openshift:1.0.9 from/to local-nexus (http

Solution icon of sonatype
via Sonatype JIRA by Peter Lynch, 9 months ago
Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy-file (default-cli) on project standalone-pom: Failed to deploy artifacts: Could not transfer artifact com.somecompany:project:war:1.0.0 from/to local-nexu (http

Solution icon of github
Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project spring-boot-webmvc: Failed to deploy artifacts: Could not transfer artifact io.fabric8.quickstarts:spring-boot-webmvc:jar:1.0.1 from/to local-nexus (http://content-repository/content/repositories/staging/): Connection reset

Solution icon of github
via GitHub by djKooks
, 2 months ago
Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project spydra-parent: Failed to deploy artifacts: Could not transfer artifact com.spotify.data.spydra:spydra-parent:pom:0.3.5 from/to ossrh (https

Solution icon of sonatype
via Sonatype JIRA by Adam Gabryś, 1 year ago
Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project minify-maven-plugin: Failed to deploy artifacts: Could not transfer artifact biz.gabrys.forks.com.samaxes.maven:minify-maven-plugin:jar

Solution icon of stackoverflow
via Stack Overflow by screenmutt
, 5 months ago
Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project [artifact-id]: Failed to deploy artifacts: Could not find artifact [groupd-id]:[artifact-id]:jar:exec:0.1-20170512.173831-10 in [nexus-repository-id] ([nexus-url])

Solution icon of stackoverflow
Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project [artifact-id]: Failed to deploy artifacts: Could not find artifact [group-id]:[artifact-id]:jar:exec:[version]-[iteration] in nexus.ftc.lab ([nexus-url])

Solution icon of github
Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.6:deploy (default-deploy) on project javacpp: Execution default-deploy of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.6:deploy failed: Server credentials with ID "sonatype-nexus-staging" not found!

Solution icon of github
Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy (injected-nexus-deploy) on project jr-demo111: Execution injected-nexus-deploy of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy failed: Server credentials with ID "ossrh" not found!

Solution icon of github
Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy (injected-nexus-deploy) on project demovertxh1: Execution injected-nexus-deploy of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy failed: Server credentials with ID "ossrh" not found!

Stack trace

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project transformer: Failed to deploy artifacts: Could not transfer artifact com.example:transformer:yml:openshift:1.0.9 from/to local-nexus (http:/exus/content/repositories/staging/): Failed to transfer file: http:/exus/content/repositories/staging/com/example/1.0.9/transformer-1.0.9-openshift.yml. Return code is: 400, ReasonPhrase: Bad Request.
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
40 more bugmates