加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pom.xml 10.54 KB
一键复制 编辑 原始数据 按行查看 历史
努力ing 提交于 2019-05-31 12:44 . 配置优化,精简依赖
<?xml version="1.0" encoding="UTF-8"?>
<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.cn.rmq</groupId>
<artifactId>reliable-message</artifactId>
<packaging>pom</packaging>
<version>1.0.1</version>
<modules>
<module>rmq-api</module>
<module>rmq-dal</module>
<module>rmq-service</module>
<module>rmq-service-api</module>
<module>rmq-cms</module>
<module>rmq-cms-api</module>
<module>rmq-schedule</module>
<module>rmq-schedule-api</module>
</modules>
<properties>
<!-- maven -->
<jdk.version>1.8</jdk.version>
<jdk.encoding>UTF-8</jdk.encoding>
<!--spring boot-->
<spring-boot.version>2.1.3.RELEASE</spring-boot.version>
<mybatis-spring-boot-starter.version>2.0.0</mybatis-spring-boot-starter.version>
<pagehelper-spring-boot-starter.version>1.2.10</pagehelper-spring-boot-starter.version>
<pagehelper.version>5.1.8</pagehelper.version>
<!-- main -->
<mybatis-generator-core.version>1.3.7</mybatis-generator-core.version>
<mybatis-typehandlers.version>1.0.2</mybatis-typehandlers.version>
<mysql-connector-java.versioin>5.1.47</mysql-connector-java.versioin>
<lombok.versioin>1.18.6</lombok.versioin>
<hutool.version>4.5.3</hutool.version>
<!-- common tools-->
<commons-lang3.version>3.8.1</commons-lang3.version>
<!--dubbo-->
<dubbo.version>2.7.0</dubbo.version>
<!--guava-->
<guava.version>27.1-jre</guava.version>
<!--shiro-->
<shiro.version>1.4.0</shiro.version>
<!-- plugins -->
<maven-compiler-plugin.version>3.1</maven-compiler-plugin.version>
<maven-jar-plugin.version>2.3.1</maven-jar-plugin.version>
<mybatis-generator-maven-plugin.version>1.3.7</mybatis-generator-maven-plugin.version>
</properties>
<dependencyManagement>
<dependencies>
<!-- Spring Boot依赖配置-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- 参数校验 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
<version>${spring-boot.version}</version>
</dependency>
<!-- configuration -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<version>${spring-boot.version}</version>
</dependency>
<!-- mybatis -->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>${mybatis-spring-boot-starter.version}</version>
</dependency>
<!-- pagehelper -->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>${pagehelper-spring-boot-starter.version}</version>
</dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper</artifactId>
<version>${pagehelper.version}</version>
</dependency>
<!--ActiveMQ-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-activemq</artifactId>
<version>${spring-boot.version}</version>
</dependency>
<!-- dubbo -->
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-dependencies-bom</artifactId>
<version>${dubbo.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo</artifactId>
<version>${dubbo.version}</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
</exclusion>
<exclusion>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
</exclusion>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-spring-boot-starter</artifactId>
<version>${dubbo.version}</version>
</dependency>
<!--mysql-->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql-connector-java.versioin}</version>
</dependency>
<!-- lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.versioin}</version>
</dependency>
<!--commons-->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${commons-lang3.version}</version>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>${hutool.version}</version>
</dependency>
<!--guava-->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
<!-- shiro -->
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-spring</artifactId>
<version>${shiro.version}</version>
</dependency>
<!-- modules -->
<dependency>
<groupId>com.cn.rmq</groupId>
<artifactId>rmq-cms-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.cn.rmq</groupId>
<artifactId>rmq-service-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.cn.rmq</groupId>
<artifactId>rmq-schedule-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.cn.rmq</groupId>
<artifactId>rmq-dal</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.cn.rmq</groupId>
<artifactId>rmq-api</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<profiles>
<profile>
<id>dev</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<profileActive>dev</profileActive>
</properties>
</profile>
<profile>
<id>test</id>
<properties>
<profileActive>test</profileActive>
</properties>
</profile>
</profiles>
<build>
<resources>
<resource>
<!--配置文件路径 -->
<directory>src/main/resources</directory> <!--这里对应项目存放配置文件的目录-->
<!--开启filtering功能 -->
<filtering>true</filtering>
<excludes>
<exclude>dev/**</exclude>
<exclude>test/**</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/resources/${profileActive}</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<!-- Java编译插件 -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>${jdk.version}</source>
<target>${jdk.version}</target>
<encoding>${jdk.encoding}</encoding>
</configuration>
</plugin>
<plugin>
<!-- Jar打包插件 -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
<configuration>
<outputDirectory>target</outputDirectory>
</configuration>
</plugin>
</plugins>
</build>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>https://gitee.com/NuLiing/reliable-message</url>
<connection>https://gitee.com/NuLiing/reliable-message.git</connection>
<developerConnection>https://gitee.com/NuLiing/reliable-message</developerConnection>
</scm>
<developers>
<developer>
<name>ChenNan</name>
<email>327919006@qq.com</email>
<url>https://gitee.com/NuLiing</url>
</developer>
</developers>
</project>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化