org.apache.maven.lifecycle.LifecycleExecutionException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Maven Build - Couldn't resolve dependencies
    via Stack Overflow by Mad-D
    ,
  • Unable to build Shopizer
    via Stack Overflow by Ganesh Sekar
    ,
  • Hi, I have TeamCity *{{"6.0.2"}}* and Artifactory plugin *{{"2.0.1"}}* installed. TeamCity plugin deploys artifacts created by [Gradle project|https://github.com/evgeny-goldin/gcommons/blob/master/build.gradle], Gradle *{{"0.9.2"}}* is used. Please, see images attached of [unique snapshots repo|http://evgeny-goldin.org/artifactory/libs-snapshots-local/com/goldin/gcommons/0.4-SNAPSHOT/], POM and jar deployed have different names which later cause other builds (running with Maven *{{"3.0.2"}}*) fail on not finding a jar: {code} [ERROR] Failed to execute goal on project maven-common: Could not resolve dependencies for project com.goldin.plugins:maven-common:jar:0.2-SNAPSHOT: Could not find artifact com.goldin:gcommons:jar:0.4-20110128.214722-1 in repo (http://evgeny-goldin.org/artifactory/repo) -> [Help 1] [23:53:41]: org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project maven-common: Could not resolve dependencies for project com.goldin.plugins:maven-common:jar:0.2-SNAPSHOT: Could not find artifact com.goldin:gcommons:jar:0.4-20110128.214722-1 in repo (http://evgeny-goldin.org/artifactory/repo) [23:53:41]: at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:190) {code} Having a *{{"gcommons-0.4-20110128.214722-1.pom"}}* in the repo, Maven looks for *{{"gcommons-0.4-20110128.214722-1.jar"}}* but it has *{{"gcommons-0.4-20110128.214726-2.jar"}}*, hence the failure.
    via by Evgeny Goldin,
  • GitHub comment 249#269922923
    via GitHub by asgs
    ,
    • org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project XXXXXX: Could not resolve dependencies for project XXXXXXXXX:war:0.0.1-SNAPSHOT: Failure to find com.microsoft.sqlserver:sqljdbc4:jar:2.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:221)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,