Maven實戰錯誤筆記:使用mvn archetype:generate報錯:Unable to add module to the current project as it is not of packaging type 'pom'


在使用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'這個錯,然后我選擇在項目目錄構建,就成功了,這個是我自己的解決方法,成功了的。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM