本计划是部署maven项目到Linux服务器上,创建maven项目,配置pom文件和插件如下:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>cn.gf</groupId>
<artifactId>ProDeploy</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jsp-api</artifactId>
<version>2.0</version>
<type>pom.lastUpdated.lastUpdated.lastUpdated</type>
</dependency>
</dependencies>
<build>
<plugins>
<!-- 配置编译以及部署插件 -->
<plugin>
<groupId>