1 Star 0 Fork 21

hz/ken_framework_pom

forked from Ken/ken_framework_pom 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
pom.xml 7.45 KB
一键复制 编辑 原始数据 按行查看 历史
Ken 提交于 2021-10-24 15:47 . 整合Nacos
<?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.ken</groupId>
<artifactId>ken_framework_pom</artifactId>
<version>1.0</version>
<modules>
<module>ken_ability</module>
<module>ken_business</module>
<module>ken_common</module>
<module>ken_config</module>
<module>ken_data</module>
</modules>
<packaging>pom</packaging>
<properties>
<maven-plugin.version>3.8.1</maven-plugin.version>
<jdk.version>1.8</jdk.version>
<spring-boot.version>2.3.0.RELEASE</spring-boot.version>
<spring-cloud.version>Hoxton.SR9</spring-cloud.version>
<spring-cloud-ablibaba.version>2.2.6.RELEASE</spring-cloud-ablibaba.version>
<mybatis.version>2.0.6</mybatis.version>
<mybatis-plus.version>3.4.0</mybatis-plus.version>
<mysql-driver.version>8.0.26</mysql-driver.version>
<ken-page.version>1.2.5</ken-page.version>
<basic.version>1.0</basic.version>
<servlet.version>2.5</servlet.version>
</properties>
<!-- 配置依赖管理
springboot
springcloud-netflix
springcloud-alibaba
-->
<dependencyManagement>
<dependencies>
<!-- 间接的继承了SpringBoot的依赖 springboot -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<!-- springcloud-netflix -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<!-- springcloud-alibaba -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version>${spring-cloud-ablibaba.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<!-- 数据库相关 -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>${mybatis-plus.version}</version>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-annotation</artifactId>
<version>${mybatis-plus.version}</version>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-core</artifactId>
<version>${mybatis-plus.version}</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>${mybatis.version}</version>
</dependency>
<!-- MySQL驱动 -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql-driver.version}</version>
</dependency>
<!-- 本人的一个开源项目 主要是配合mybatisplus做一些分页的操作... -->
<dependency>
<groupId>io.github.verygoodwlk</groupId>
<artifactId>ken-page-boot-starter</artifactId>
<version>${ken-page.version}</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>${servlet.version}</version>
</dependency>
<!-- 自己的模块版本管理 -->
<dependency>
<groupId>com.ken</groupId>
<artifactId>ken_common_web</artifactId>
<version>${basic.version}</version>
</dependency>
<dependency>
<groupId>com.ken</groupId>
<artifactId>ken_config</artifactId>
<version>${basic.version}</version>
</dependency>
<dependency>
<groupId>com.ken</groupId>
<artifactId>ken_common_core</artifactId>
<version>${basic.version}</version>
</dependency>
<dependency>
<groupId>com.ken</groupId>
<artifactId>ken_business_protocol</artifactId>
<version>${basic.version}</version>
</dependency>
<dependency>
<groupId>com.ken</groupId>
<artifactId>ken_data_entity_demo</artifactId>
<version>${basic.version}</version>
</dependency>
<dependency>
<groupId>com.ken</groupId>
<artifactId>ken_data_mapper_demo</artifactId>
<version>${basic.version}</version>
</dependency>
<dependency>
<groupId>com.ken</groupId>
<artifactId>ken_common_mysql</artifactId>
<version>${basic.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<!-- 创建占位符 -->
<profiles>
<profile>
<id>dev</id>
<properties>
<ken-profile>dev</ken-profile>
<nacos-server>192.168.195.135:8848</nacos-server>
</properties>
</profile>
<profile>
<id>test</id>
<properties>
<ken-profile>test</ken-profile>
<nacos-server>192.168.195.135:8848</nacos-server>
</properties>
</profile>
<profile>
<id>prod</id>
<properties>
<ken-profile>prod</ken-profile>
<nacos-server>192.168.195.135:8848</nacos-server>
</properties>
</profile>
</profiles>
<build>
<!-- 配置resources下的所有配置文件,都会占位符生效 -->
<resources>
<resource>
<filtering>true</filtering>
<directory>src/main/resources</directory>
</resource>
</resources>
<plugins>
<!-- Maven编译插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-plugin.version}</version>
<configuration>
<source>${jdk.version}</source>
<target>${jdk.version}</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<!-- SpringBoot整合Maven的插件 -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version>
</plugin>
</plugins>
</build>
</project>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/githz/ken_framework_pom.git
git@gitee.com:githz/ken_framework_pom.git
githz
ken_framework_pom
ken_framework_pom
master

搜索帮助