在使用mvn archetype:generate生成Maven實戰03:HelloWorld中的HelloWorld的項目骨架時報了這個錯,從字面上分析是可能與pom.xml文件有關,然后我看了一下我命令行的打開位置,果然在項目根目錄下,里面剛好有個pom.xml,如果在這里構建骨架,又要用pom.xml文件,是會不成功的,就會報Unable to add module to the current project as it is not of packaging type 'pom'這個錯,然后我選擇在項目目錄構建,就成功了,這個是我自己的解決方法,成功了的。
