174 lines
6.5 KiB
XML
174 lines
6.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<!--
|
||
Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
|
||
|
||
Licensed under the Apache License, Version 2.0 (the "License");
|
||
you may not use this file except in compliance with the License.
|
||
You may obtain a copy of the License at
|
||
|
||
http://www.apache.org/licenses/LICENSE-2.0
|
||
|
||
Unless required by applicable law or agreed to in writing, software
|
||
distributed under the License is distributed on an "AS IS" BASIS,
|
||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
See the License for the specific language governing permissions and
|
||
limitations under the License.
|
||
-->
|
||
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||
<modelVersion>4.0.0</modelVersion>
|
||
|
||
<groupId>top.charles7c</groupId>
|
||
<artifactId>continew-admin</artifactId>
|
||
<version>${revision}</version>
|
||
<packaging>pom</packaging>
|
||
|
||
<name>${project.artifactId}</name>
|
||
<description>ContiNew-Admin (incubating) 中后台管理框架,Continue New Admin,持续以最新流行技术栈构建。</description>
|
||
<url>https://github.com/Charles7c/continew-admin</url>
|
||
|
||
<modules>
|
||
<module>continew-admin-webapi</module>
|
||
<module>continew-admin-system</module>
|
||
<module>continew-admin-common</module>
|
||
</modules>
|
||
|
||
<parent>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-parent</artifactId>
|
||
<version>2.7.6</version>
|
||
<relativePath/> <!-- lookup parent from repository -->
|
||
</parent>
|
||
|
||
<properties>
|
||
<!-- ### 基础环境相关 ### -->
|
||
<revision>0.0.1-SNAPSHOT</revision>
|
||
<java.version>1.8</java.version>
|
||
<spotless.version>2.28.0</spotless.version>
|
||
<maven.compiler.source>8</maven.compiler.source>
|
||
<maven.compiler.target>8</maven.compiler.target>
|
||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||
</properties>
|
||
|
||
<!-- 全局依赖版本管理 -->
|
||
<dependencyManagement>
|
||
<dependencies>
|
||
<!-- ################ 本项目子模块相关 ################ -->
|
||
<!-- API 模块(存放 Controller 层代码,打包部署的模块) -->
|
||
<dependency>
|
||
<groupId>top.charles7c</groupId>
|
||
<artifactId>continew-admin-webapi</artifactId>
|
||
<version>${project.version}</version>
|
||
</dependency>
|
||
|
||
<!-- 系统管理模块(存放系统管理模块相关功能,例如:部门管理、角色管理、用户管理等) -->
|
||
<dependency>
|
||
<groupId>top.charles7c</groupId>
|
||
<artifactId>continew-admin-system</artifactId>
|
||
<version>${project.version}</version>
|
||
</dependency>
|
||
|
||
<!-- 公共模块(存放公共工具类,公共配置等) -->
|
||
<dependency>
|
||
<groupId>top.charles7c</groupId>
|
||
<artifactId>continew-admin-common</artifactId>
|
||
<version>${project.version}</version>
|
||
</dependency>
|
||
</dependencies>
|
||
</dependencyManagement>
|
||
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-devtools</artifactId>
|
||
<scope>runtime</scope>
|
||
<optional>true</optional>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-configuration-processor</artifactId>
|
||
<optional>true</optional>
|
||
</dependency>
|
||
|
||
<!-- Lombok(在 Java 开发过程中用注解的方式,简化了 JavaBean 的编写,避免了冗余和样板式代码,让编写的类更加简洁) -->
|
||
<dependency>
|
||
<groupId>org.projectlombok</groupId>
|
||
<artifactId>lombok</artifactId>
|
||
<optional>true</optional> <!-- 表示依赖不会被传递 -->
|
||
</dependency>
|
||
</dependencies>
|
||
|
||
<build>
|
||
<plugins>
|
||
<!-- 代码等格式化插件 -->
|
||
<plugin>
|
||
<groupId>com.diffplug.spotless</groupId>
|
||
<artifactId>spotless-maven-plugin</artifactId>
|
||
<version>${spotless.version}</version>
|
||
<executions>
|
||
<execution>
|
||
<phase>compile</phase>
|
||
<goals>
|
||
<goal>apply</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
<configuration>
|
||
<java>
|
||
<importOrder>
|
||
<order>java,javax,org,com,top.charles7c,</order>
|
||
</importOrder>
|
||
<removeUnusedImports/>
|
||
<eclipse>
|
||
<file>code-style/code-formatter.xml</file>
|
||
</eclipse>
|
||
<licenseHeader>
|
||
<file>code-style/license-header</file>
|
||
</licenseHeader>
|
||
</java>
|
||
</configuration>
|
||
</plugin>
|
||
</plugins>
|
||
|
||
<resources>
|
||
<resource>
|
||
<directory>src/main/resources</directory>
|
||
<includes>
|
||
<include>**/**</include>
|
||
</includes>
|
||
<!-- 启用过滤,即替换对应资源中的变量 -->
|
||
<filtering>true</filtering>
|
||
</resource>
|
||
</resources>
|
||
</build>
|
||
|
||
<profiles>
|
||
<profile>
|
||
<id>dev</id>
|
||
<!-- 自定义属性配置 -->
|
||
<properties>
|
||
<!-- Spring Boot 启用环境 -->
|
||
<profiles.active>dev</profiles.active>
|
||
<!-- 日志级别 -->
|
||
<logging.level>DEBUG</logging.level>
|
||
<!-- 日志存储位置 -->
|
||
<logging.file.path>./logs</logging.file.path>
|
||
</properties>
|
||
<activation>
|
||
<!-- 默认启用 -->
|
||
<activeByDefault>true</activeByDefault>
|
||
</activation>
|
||
</profile>
|
||
<profile>
|
||
<id>prod</id>
|
||
<properties>
|
||
<profiles.active>prod</profiles.active>
|
||
<logging.level>INFO</logging.level>
|
||
<logging.file.path>./logs</logging.file.path>
|
||
</properties>
|
||
</profile>
|
||
</profiles>
|
||
</project>
|