根据不同环境配置pom
clean install clean package -P jt808_dev clean package -P tanway_test -X gps-parent <?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
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>com.yunda.lbs</groupId>
<artifactId>gps-parent</artifactId>
<version>1.0-SNAPSHOT</version>
<name>lbs :: Parent</name>
<packaging>pom</packaging> <repositories>
<repository>
<id>ProjectRepo</id>
<name>Project Repository</name>
<url>file://${project.basedir}/src/main/resources/lib</url>
</repository>
</repositories> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
<java.version.source>1.7</java.version.source>
<java.version.target>1.7</java.version.target> <lbs.gps.version>1.0-SNAPSHOT</lbs.gps.version>
<netty.version>5.0.0.Alpha1</netty.version>
<rabbitmq.version>3.6.0</rabbitmq.version>
<jedis.version>2.8.1</jedis.version>
<log4j2.version>2.5</log4j2.version>
<slf4j.version>1.7.13</slf4j.version>
<dbutils.version>1.6</dbutils.version>
<c3p0.version>0.9.5.2</c3p0.version>
<mysql-connector.version>5.1.38</mysql-connector.version>
<quartz.version>2.2.2</quartz.version>
<junit.version>4.12</junit.version>
<jackson.version>2.7.3</jackson.version>
</properties> <dependencyManagement>
<dependencies>
<dependency>
<groupId>com.yunda.lbs</groupId>
<artifactId>gps-tools</artifactId>
<version>${lbs.gps.version}</version>
</dependency> <dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>${netty.version}</version>
</dependency> <!-- 队列-->
<dependency>
<groupId>com.rabbitmq</groupId>
<artifactId>amqp-client</artifactId>
<version>${rabbitmq.version}</version>
</dependency>
<!-- 中安火星GPS偏转-->
<dependency>
<groupId>com.china317.GPS</groupId>
<artifactId>GPSconvert</artifactId>
<version>1.0</version>
</dependency> <!-- 日志系统 -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>${log4j2.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>${log4j2.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>${log4j2.version}</version>
</dependency> <!-- 连接数据库 -->
<dependency>
<groupId>commons-dbutils</groupId>
<artifactId>commons-dbutils</artifactId>
<version>${dbutils.version}</version>
</dependency>
<dependency>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
<version>${c3p0.version}</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql-connector.version}</version>
</dependency> <dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>${jedis.version}</version>
</dependency> <dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency> <!-- 定时任务 -->
<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz</artifactId>
<version>${quartz.version}</version>
<exclusions>
<exclusion>
<groupId>c3p0</groupId>
<artifactId>c3p0</artifactId>
</exclusion>
</exclusions>
</dependency> <!-- junit test-->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement> <profiles>
<!-- 中安协议 -->
<profile>
<id>tanway_dev</id>
<properties>
<env.config>dev</env.config>
<env.jar.name>tanway_dev</env.jar.name>
<env.log.folder>tanway</env.log.folder>
<env.mq.host>10.19.105.217</env.mq.host>
<env.mq.port>5672</env.mq.port>
<env.mq.username>admin</env.mq.username>
<env.mq.pwd>admin@2015</env.mq.pwd>
<env.mq.queue.name>gps_tanway_dev</env.mq.queue.name>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<profile>
<id>tanway_test</id>
<properties>
<env.config>test</env.config>
<env.jar.name>tanway_test</env.jar.name>
<env.log.folder>tanway</env.log.folder>
<env.mq.host>127.0.0.1</env.mq.host>
<env.mq.port>5672</env.mq.port>
<env.mq.username>admin</env.mq.username>
<env.mq.pwd>admin@2015</env.mq.pwd>
<env.mq.queue.name>gps_tanway_test</env.mq.queue.name>
</properties>
</profile>
<profile>
<id>tanway_uat</id>
<properties>
<env.config>uat</env.config>
<env.jar.name>tanway_uat</env.jar.name>
<env.log.folder>tanway</env.log.folder>
<env.mq.host>10.19.106.###</env.mq.host>
<env.mq.port>5672</env.mq.port>
<env.mq.username>admin</env.mq.username>
<env.mq.pwd>admin@2015</env.mq.pwd>
<env.mq.queue.name>gps_tanway_uat</env.mq.queue.name>
</properties>
</profile>
<profile>
<id>tanway_product</id>
<properties>
<env.config>product</env.config>
<env.jar.name>tanway_product</env.jar.name>
<env.log.folder>tanway</env.log.folder>
<env.mq.host>127.0.0.1</env.mq.host>
<env.mq.port>5672</env.mq.port>
<env.mq.username>rmq</env.mq.username>
<env.mq.pwd>123123</env.mq.pwd>
<env.mq.queue.name>gps_tanyway</env.mq.queue.name>
</properties>
</profile>
<!-- 国标协议 -->
<profile>
<id>jt808_dev</id>
<properties>
<env.config>dev</env.config>
<env.jar.name>jt808_dev</env.jar.name>
<env.log.folder>jt808</env.log.folder>
<env.mq.host>10.19.105.217</env.mq.host>
<env.mq.port>5672</env.mq.port>
<env.mq.username>admin</env.mq.username>
<env.mq.pwd>admin@2015</env.mq.pwd>
<env.mq.queue.name>gps_jt808_dev</env.mq.queue.name>
</properties>
</profile>
<profile>
<id>jt808_test</id>
<properties>
<env.config>test</env.config>
<env.jar.name>jt808_test</env.jar.name>
<env.log.folder>jt808</env.log.folder>
<env.mq.host>127.0.0.1</env.mq.host>
<env.mq.port>5672</env.mq.port>
<env.mq.username>admin</env.mq.username>
<env.mq.pwd>admin@2015</env.mq.pwd>
<env.mq.queue.name>gps_jt808_test</env.mq.queue.name>
</properties>
</profile>
<profile>
<id>jt808_uat</id>
<properties>
<env.config>uat</env.config>
<env.jar.name>jt808_uat</env.jar.name>
<env.log.folder>jt808</env.log.folder>
<env.mq.host>10.19.106.###</env.mq.host>
<env.mq.port>5672</env.mq.port>
<env.mq.username>admin</env.mq.username>
<env.mq.pwd>admin@2015</env.mq.pwd>
<env.mq.queue.name>gps_jt808_uat</env.mq.queue.name>
</properties>
</profile>
<profile>
<id>jt808_product</id>
<properties>
<env.config>product</env.config>
<env.jar.name>jt808_product</env.jar.name>
<env.log.folder>jt808</env.log.folder>
<env.mq.host>127.0.0.1</env.mq.host>
<env.mq.port>5672</env.mq.port>
<env.mq.username>rmq</env.mq.username>
<env.mq.pwd>123123</env.mq.pwd>
<env.mq.queue.name>gps_jt808</env.mq.queue.name>
</properties>
</profile>
</profiles>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
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> <parent>
<groupId>com.yunda.lbs</groupId>
<artifactId>gps-parent</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../gps-parent/pom.xml</relativePath>
</parent> <properties>
<env.tanway.port>11092</env.tanway.port>
<env.tanway.main>com.yd.lbs.gps.acceptor.tanway.TanwayGpsServer</env.tanway.main>
<env.jt808.port>21361</env.jt808.port>
<env.jt808.main>com.yd.lbs.gps.acceptor.jt808.Jt808GpsServer</env.jt808.main>
</properties> <groupId>com.yunda.lbs</groupId>
<artifactId>gps-acceptor</artifactId>
<version>${lbs.gps.version}-${env.jar.name}</version> <packaging>jar</packaging>
<name>Lbs :: gps-acceptor</name> <dependencies>
<dependency>
<groupId>com.yunda.lbs</groupId>
<artifactId>gps-tools</artifactId>
</dependency> <!-- 队列-->
<dependency>
<groupId>com.rabbitmq</groupId>
<artifactId>amqp-client</artifactId>
</dependency>
<!-- socket 通信-->
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
</dependency> <!-- 日志系统 -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
</dependency> <!-- junit test-->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency> </dependencies> <profiles>
<!-- 中安协议 -->
<profile>
<id>tanway_dev</id>
<properties>
<env.gps.port>${env.tanway.port}</env.gps.port>
<env.gps.ack>true</env.gps.ack>
<env.gps.channel.close>true</env.gps.channel.close>
<env.main.start>${env.tanway.main}</env.main.start>
</properties>
</profile>
<profile>
<id>tanway_test</id>
<properties>
<env.gps.port>${env.tanway.port}</env.gps.port>
<env.gps.ack>true</env.gps.ack>
<env.gps.channel.close>true</env.gps.channel.close>
<env.main.start>${env.tanway.main}</env.main.start>
</properties>
</profile>
<profile>
<id>tanway_uat</id>
<properties>
<env.gps.port>${env.tanway.port}</env.gps.port>
<env.gps.ack>true</env.gps.ack>
<env.gps.channel.close>true</env.gps.channel.close>
<env.main.start>${env.tanway.main}</env.main.start>
</properties>
</profile>
<profile>
<id>tanway_product</id>
<properties>
<env.gps.port>${env.tanway.port}</env.gps.port>
<env.gps.ack>true</env.gps.ack>
<env.gps.channel.close>false</env.gps.channel.close>
<env.main.start>${env.tanway.main}</env.main.start>
</properties>
</profile>
<!-- 国标协议 -->
<profile>
<id>jt808_dev</id>
<properties>
<env.gps.port>${env.jt808.port}</env.gps.port>
<env.gps.ack>true</env.gps.ack>
<env.gps.channel.close>true</env.gps.channel.close>
<env.main.start>${env.jt808.main}</env.main.start>
</properties>
</profile>
<profile>
<id>jt808_test</id>
<properties>
<env.gps.port>${env.jt808.port}</env.gps.port>
<env.gps.ack>true</env.gps.ack>
<env.gps.channel.close>true</env.gps.channel.close>
<env.main.start>${env.jt808.main}</env.main.start>
</properties>
</profile>
<profile>
<id>jt808_uat</id>
<properties>
<env.gps.port>${env.jt808.port}</env.gps.port>
<env.gps.ack>true</env.gps.ack>
<env.gps.channel.close>true</env.gps.channel.close>
<env.main.start>${env.jt808.main}</env.main.start>
</properties>
</profile>
<profile>
<id>jt808_product</id>
<properties>
<env.gps.port>${env.jt808.port}</env.gps.port>
<env.gps.ack>false</env.gps.ack>
<env.gps.channel.close>false</env.gps.channel.close>
<env.main.start>${env.jt808.main}</env.main.start>
</properties>
</profile>
</profiles> <build>
<resources>
<resource>
<!-- 设定主资源目录 -->
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins> <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>${env.main.start}</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin> </plugins>
</build> </project>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
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> <parent>
<groupId>com.yunda.lbs</groupId>
<artifactId>gps-parent</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../gps-parent/pom.xml</relativePath>
</parent> <properties>
<env.tanyway.main>com.yd.lbs.gps.storer.controller.TanwayStoreController</env.tanyway.main>
<env.jt808.main>com.yd.lbs.gps.storer.controller.Jt808StoreController</env.jt808.main>
</properties> <groupId>com.yunda.lbs</groupId>
<artifactId>gps-storer</artifactId>
<version>${lbs.gps.version}-${env.jar.name}</version> <packaging>jar</packaging>
<name>Lbs :: gps-storer</name> <dependencies>
<dependency>
<groupId>com.yunda.lbs</groupId>
<artifactId>gps-tools</artifactId>
</dependency> <!-- 队列-->
<dependency>
<groupId>com.rabbitmq</groupId>
<artifactId>amqp-client</artifactId>
</dependency>
<!-- 中安火星GPS偏转-->
<dependency>
<groupId>com.china317.GPS</groupId>
<artifactId>GPSconvert</artifactId>
</dependency> <dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
</dependency> <dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
</dependency> <!-- 日志系统 -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
</dependency> <!-- 连接数据库 -->
<dependency>
<groupId>commons-dbutils</groupId>
<artifactId>commons-dbutils</artifactId>
</dependency>
<dependency>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency> <!-- 定时任务 -->
<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz</artifactId>
</dependency> <!-- junit test-->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency> </dependencies> <profiles>
<!-- 中安协议 -->
<profile>
<id>tanway_dev</id>
<properties>
<env.main.start>${env.tanyway.main}</env.main.start>
</properties>
</profile>
<profile>
<id>tanway_test</id>
<properties>
<env.main.start>${env.tanyway.main}</env.main.start>
</properties>
</profile>
<profile>
<id>tanway_uat</id>
<properties>
<env.main.start>${env.tanyway.main}</env.main.start>
</properties>
</profile>
<profile>
<id>tanway_product</id>
<properties>
<env.main.start>${env.tanyway.main}</env.main.start>
</properties>
</profile>
<!-- 国标协议 -->
<profile>
<id>jt808_dev</id>
<properties>
<env.main.start>${env.jt808.main}</env.main.start>
</properties>
</profile>
<profile>
<id>jt808_test</id>
<properties>
<env.main.start>${env.jt808.main}</env.main.start>
</properties>
</profile>
<profile>
<id>jt808_uat</id>
<properties>
<env.main.start>${env.jt808.main}</env.main.start>
</properties>
</profile>
<profile>
<id>jt808_product</id>
<properties>
<env.main.start>${env.jt808.main}</env.main.start>
</properties>
</profile>
</profiles> <build>
<resources>
<resource>
<!-- 设定主资源目录 -->
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>*.xml</include>
</includes>
</resource>
<resource>
<!-- 设定主资源目录 -->
<directory>src/main/resources/${env.config}</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins> <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>${env.main.start}</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build> </project>
根据不同环境配置pom的更多相关文章
- java环境配置笔记
1.使用Eclipse,要安装jdk,jdk现在可用1.7版本 2.打开Eclipse,配置maven,打开window-preferencess,在maven-user settings处,设置ma ...
- activiti自定义流程之自定义表单(一):环境配置
先补充说一下自定义流程整个的思路,自定义流程的目的就是为了让一套代码解决多种业务流程,比如请假单.报销单.采购单.协作单等等,用户自己来设计流程图. 这里要涉及到这样几个基本问题,一是不同的业务需求, ...
- 开发环境配置(netbeans+ant迁移到eclipse+maven)
新公司入职,接手一个离职人员的项目,拿到的源码是以一个压缩包,用netbeans开发,ant管理:前端:jsp+extjs,后端:springmvc+hibernate+activiti+spring ...
- windows下spark开发环境配置
http://www.cnblogs.com/davidwang456/p/5032766.html windows下spark开发环境配置 --本篇随笔由同事葛同学提供. windows下spark ...
- SpringBoot01 InteliJ IDEA安装、Maven配置、创建SpringBoot项目、属性配置、多环境配置
1 InteliJ IDEA 安装 下载地址:点击前往 注意:需要下载专业版本的,注册码在网上随便搜一个就行啦 2 MAVEN工具的安装 2.1 获取安装包 下载地址:点击前往 2.2 安装过程 到官 ...
- Eclipse上Maven环境配置使用 (全)
Eclipse上Maven环境配置使用 (全) 1. 安装配置Maven: 1.1 从Apache网站 http://maven.apache.org/ 下载并且解压缩安装Apache Maven. ...
- Spring MVC 学习总结(一)——MVC概要与环境配置 转载自【张果】博客
Spring MVC 学习总结(一)--MVC概要与环境配置 目录 一.MVC概要 二.Spring MVC介绍 三.第一个Spring MVC 项目:Hello World 3.1.通过Mave ...
- 通过maven profile 打包指定环境配置
背景 最近换了个新公司接手了一个老项目,然后比较坑的是这个公司的项目都没有没有做多环境打包配置,每次发布一个环境都要手动的去修改配置文件.今天正好有空就来配置下. 解决这个问题的方式有很多,我这里挑选 ...
- sprintboot 中占位符及多环境配置
(原) 关于springboot中多环境配置问题 1.在application.properties文件中通过 spring.profiles.active=... 选择系统所要加载的配置文件,这里的 ...
随机推荐
- 构建嵌入式小型Linux系统
构建嵌入式小型Linux系统 摘要:用buildroot构建x86的交叉编译工具链:裁减linux内核,尽可能做到最小:手工构建根文件系统:安装qemu虚拟机,仿真新配置的Linux系统:为新配置的L ...
- 时间倒计时 JS
<div id="keleyi">Christmas Countdown</div> <script type="text/javascri ...
- 【转】 Pro Android学习笔记(七一):HTTP服务(5):多线程调用HttpClient
目录(?)[-] 应用共享HttpClient对象的同步问题 创建共享HttpClient代码 创建共享对象 创建可共享的HttpClient对象 使用共享HttpClient对象的代码 基础代码 修 ...
- 【转】Pro Android学习笔记(十四):用户界面和控制(2):Text类控制
目录(?)[-] TextView 例子1在XML中设置autoLink属性 例子2在代码中设置autoLink属性 EditText AutoCompleteTextView MultiAutoCo ...
- Java常见设计模式之观察者模式
在阎宏博士的<JAVA与模式>一书中开头是这样描述观察者(Observer)模式的: 观察者模式是对象的行为模式,又叫发布-订阅(Publish/Subscribe)模式.模型-视图(Mo ...
- C# 处理Json
下面是JSON对象转换为字符串 public static string ToJson(object obj) { try { JavaScriptSerializer serializer = ne ...
- MongoDB一些基本的命令
Win+R进入Dos命令窗口,输入cmd,进入MongoDB exe文件的所在目录,比如我的在E:\MongoDB\bin,分别执行:“E:”回车,然后:"cd mongodb/bin&qu ...
- rsyn文件传输
Rsync的命令格式可以为以下六种: rsync [OPTION]... SRC DEST rsync [OPTION]... SRC [USER@]HOST:DEST rsync [OPTION]. ...
- hbase-0.98.1-cdh5.1.0伪分布式安装
分三步: 1. 添加环境变量 2.编辑hbase-env.sh文件 3.编辑hbase-site.xml 文件 前提条件是安装好hadoop,下面展开说明 1. 添加环境变量 export HBASE ...
- shell工具使用配置备忘
一.bash之vi mode.两种方式:set -o vi(只让bash自己进入vi模式)或 set editing-mode vi(让所有使用readline库函数的程序在读取命令行时都进入vi模式 ...