diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/aether/Aether.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/aether/Aether.kt index 20d5db60..b3d2352e 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/aether/Aether.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/aether/Aether.kt @@ -213,8 +213,12 @@ class Aether(localRepo: File, val settings: KobaltSettings, eventBus: EventBus) } } else { val dependencyRequest = DependencyRequest(collectRequest(artifact, artifactScope), scopeFilter) - system.resolveDependencies(session, dependencyRequest).artifactResults.map { - AetherResult(it.artifact, it.repository) + try { + system.resolveDependencies(session, dependencyRequest).artifactResults.map { + AetherResult(it.artifact, it.repository) + } + } catch(ex: Exception) { + throw KobaltException("Couldn't resolve $artifact", ex) } } return result