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>