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的更多相关文章

  1. java环境配置笔记

    1.使用Eclipse,要安装jdk,jdk现在可用1.7版本 2.打开Eclipse,配置maven,打开window-preferencess,在maven-user settings处,设置ma ...

  2. activiti自定义流程之自定义表单(一):环境配置

    先补充说一下自定义流程整个的思路,自定义流程的目的就是为了让一套代码解决多种业务流程,比如请假单.报销单.采购单.协作单等等,用户自己来设计流程图. 这里要涉及到这样几个基本问题,一是不同的业务需求, ...

  3. 开发环境配置(netbeans+ant迁移到eclipse+maven)

    新公司入职,接手一个离职人员的项目,拿到的源码是以一个压缩包,用netbeans开发,ant管理:前端:jsp+extjs,后端:springmvc+hibernate+activiti+spring ...

  4. windows下spark开发环境配置

    http://www.cnblogs.com/davidwang456/p/5032766.html windows下spark开发环境配置 --本篇随笔由同事葛同学提供. windows下spark ...

  5. SpringBoot01 InteliJ IDEA安装、Maven配置、创建SpringBoot项目、属性配置、多环境配置

    1 InteliJ IDEA 安装 下载地址:点击前往 注意:需要下载专业版本的,注册码在网上随便搜一个就行啦 2 MAVEN工具的安装 2.1 获取安装包 下载地址:点击前往 2.2 安装过程 到官 ...

  6. Eclipse上Maven环境配置使用 (全)

    Eclipse上Maven环境配置使用 (全) 1. 安装配置Maven: 1.1 从Apache网站 http://maven.apache.org/ 下载并且解压缩安装Apache Maven. ...

  7. Spring MVC 学习总结(一)——MVC概要与环境配置 转载自【张果】博客

    Spring MVC 学习总结(一)--MVC概要与环境配置   目录 一.MVC概要 二.Spring MVC介绍 三.第一个Spring MVC 项目:Hello World 3.1.通过Mave ...

  8. 通过maven profile 打包指定环境配置

    背景 最近换了个新公司接手了一个老项目,然后比较坑的是这个公司的项目都没有没有做多环境打包配置,每次发布一个环境都要手动的去修改配置文件.今天正好有空就来配置下. 解决这个问题的方式有很多,我这里挑选 ...

  9. sprintboot 中占位符及多环境配置

    (原) 关于springboot中多环境配置问题 1.在application.properties文件中通过 spring.profiles.active=... 选择系统所要加载的配置文件,这里的 ...

随机推荐

  1. Java Modifiers

    Private means this could only be seen within this class. Protected means "package private" ...

  2. 反编译工具Reflector下载(集成FileGenerator和FileDisassembler)

    Reflector是一款比较强大的反编译工具,相信很多朋友都用过它,但reflector本身有很多局限性, 比如只能一个一个的查看方法等,但幸好reflector支持插件功能目前网上有很多reflec ...

  3. Exchange邮箱设置,android手机和mac book

    假设 用户名:abc 密码:123 公司名是:qq 一 android手机: 1 输入地址:abc@qq.com 2 密码:123 3 协议:EXCHANGE 点击下一步 用户名:abc 域名:qqc ...

  4. RabbitMQ队列,Redis\Memcached缓存

    RabbitMQ RabbitMQ是一个在AMQP基础上完整的,可复用的企业消息系统. MQ全称Message Queue,消息队列(MQ)是一种应用程序对应用程序的通信方式.应用程序通过读写出入队列 ...

  5. MongoDB分析工具之二:MongoDB分析器Profile

    MongoDB优化器profile 在MySQL 中,慢查询日志是经常作为我们优化数据库的依据,那在MongoDB 中是否有类似的功能呢?答案是肯定的,那就是MongoDB Database Prof ...

  6. stm32 奇怪的位赋值问题 出错了

    转载请注明出处:http://blog.csdn.net/qq_26093511/article/category/6094215 1.在51单片机里 ,下面这两种操作方法都是一样的,没有什么问题! ...

  7. Python错误处理和调试

    错误处理(try...except...finally...) try: print('try...') r = 10 / 0 print('result:', r) except ZeroDivis ...

  8. JavaScript继承与聚合

    一,继承 第一种方式:类与被继承类直接耦合度高 1,首先,准备一个可以被继承的类(父类),例如 //创建一个人员类 function Person(name) {//现在Person里面的域是由Per ...

  9. MS-SQL使用xp_cmdshell命令导出数据到excel

    exec master..xp_cmdshell 'bcp "select c.Category_Title as 标题,p.Category_Title as 所属分类 from ltbl ...

  10. 使用pygame制作一个简单的游戏

    翻译自Will McGugan的<Beginning Game Development with Python and Pygame –From Novice to Professional&g ...