Skip to content

Commit 3a45f1a

Browse files
committed
Merge pull request #32 from comoyo/argggh/unbreak-pom-deps
Only inspect jar artifacts.
2 parents 5260096 + 295a034 commit 3a45f1a

File tree

1 file changed

+4
-0
lines changed
  • emjar-maven-plugin/src/main/java/com/comoyo/maven/plugins/emjar

1 file changed

+4
-0
lines changed

emjar-maven-plugin/src/main/java/com/comoyo/maven/plugins/emjar/EmJarMojo.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,10 @@ private void scanArtifact(
442442
final Artifact artifact)
443443
throws IOException
444444
{
445+
final String type = artifact.getType();
446+
if (!"jar".equals(type)) {
447+
return;
448+
}
445449
final File file = artifact.getFile();
446450
final JarFile jar = new JarFile(file);
447451
final Enumeration<? extends JarEntry> entries = jar.entries();

0 commit comments

Comments
 (0)