org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project ambari-server: Could not resolve dependencies for project org.apache.ambari:ambari-server:jar:2.2.1.0<http://2.2.1.0/>: Could not find artifact org.apache.ambari:ambari-metrics-common:jar:2.2.1.0 in oss.sonatype.org<http://oss.sonatype.org/> (https://oss.sonatype.org/content/groups/staging)

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

Samebug tips

,

Check your artifact coordinates. Aether does not find it in either of the repositories. It reports only the first repository but that's a lie.

Solutions on the web

via ambari-user by Jonathan Hurley, 1 year ago
Failed to execute goal on project ambari-server: Could not resolve dependencies for project org.apache.ambari:ambari-server:jar:2.2.1.0<http://2.2.1.0/>: Could not find artifact org.apache.ambari:ambari-metrics-common:jar:2.2.1.0 in oss.sonatype.org<http://oss.sonatype.org/> (https://oss.sonatype.org/content/groups/staging)
via ambari-user by Dmitry Sen, 1 year ago
Failed to execute goal on project ambari-server: Could not resolve dependencies for project org.apache.ambari:ambari-server:jar:2.2.1.0<http://2.2.1.0>: Could not find artifact org.apache.ambari:ambari-metrics-common:jar:2.2.1.0 in oss.sonatype.org<http://oss.sonatype.org> (https://oss.sonatype.org/content/groups/staging)
via ambari-user by rammohan ganapavarapu, 1 year ago
Failed to execute goal on project ambari-server: Could not resolve dependencies for project org.apache.ambari:ambari-server:jar:2.2.1.0: Could not find artifact org.apache.ambari:ambari-metrics-common:jar:2.2.1.0 in oss.sonatype.org ( https://oss.sonatype.org/content/groups/staging)
via GitHub by grant-g
, 2 years ago
Failed to execute goal on project cas-pac4j-oauth-client-demo: Could not resolve dependencies for project org.leleuj:cas-pac4j-oauth-client-demo:war:4.2.0-SNAPSHOT: Could not find artifact org.jasig.cas:cas-server-webapp:war:4.2.0-20151118.165622-86 in sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots)
via GitHub by glores
, 1 year ago
Failed to execute goal on project bootstrap: Could not resolve dependencies for project org.mobicents.ussd:bootstrap:jar:3.0.0-SNAPSHOT: Failure to find com.vendor.dialogic:gctapi:jar:6.7.1 in https://oss.sonatype.org/content/groups/public/ was
via GitHub by robdem
, 1 year ago
Failed to execute goal on project test: Could not resolve dependencies for project org.test:test:nbm:0.9.0: Could not find artifact org.test:gephi:tar.gz:linux:0.9.0 in netbeans (http://bits.netbeans.org/nexus/content/groups/netbeans)
org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.apache.ambari:ambari-metrics-common:jar:2.2.1.0 in oss.sonatype.org<http://oss.sonatype.org/> (https://oss.sonatype.org/content/groups/staging)
at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:39)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:205)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:245)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:199)
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:497)
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)

Users with the same issue

3 times, 1 week ago
22 times, 2 weeks ago
4 times, 5 months ago
Once, 9 months ago
Once, 1 year ago

Write tip

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