org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.1:deploy (default) on project lucene: Execution default of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.1:deploy failed: Nexus connection problem to URL [https://localhost/nexus/service/local/staging/deploy/maven2/ ]: Cannot find a matching staging profile

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Sonatype JIRA by Peter Lynch, 1 year ago
Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.1:deploy (default) on project lucene: Execution default of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.1:deploy failed: Nexus connection problem to URL [https://localhost/nexus/service/local/staging/deploy/maven2/ ]: Cannot find a matching staging profile
via Sonatype JIRA by Peter Lynch, 1 year ago
Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.1:deploy-staged (default-cli) on project example-staging-m2: Execution default-cli of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.1:deploy-staged failed: BUG: finalizeDeploy invoked before deployPerModule?
via Sonatype JIRA by Ha Xiaolin, 3 months ago
Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.5.1:deploy (injected-nexus-deploy) on project galaxy-emq-client: Remote staging failed: 403 - Forbidden
via Sonatype JIRA by Peter Lynch, 1 year ago
Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.5.1:deploy (default-deploy) on project parent-pom: Nexus connection problem to URL [http://cft-nexus.ldn.swissbank.com:8081/nexus/ ]: XPP3 pull parser library not present. Specify another driver. For example: new XStream(new DomDriver())
via Sonatype JIRA by Larry Ruiz, 1 year ago
Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project markdownpapers-parent: Failed to deploy artifacts: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from
via Sonatype JIRA by Larry Ruiz, 1 year ago
Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project markdownpapers-parent: Failed to deploy artifacts: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.1:deploy (default) on project lucene: Execution default of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.1:deploy failed: Nexus connection problem to URL [https://localhost/nexus/service/local/staging/deploy/maven2/ ]: Cannot find a matching staging profile
at org.sonatype.nexus.client.rest.jersey.JerseyNexusClient.convertIf400WithErrorMessage(JerseyNexusClient.java:257)
at org.sonatype.nexus.client.rest.jersey.JerseyNexusClient.convertIfKnown(JerseyNexusClient.java:292)
at org.sonatype.nexus.client.rest.jersey.JerseyNexusClient.convert(JerseyNexusClient.java:268)
at org.sonatype.nexus.client.rest.jersey.JerseyNexusClient.getStatus(JerseyNexusClient.java:157)
at org.sonatype.nexus.client.internal.rest.AbstractNexusClient.initializeConnection(AbstractNexusClient.java:87)
at org.sonatype.nexus.client.rest.jersey.JerseyNexusClient.(JerseyNexusClient.java:91)
at org.sonatype.nexus.client.rest.jersey.NexusClientFactoryImpl.createFor(NexusClientFactoryImpl.java:123)
at org.sonatype.nexus.maven.staging.remote.RemoteNexus.createNexusClient(RemoteNexus.java:191)
at org.sonatype.nexus.maven.staging.remote.RemoteNexus.(RemoteNexus.java:104)
at org.sonatype.nexus.maven.staging.deploy.strategy.AbstractStagingDeployStrategy.createRemoteNexus(AbstractStagingDeployStrategy.java:56)
at org.sonatype.nexus.maven.staging.deploy.strategy.StagingDeployStrategy.deployPerModule(StagingDeployStrategy.java:73)
at org.sonatype.nexus.maven.staging.deploy.DeployMojo.execute(DeployMojo.java:192)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
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:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.