mirror of
https://github.com/qiurunze123/miaosha.git
synced 2023-11-19 22:41:03 +08:00
320 lines
11 KiB
XML
320 lines
11 KiB
XML
<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>com.geekq</groupId>
|
||
<artifactId>miaosha</artifactId>
|
||
<version>0.0.1-SNAPSHOT</version>
|
||
<packaging>jar</packaging>
|
||
<parent>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-parent</artifactId>
|
||
<version>1.5.8.RELEASE</version>
|
||
</parent>
|
||
<properties>
|
||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||
</properties>
|
||
<name>miaosha</name>
|
||
<url>http://maven.apache.org</url>
|
||
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>com.geekq</groupId>
|
||
<artifactId>miaosha-common</artifactId>
|
||
<version>0.0.1-SNAPSHOT</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.geekq</groupId>
|
||
<artifactId>miaosha-admin-api</artifactId>
|
||
<version>0.0.1-SNAPSHOT</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.github.sgroschupf</groupId>
|
||
<artifactId>zkclient</artifactId>
|
||
<version>0.1</version>
|
||
</dependency>
|
||
|
||
<!-- zk 客户端依赖 -->
|
||
<dependency>
|
||
<groupId>org.apache.curator</groupId>
|
||
<artifactId>curator-framework</artifactId>
|
||
<version>4.0.0</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.apache.curator</groupId>
|
||
<artifactId>curator-recipes</artifactId>
|
||
<version>4.0.0</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.alibaba</groupId>
|
||
<artifactId>dubbo</artifactId>
|
||
<version>2.5.3</version>
|
||
<exclusions>
|
||
<exclusion>
|
||
<groupId>org.springframework</groupId>
|
||
<artifactId>spring</artifactId>
|
||
</exclusion>
|
||
</exclusions>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.apache.zookeeper</groupId>
|
||
<artifactId>zookeeper</artifactId>
|
||
<version>3.4.6</version>
|
||
<exclusions>
|
||
<exclusion>
|
||
<groupId>org.slf4j</groupId>
|
||
<artifactId>slf4j-log4j12</artifactId>
|
||
</exclusion>
|
||
<exclusion>
|
||
<groupId>log4j</groupId>
|
||
<artifactId>log4j</artifactId>
|
||
</exclusion>
|
||
</exclusions>
|
||
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-web</artifactId>
|
||
<exclusions>
|
||
<exclusion>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-tomcat</artifactId>
|
||
</exclusion>
|
||
<exclusion>
|
||
<groupId>org.slf4j</groupId>
|
||
<artifactId>slf4j-log4j12</artifactId>
|
||
</exclusion>
|
||
<exclusion>
|
||
<groupId>log4j</groupId>
|
||
<artifactId>log4j</artifactId>
|
||
</exclusion>
|
||
</exclusions>
|
||
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-tomcat</artifactId>
|
||
<!--打包的时候可以不用包进去,别的设施会提供。事实上该依赖理论上可以参与编译,测试,运行等周期。
|
||
相当于compile,但是打包阶段做了exclude操作-->
|
||
<scope>provided</scope>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.google.guava</groupId>
|
||
<artifactId>guava</artifactId>
|
||
<version>18.0</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.mybatis.spring.boot</groupId>
|
||
<artifactId>mybatis-spring-boot-starter</artifactId>
|
||
<version>1.3.1</version>
|
||
<exclusions>
|
||
<exclusion>
|
||
<groupId>org.slf4j</groupId>
|
||
<artifactId>slf4j-log4j12</artifactId>
|
||
</exclusion>
|
||
<exclusion>
|
||
<groupId>log4j</groupId>
|
||
<artifactId>log4j</artifactId>
|
||
</exclusion>
|
||
</exclusions>
|
||
</dependency>
|
||
|
||
<!--<dependency>-->
|
||
<!--<groupId>com.geekq.dubbo.springboot</groupId>-->
|
||
<!--<artifactId>miaosha-rely</artifactId>-->
|
||
<!--<version>0.0.1-SNAPSHOT</version>-->
|
||
<!--</dependency>-->
|
||
<dependency>
|
||
<groupId>mysql</groupId>
|
||
<artifactId>mysql-connector-java</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.alibaba</groupId>
|
||
<artifactId>druid</artifactId>
|
||
<version>1.0.5</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>redis.clients</groupId>
|
||
<artifactId>jedis</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.alibaba</groupId>
|
||
<artifactId>fastjson</artifactId>
|
||
<version>1.2.38</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>commons-codec</groupId>
|
||
<artifactId>commons-codec</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.apache.commons</groupId>
|
||
<artifactId>commons-lang3</artifactId>
|
||
<version>3.6</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>commons-codec</groupId>
|
||
<artifactId>commons-codec</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.apache.commons</groupId>
|
||
<artifactId>commons-lang3</artifactId>
|
||
<version>3.6</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-validation</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-amqp</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>joda-time</groupId>
|
||
<artifactId>joda-time</artifactId>
|
||
<version>2.3</version>
|
||
</dependency>
|
||
<!-- https://mvnrepository.com/artifact/org.redisson/redisson -->
|
||
<!--<dependency>-->
|
||
<!--<groupId>org.redisson</groupId>-->
|
||
<!--<artifactId>redisson</artifactId>-->
|
||
<!--<version>2.14.0</version>-->
|
||
<!--</dependency>-->
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-amqp</artifactId>
|
||
</dependency>
|
||
<!--lombook引用-->
|
||
<dependency>
|
||
<groupId>org.projectlombok</groupId>
|
||
<artifactId>lombok</artifactId>
|
||
<version>1.18.2</version>
|
||
<scope>provided</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-test</artifactId>
|
||
</dependency>
|
||
|
||
</dependencies>
|
||
|
||
<build>
|
||
<finalName>${project.artifactId}</finalName>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.mybatis.generator</groupId>
|
||
<artifactId>mybatis-generator-maven-plugin</artifactId>
|
||
<version>1.3.2</version>
|
||
<configuration>
|
||
<verbose>true</verbose>
|
||
<overwrite>false</overwrite>
|
||
</configuration>
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>mysql</groupId>
|
||
<artifactId>mysql-connector-java</artifactId>
|
||
<version>5.1.21</version>
|
||
</dependency>
|
||
</dependencies>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
<version>1.5.2.RELEASE</version>
|
||
<configuration>
|
||
<mainClass>com.geekq.miaosha.GeekQMainApplication</mainClass><!--springboot启动类目录-->
|
||
</configuration>
|
||
<executions>
|
||
<execution>
|
||
<goals> <!--创建一个自动可执行的jar或war文件 -->
|
||
<goal>repackage</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
|
||
</plugins>
|
||
|
||
|
||
<resources>
|
||
<resource>
|
||
<directory>src/main/java</directory>
|
||
<includes>
|
||
<include>**/*.xml</include>
|
||
</includes>
|
||
</resource>
|
||
|
||
<resource> <!--配置文件路径 -->
|
||
<directory>src/main/resources</directory> <!--这里对应项目存放配置文件的目录--> <!--开启filtering功能 -->
|
||
<filtering>true</filtering>
|
||
<excludes>
|
||
<exclude>application-local.properties</exclude>
|
||
<exclude>application-dev.properties</exclude>
|
||
<exclude>application-prod.properties</exclude>
|
||
<exclude>application-test.properties</exclude>
|
||
</excludes>
|
||
</resource>
|
||
|
||
<resource> <!--配置文件路径 -->
|
||
<directory>src/main/resources</directory> <!--这里对应项目存放配置文件的目录--> <!--开启filtering功能 -->
|
||
<filtering>true</filtering>
|
||
<includes>
|
||
<include>application-${activatedProperties}.properties</include>
|
||
<include>application.properties</include>
|
||
</includes>
|
||
</resource>
|
||
</resources>
|
||
</build>
|
||
|
||
<profiles>
|
||
<profile>
|
||
<id>local</id>
|
||
<properties> <!-- 环境标识,需要与配置文件的名称相对应 -->
|
||
<activatedProperties>local</activatedProperties>
|
||
</properties>
|
||
<activation> <!-- 默认环境 -->
|
||
<activeByDefault>true</activeByDefault>
|
||
</activation>
|
||
</profile>
|
||
<profile>
|
||
<id>dev</id>
|
||
<properties> <!-- 环境标识,需要与配置文件的名称相对应 -->
|
||
<activatedProperties>dev</activatedProperties>
|
||
</properties>
|
||
</profile>
|
||
<profile>
|
||
<id>test</id>
|
||
<properties>
|
||
<activatedProperties>test</activatedProperties>
|
||
</properties>
|
||
</profile>
|
||
<profile>
|
||
<id>prod</id>
|
||
<properties>
|
||
<activatedProperties>prod</activatedProperties>
|
||
</properties>
|
||
</profile>
|
||
</profiles>
|
||
</project>
|