Maven: do not create JPS resource roots for maven projects with packaging 'pom' (IDEA-194407)

Maven itself doesn't run resources plugin goals for maven aggregator projects but such configuration can be used for inheritance by children
This commit is contained in:
Vladislav.Soroka
2018-06-27 12:07:18 +03:00
parent 1394fc0d51
commit 99ec7c7866
@@ -124,6 +124,9 @@ public class MavenResourceCompilerConfigurationGenerator {
MavenProjectConfiguration projectConfig = new MavenProjectConfiguration();
for (MavenProject mavenProject : myMavenProjectsManager.getProjects()) {
// do not add resource roots for 'pom' packaging projects
if ("pom".equals(mavenProject.getPackaging())) continue;
VirtualFile pomXml = mavenProject.getFile();
Module module = fileIndex.getModuleForFile(pomXml);