diff --git a/flow-maven-plugin/src/main/java/com/vaadin/flow/plugin/maven/CopyProductionFilesMojo.java b/flow-maven-plugin/src/main/java/com/vaadin/flow/plugin/maven/CopyProductionFilesMojo.java index f1f87d00f47..c8af69b26ed 100644 --- a/flow-maven-plugin/src/main/java/com/vaadin/flow/plugin/maven/CopyProductionFilesMojo.java +++ b/flow-maven-plugin/src/main/java/com/vaadin/flow/plugin/maven/CopyProductionFilesMojo.java @@ -16,6 +16,7 @@ package com.vaadin.flow.plugin.maven; import java.io.File; +import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; @@ -29,7 +30,6 @@ import com.vaadin.flow.plugin.common.ArtifactData; import com.vaadin.flow.plugin.common.JarContentsManager; import com.vaadin.flow.plugin.production.ProductionModeCopyStep; -import java.util.Arrays; /** * Goal that copies all production mode files into the @@ -67,6 +67,7 @@ public class CopyProductionFilesMojo extends AbstractMojo { @Override public void execute() { List projectArtifacts = project.getArtifacts().stream() + .filter(artifact -> "jar".equals(artifact.getType())) .map(artifact -> new ArtifactData(artifact.getFile(), artifact.getArtifactId(), artifact.getVersion())) .collect(Collectors.toList());