pom.xml 配置 收藏
本配置使用环境 jdk8 maven 3.6
C:\Users\Dell>java -version java version "1.8.0_162" Java(TM) SE Runtime Environment (build 1.8.0_162-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)
本配置使用环境 maven 3.6
C:\Users\Dell>mvn -version Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117; 2019-08-27T23: Maven home: D:\Program Files (x86)\apache-maven-3.6.2\bin\.. Java version: 1.8.0_162, vendor: Oracle Corporation, runtime: C:\Program Fil Default locale: zh_CN, platform encoding: GBK OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
-
为项目添加运行tomcat7 环境 ,放在pom.xml
<build> <plugins> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> <configuration> <port>8888</port> </configuration> </plugin> </plugins> </build> </project>
eclipse mvn 命令启动 tomcat 操作路径
做产品的程序,才是好的程序员!