diff --git a/plugin/src/main/java/org/wildfly/plugin/provision/ChannelMavenArtifactRepositoryManager.java b/plugin/src/main/java/org/wildfly/plugin/provision/ChannelMavenArtifactRepositoryManager.java index 24317419..9bb27f7c 100644 --- a/plugin/src/main/java/org/wildfly/plugin/provision/ChannelMavenArtifactRepositoryManager.java +++ b/plugin/src/main/java/org/wildfly/plugin/provision/ChannelMavenArtifactRepositoryManager.java @@ -45,9 +45,11 @@ import org.jboss.galleon.universe.maven.MavenUniverseException; import org.jboss.galleon.universe.maven.repo.MavenRepoManager; import org.jboss.galleon.util.ZipUtils; +import org.wildfly.channel.ArtifactTransferException; import org.wildfly.channel.Channel; import org.wildfly.channel.ChannelManifest; import org.wildfly.channel.ChannelSession; +import org.wildfly.channel.NoStreamFoundException; import org.wildfly.channel.Repository; import org.wildfly.channel.UnresolvedMavenArtifactException; import org.wildfly.channel.maven.VersionResolverFactory; @@ -102,7 +104,9 @@ public ChannelMavenArtifactRepositoryManager(List channels public void resolve(MavenArtifact artifact) throws MavenUniverseException { try { resolveFromChannels(artifact); - } catch (UnresolvedMavenArtifactException ex) { + } catch (ArtifactTransferException ex) { + throw new MavenUniverseException(ex.getLocalizedMessage(), ex); + } catch (NoStreamFoundException ex) { boolean requireChannel = Boolean.parseBoolean(artifact.getMetadata().get(REQUIRE_CHANNEL_FOR_ALL_ARTIFACT)); if (!requireChannel) { // Could be a feature-pack that could require to be resolved from a channel. diff --git a/pom.xml b/pom.xml index 0f00dbc0..13268dfe 100644 --- a/pom.xml +++ b/pom.xml @@ -96,7 +96,7 @@ 20.0.1.Final 27.0.1.Final - 1.0.0.Final + 1.0.1.Final 1.0.0.Final 1