diff --git a/galleon-plugins/src/main/java/org/wildfly/galleon/plugin/WfInstallPlugin.java b/galleon-plugins/src/main/java/org/wildfly/galleon/plugin/WfInstallPlugin.java index 64535de4..0f857b1e 100644 --- a/galleon-plugins/src/main/java/org/wildfly/galleon/plugin/WfInstallPlugin.java +++ b/galleon-plugins/src/main/java/org/wildfly/galleon/plugin/WfInstallPlugin.java @@ -1084,7 +1084,9 @@ public void copyArtifact(CopyArtifact copyArtifact, PackageRuntime pkg) throws P } IoUtils.copy(jarSrc, jarTarget); } - if(schemaGroups.contains(artifact.getGroupId())) { + // only attempt to extract schemas if the artifact is a zip archive + if(schemaGroups.contains(artifact.getGroupId()) + && (artifact.getExtension().equals("jar") || artifact.getExtension().equals("zip"))) { extractSchemas(jarSrc); } } catch (IOException e) {