是什么使Intellij中不显示Maven配置文件?

问题描述

我要添加的个人资料是:INSTALL-KIT-GENERATION-AIX-POWER-64

我确保将其添加到项目的POM中:

    <profile>
        <id>INSTALL-KIT-GENERATION-AIX-POWER-64</id>
        <build>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-resources-plugin</artifactId>
                    <executions>
                       .
                       .
                       .

但是,我仍然没有在Intellij的配置文件列表中看到它。我应该在其他地方添加它吗?

enter image description here

解决方法

确保将相应的pom.xml添加为Maven项目(在Maven工具窗口中),并在更改pom.xml之后在Maven工具窗口中调用Maven重新导入:

enter image description here