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
Read More:
- How to Solve VS2019 Re-generate Error
- [Solved] Matlab Code generate error: failed to generate all binary outputs
- Vivado Error: [Chipscope 16-302]Could not generate core for dbg_hub.Aborting IP Generate operaion.The current Vivado temporary directory path.
- HLS ERROR: [IMPL 213-28] Failed to generate IP. [How to Solve]
- How to Solve elasticsearch and logstash Install Error
- How to Solve [error] malformed \uxxxx encoding Error
- ERROR: [IMPL 213-28] Failed to generate IP.
- How to Solve Project Upgrade to flutter2.5.0 Error
- [Solved] Swashbuckle.AspNetCore.SwaggerGen.SwaggerGeneratorException: Failed to generate Operation
- [MAC] How to Solve zsh Error: command not found: umi
- How to Solve elasticsearch root user start Error
- Kotlin: How to Solve kapt import error
- How to Solve Git submodule update error
- How to Solve elasticsearch-7.15.1 operation errors
- How to Solve jmeter Install Error (Three Common Errors)
- How to Solve Error: Type mismatch: cannot convert from Object to Car
- How to Solve Mac installation luajit error
- How to Solve elasticSearch8.1.2 Install Error in Win10
- How to Solve Azkaban Error Chung during uploading files to DB
- How to Solve Error: Heartbeating to master:7182 failed.