Build failed: unable to resolve class org.apache.ivy.plugins.resolver.ChainResolver

having this issue while Build
kindly help
gradle resolveDeps --debug
18:02:43.908 [INFO] [org.gradle.BuildLogger] Starting Build
18:02:43.914 [DEBUG] [org.gradle.BuildLogger] Gradle user home: /root/.gradle
18:02:43.915 [DEBUG] [org.gradle.BuildLogger] Current dir: /home/soft/bigbluebutton/bigbluebutton-apps
18:02:43.915 [DEBUG] [org.gradle.BuildLogger] Settings file: null
18:02:43.916 [DEBUG] [org.gradle.BuildLogger] Build file: null
18:02:43.935 [DEBUG] [org.gradle.initialization.buildsrc.BuildSourceBuilder] Starting to build the build sources.
18:02:43.937 [DEBUG] [org.gradle.initialization.buildsrc.BuildSourceBuilder] Gradle source dir does not exist. We leave.
18:02:43.939 [DEBUG] [org.gradle.initialization.DefaultGradlePropertiesLoader] Found env project properties: []
18:02:43.941 [DEBUG] [org.gradle.initialization.DefaultGradlePropertiesLoader] Found system project properties: []
18:02:44.016 [DEBUG] [org.gradle.api.internal.artifacts.mvnsettings.DefaultLocalMavenRepositoryLocator] No local repository in Settings file defined. Using default path: /root/.m2/repository
18:02:44.181 [DEBUG] [org.gradle.initialization.ScriptEvaluatingSettingsProcessor] Timing: Processing settings took: 0.239 secs
18:02:44.184 [INFO] [org.gradle.BuildLogger] Settings evaluated using settings file ‘/master/settings.gradle’.
18:02:44.316 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Transitioning model element ‘tasks’ from state Known to Created
18:02:44.322 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Running model element ‘tasks’ creator rule action Project..tasks()
18:02:44.323 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Creating tasks using Project..tasks()
18:02:44.333 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Transitioning model element ‘tasks’ to state Created.
18:02:44.338 [DEBUG] [org.gradle.initialization.ProjectPropertySettingBuildLoader] Looking for project properties from: /home/soft/bigbluebutton/bigbluebutton-apps/gradle.properties
18:02:44.339 [DEBUG] [org.gradle.initialization.ProjectPropertySettingBuildLoader] Adding project properties (if not overwritten by user properties): [springRedisVersion, mockitoVersion, slf4jVersion, junitVersion, log4jVersion, jacksonVersion, springVersion]
18:02:44.399 [INFO] [org.gradle.BuildLogger] Projects loaded. Root project using build file ‘/home/soft/bigbluebutton/bigbluebutton-apps/build.gradle’.
18:02:44.401 [INFO] [org.gradle.BuildLogger] Included projects: [root project ‘bigbluebutton-apps’]
18:02:44.534 [INFO] [org.gradle.configuration.project.BuildScriptProcessor] Evaluating root project ‘bigbluebutton-apps’ using build file ‘/home/soft/bigbluebutton/bigbluebutton-apps/build.gradle’.
18:02:44.547 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Adding IP addresses for network interface eth0
18:02:44.548 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Is this a loopback interface? false
18:02:44.549 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Is this a multicast interface? true
18:02:44.551 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Adding remote address /fe80:0:0:0:20c:29ff:fea1:ec4b%2
18:02:44.552 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Adding remote address /192.168.2.91
18:02:44.553 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Adding remote multicast interface eth0
18:02:44.554 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Adding IP addresses for network interface lo
18:02:44.555 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Is this a loopback interface? true
18:02:44.557 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Is this a multicast interface? false
18:02:44.558 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Adding loopback address /0:0:0:0:0:0:0:1%1
18:02:44.559 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Adding loopback address /127.0.0.1
18:02:44.567 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on buildscript class cache for build file ‘/home/soft/bigbluebutton/bigbluebutton-apps/build.gradle’ (/root/.gradle/caches/2.5/scripts/build_4c98sri46d2gdh6hv7ilexcpn/ProjectScript/buildscript).
18:02:44.569 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
18:02:44.586 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on no_buildscript class cache for build file ‘/home/soft/bigbluebutton/bigbluebutton-apps/build.gradle’ (/root/.gradle/caches/2.5/scripts/build_4c98sri46d2gdh6hv7ilexcpn/ProjectScript/no_buildscript).
18:02:44.587 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
18:02:44.588 [DEBUG] [org.gradle.cache.internal.DefaultPersistentDirectoryCache] Invalidating org.gradle.cache.internal.DefaultPersistentDirectoryCache$Initializer@4fb1cfeb as it was not closed cleanly.
18:02:44.590 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on no_buildscript class cache for build file ‘/home/soft/bigbluebutton/bigbluebutton-apps/build.gradle’ (/root/.gradle/caches/2.5/scripts/build_4c98sri46d2gdh6hv7ilexcpn/ProjectScript/no_buildscript).
18:02:44.591 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on no_buildscript class cache for build file ‘/home/soft/bigbluebutton/bigbluebutton-apps/build.gradle’ (/root/.gradle/caches/2.5/scripts/build_4c98sri46d2gdh6hv7ilexcpn/ProjectScript/no_buildscript).
18:02:44.592 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
18:02:44.593 [DEBUG] [org.gradle.cache.internal.DefaultPersistentDirectoryCache] Invalidating org.gradle.cache.internal.DefaultPersistentDirectoryCache$Initializer@4fb1cfeb as it was not closed cleanly.
18:02:44.597 [INFO] [org.gradle.groovy.scripts.internal.DefaultScriptCompilationHandler] Compiling build file ‘/home/soft/bigbluebutton/bigbluebutton-apps/build.gradle’ using BuildScriptTransformer.
18:02:46.801 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on no_buildscript class cache for build file ‘/home/soft/bigbluebutton/bigbluebutton-apps/build.gradle’ (/root/.gradle/caches/2.5/scripts/build_4c98sri46d2gdh6hv7ilexcpn/ProjectScript/no_buildscript).
18:02:46.803 [DEBUG] [org.gradle.configuration.project.BuildScriptProcessor] Timing: Running the build script took 2.268 secs
18:02:46.816 [ERROR] [org.gradle.BuildExceptionReporter]
18:02:46.818 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
18:02:46.819 [ERROR] [org.gradle.BuildExceptionReporter]
18:02:46.821 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
18:02:46.822 [ERROR] [org.gradle.BuildExceptionReporter] Build file ‘/home/soft/bigbluebutton/bigbluebutton-apps/build.gradle’ line: 22
18:02:46.823 [ERROR] [org.gradle.BuildExceptionReporter]
18:02:46.824 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
18:02:46.825 [ERROR] [org.gradle.BuildExceptionReporter] Could not compile build file ‘/home/soft/bigbluebutton/bigbluebutton-apps/build.gradle’.
18:02:46.826 [ERROR] [org.gradle.BuildExceptionReporter] > startup failed:
18:02:46.828 [ERROR] [org.gradle.BuildExceptionReporter] build file ‘/home/soft/bigbluebutton/bigbluebutton-apps/build.gradle’: 22: unable to resolve class org.apache.ivy.plugins.resolver.ChainResolver
18:02:46.829 [ERROR] [org.gradle.BuildExceptionReporter] @ line 22, column 7.
18:02:46.830 [ERROR] [org.gradle.BuildExceptionReporter] add(new org.apache.ivy.plugins.resolver.ChainResolver()) {
18:02:46.831 [ERROR] [org.gradle.BuildExceptionReporter] ^
18:02:46.832 [ERROR] [org.gradle.BuildExceptionReporter]
18:02:46.833 [ERROR] [org.gradle.BuildExceptionReporter] build file ‘/home/soft/bigbluebutton/bigbluebutton-apps/build.gradle’: 25: unable to resolve class org.apache.ivy.plugins.resolver.URLResolver
18:02:46.833 [ERROR] [org.gradle.BuildExceptionReporter] @ line 25, column 9.
18:02:46.834 [ERROR] [org.gradle.BuildExceptionReporter] add(new org.apache.ivy.plugins.resolver.URLResolver()) {
18:02:46.835 [ERROR] [org.gradle.BuildExceptionReporter] ^
18:02:46.836 [ERROR] [org.gradle.BuildExceptionReporter]
18:02:46.837 [ERROR] [org.gradle.BuildExceptionReporter] build file ‘/home/soft/bigbluebutton/bigbluebutton-apps/build.gradle’: 30: unable to resolve class org.apache.ivy.plugins.resolver.URLResolver
18:02:46.838 [ERROR] [org.gradle.BuildExceptionReporter] @ line 30, column 9.
18:02:46.839 [ERROR] [org.gradle.BuildExceptionReporter] add(new org.apache.ivy.plugins.resolver.URLResolver()) {
18:02:46.840 [ERROR] [org.gradle.BuildExceptionReporter] ^
18:02:46.840 [ERROR] [org.gradle.BuildExceptionReporter]
18:02:46.841 [ERROR] [org.gradle.BuildExceptionReporter] build file ‘/home/soft/bigbluebutton/bigbluebutton-apps/build.gradle’: 35: unable to resolve class org.apache.ivy.plugins.resolver.URLResolver
18:02:46.842 [ERROR] [org.gradle.BuildExceptionReporter] @ line 35, column 9.
18:02:46.843 [ERROR] [org.gradle.BuildExceptionReporter] add(new org.apache.ivy.plugins.resolver.URLResolver()) {
18:02:46.844 [ERROR] [org.gradle.BuildExceptionReporter] ^
18:02:46.844 [ERROR] [org.gradle.BuildExceptionReporter]
18:02:46.845 [ERROR] [org.gradle.BuildExceptionReporter] build file ‘/home/soft/bigbluebutton/bigbluebutton-apps/build.gradle’: 41: unable to resolve class org.apache.ivy.plugins.resolver.URLResolver
18:02:46.846 [ERROR] [org.gradle.BuildExceptionReporter] @ line 41, column 9.
18:02:46.847 [ERROR] [org.gradle.BuildExceptionReporter] add(new org.apache.ivy.plugins.resolver.URLResolver()) {
18:02:46.847 [ERROR] [org.gradle.BuildExceptionReporter] ^
18:02:46.848 [ERROR] [org.gradle.BuildExceptionReporter]
18:02:46.849 [ERROR] [org.gradle.BuildExceptionReporter] 5 errors
18:02:46.850 [ERROR] [org.gradle.BuildExceptionReporter]
18:02:46.851 [ERROR] [org.gradle.BuildExceptionReporter]
18:02:46.851 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
18:02:46.852 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
18:02:46.854 [LIFECYCLE] [org.gradle.BuildResultLogger]
18:02:46.854 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
18:02:46.855 [LIFECYCLE] [org.gradle.BuildResultLogger]
18:02:46.856 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 4.175 secs
18:02:46.858 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on buildscript class cache for build file ‘/home/soft/bigbluebutton/bigbluebutton-apps/build.gradle’ (/root/.gradle/caches/2.5/scripts/build_4c98sri46d2gdh6hv7ilexcpn/ProjectScript/buildscript).
18:02:46.859 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache artifact cache (/root/.gradle/caches/modules-2) was closed 0 times.
18:02:46.860 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache Plugin Resolution Cache (/root/.gradle/caches/2.5/plugin-resolution) was closed 0 times.
18:02:46.861 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.memcache.InMemoryCachedRepositoryFactory] In-memory dependency metadata cache closed. Repos cached: 0, cache instances: 0, modules served from cache: 0, artifacts: 0
18:02:46.862 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.ResolutionResultsStoreFactory] Deleted 0 resolution results binary files in 0.0 secs
(wd now: /home/soft/bigbluebutton/bigbluebutton-apps)

1 Like

I have the same problem.The bigbluebutton source code is

apply plugin: 'scala'
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'eclipse'
apply plugin: 'idea'

version = '0.9.0'
jar.enabled = true

def appName = 'bigbluebutton'

archivesBaseName = appName 

task resolveDeps(type: Copy) {
    into('lib')
    from configurations.default
    from configurations.default.allArtifacts.file
}

repositories {
        ivy {
            // URL can refer to a local directory
            url "./lib"
        }
  mavenCentral()
  mavenLocal()
  add(new org.apache.ivy.plugins.resolver.ChainResolver()) {
    name = 'remote'
    returnFirst = true
    add(new org.apache.ivy.plugins.resolver.URLResolver()) {
      name = "googlecode"
      addArtifactPattern "http://red5.googlecode.com/svn/repository/[artifact](-[revision]).[ext]"
      addArtifactPattern "http://red5.googlecode.com/svn/repository/[organisation]/[artifact](-[revision]).[ext]"
    }


The line “add(new org.apache.ivy.plugins.resolver.URLResolver())” throw exception class not found