maven 使用package 命令 打出来的默认是jar文件。
需要配置
<packaging>war</packaging>才能打包出想要的war文件。同时 对应的名称需要在<build> 中配置<finalName> 。