diff --git a/tools/maven/plugin/src/main/java/org/teavm/maven/MavenSourceFileProviderLookup.java b/tools/maven/plugin/src/main/java/org/teavm/maven/MavenSourceFileProviderLookup.java
index 3b6242f79..f41b0eabd 100644
--- a/tools/maven/plugin/src/main/java/org/teavm/maven/MavenSourceFileProviderLookup.java
+++ b/tools/maven/plugin/src/main/java/org/teavm/maven/MavenSourceFileProviderLookup.java
@@ -76,6 +76,8 @@ public class MavenSourceFileProviderLookup {
                         artifact.getArtifactId(), artifact.getVersion(), artifact.getType(), "sources"));
             }
         }
+
+        artifacts.addAll(initialArtifacts);
         List<SourceFileProvider> providers = new ArrayList<>();
         for (Artifact artifact : artifacts) {
             ArtifactResolutionRequest request = new ArtifactResolutionRequest()