maven項目打jar、war包

1、項目右鍵 >> Run As >> Run Configurations 2、選擇 Maven Build 右鍵 >> new >> Main >> 在 Goals 中輸入 package >> Run 3、查看:打包完成後,在target目錄下就會有對應jar、war包 4、war文件 使用WinRAR打開對應war包,可以看見一些webapp下的資源在這裏: 一些依賴包、.class文件在
相關文章
相關標籤/搜索