Unable to add module to the current project as it is not of packaging type ‘pom’
I modified two places. You can have a try,
1. My original java version number was 15.0. Later, I added it completely according to version number 15 under Java – variant
<!-- java version -->
<profile>
<id>jdk-15</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>15</jdk>
</activation>
<properties>
<maven.compiler.source>15</maven.compiler.source>
<maven.compiler.target>15</maven.compiler.target>
<maven.compiler.compilerVersion>15</maven.compiler.compilerVersion>
</properties>
</profile>
I suggest you complete it
2. I wrote a POM myself in the original project directory, and I deleted it
the second one I tested. The pom.xml file cannot be found in the directory where the project is to be created
then run the generate command to successfully create the project