diff --git a/src/main/java/dev/webfx/mavenplugin/ExportMojo.java b/src/main/java/dev/webfx/mavenplugin/ExportMojo.java index ecd9a28..0c9b9bb 100644 --- a/src/main/java/dev/webfx/mavenplugin/ExportMojo.java +++ b/src/main/java/dev/webfx/mavenplugin/ExportMojo.java @@ -182,6 +182,7 @@ private static void exportChildModuleProject(ProjectModule childModule, DevProje Element childProjectElement = (Element) document.importNode(childDocument.getDocumentElement(), true); // Making the project name explicit (so the import knows what module we are talking about) childProjectElement.setAttribute("name", childModule.getName()); + childProjectElement.setAttribute("hasMainJavaSourceDirectory", String.valueOf(childModule.hasMainJavaSourceDirectory())); childProjectElement.setAttribute("hasMainWebFxSourceDirectory", String.valueOf(childModule.hasMainWebFxSourceDirectory())); // Removing tags that are not necessary for the import: , String[] unnecessaryTags = {"update-options", "maven-pom-manual"};