How to Solve Archetype generate Error

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 --> 


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: