Unable to download artifact


(Russell Gold) #1

I have an artifact defined as a dependency with:

compile(libraries.glassfish_omgapi)

where libraries.glassfish_omgapi is defined as:

, glassfish_omgapi: ‘org.glassfish.corba:glassfish-corba-omgapi:4.0.0-b008’

but I receive the following error when building:

  • What went wrong: Execution failed for task ‘:core/rmi-iiop/iiop:genbefore’. Could not resolve all dependencies for configuration ‘:core/rmi-iiop/iiop:compile’. Could not download artifact ‘org.glassfish.corba:glassfish-corba-omgapi:4.0.0-b008:glassfish-corba-omgapi.jar’ Artifact ‘org.glassfish.corba:glassfish-corba-omgapi:4.0.0-b008:glassfish-corba-omgapi.jar’ not found.

the repository (Artifactory) actually contains org/glassfish/corba/glassfish-corba-omgapi/4.0.0-b008/glassfish-corba-omgapi-4.0.0-b008.jar which is populated when I built, but it seems to be asking for the wrong file.

When I build with debug I see these lines (filtered with ‘grep omgapi’): 12:11:35.154 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.DependencyGraphBuilder] Visiting dependency mod:core/rmi-iiop/iiop:1.0.0.0(compile) -> org.glassfish.corba:glassfish-corba-omgapi:4.0.0-b008(dependency: org.glassfish.corba#glassfish-corba-omgapi;4.0.0-b008 {compile=[default]}) 12:11:35.154 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.DependencyGraphBuilder] Selecting new module version org.glassfish.corba:glassfish-corba-omgapi:4.0.0-b008 12:11:35.154 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverChain] Attempting to resolve module ‘org.glassfish.corba:glassfish-corba-omgapi:4.0.0-b008’ using repositories [maven] 12:11:35.157 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleVersionRepository] Using cached module metadata for module ‘org.glassfish.corba#glassfish-corba-omgapi;4.0.0-b008’ in ‘maven’ 12:11:35.157 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverChain] Using module ‘org.glassfish.corba:glassfish-corba-omgapi:4.0.0-b008’ from repository ‘maven’ 12:11:43.250 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.DependencyGraphBuilder] Visiting configuration org.glassfish.corba:glassfish-corba-omgapi:4.0.0-b008(default). 12:11:43.250 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.DependencyGraphBuilder] org.glassfish.corba:glassfish-corba-omgapi:4.0.0-b008(default) has no transitive incoming edges. ignoring outgoing edges. 12:11:43.259 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.DependencyGraphBuilder] Attaching org.glassfish.corba:glassfish-corba-omgapi:4.0.0-b008(default) to its parents. 12:11:43.268 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleVersionRepository] Detected non-existence of artifact ‘org.glassfish.corba:glassfish-corba-omgapi:4.0.0-b008:glassfish-corba-omgapi.jar’ in resolver cache

What is going wrong, here? Thanks (using gradle 1.11)


(Russell Gold) #2

Note: this artifact is marked in maven central as type ‘bundle’. Does gradle handle them differently?