pom.xml文件编写
打JAR包时
<groupId>com.netcorner</groupId>
<artifactId>demo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>demo</name>
<description>demo</description>
<packaging>jar</packaging>
打WAR包时
<groupId>com.netcorner</groupId>
<artifactId>demo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>demo</name>
<description>demo</description>
<packaging>war</packaging>
然后IDEA中找到install并双击运行
编译成功后