- 在plugins父模块中添加定时任务子模块依赖 - 在web启动模块中添加定时任务模块依赖 - 在主启动类中启用@EnableCoderJob注解 - 完成定时任务插件与框架的完整集成
105 lines
3.8 KiB
XML
105 lines
3.8 KiB
XML
<?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>
|
|
<parent>
|
|
<groupId>org.leocoder.thin</groupId>
|
|
<artifactId>coder-common-thin-backend</artifactId>
|
|
<version>${revision}</version>
|
|
</parent>
|
|
|
|
|
|
<name>coder-common-thin-web</name>
|
|
<artifactId>coder-common-thin-web</artifactId>
|
|
<description>入口项目,负责打包</description>
|
|
|
|
<dependencies>
|
|
<!-- SpringBoot Web容器 -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
<!-- Sa-Token模块和系统管理模块 -->
|
|
<dependency>
|
|
<groupId>org.leocoder.thin</groupId>
|
|
<artifactId>coder-common-thin-system</artifactId>
|
|
<version>${revision}</version>
|
|
</dependency>
|
|
<!-- SpringDoc OpenAPI 3.0 -->
|
|
<dependency>
|
|
<groupId>org.springdoc</groupId>
|
|
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
|
</dependency>
|
|
<!-- OSS对象存储模块 -->
|
|
<dependency>
|
|
<groupId>org.leocoder.thin</groupId>
|
|
<artifactId>coder-common-thin-oss</artifactId>
|
|
<version>${revision}</version>
|
|
</dependency>
|
|
<!-- 字典管理模块 -->
|
|
<dependency>
|
|
<groupId>org.leocoder.thin</groupId>
|
|
<artifactId>coder-common-thin-dict</artifactId>
|
|
<version>${revision}</version>
|
|
</dependency>
|
|
<!-- 定时任务 -->
|
|
<dependency>
|
|
<groupId>org.leocoder.thin</groupId>
|
|
<artifactId>coder-common-thin-job</artifactId>
|
|
<version>${revision}</version>
|
|
</dependency>
|
|
<!-- 代码生成器 -->
|
|
<!-- <dependency> -->
|
|
<!-- <groupId>org.leocoder.thin</groupId> -->
|
|
<!-- <artifactId>coder-common-thin-generator</artifactId> -->
|
|
<!-- <version>${revision}</version> -->
|
|
<!-- </dependency> -->
|
|
<!-- 监控模块 -->
|
|
<!-- <dependency> -->
|
|
<!-- <groupId>org.leocoder.thin</groupId> -->
|
|
<!-- <artifactId>coder-common-thin-monitor</artifactId> -->
|
|
<!-- <version>${revision}</version> -->
|
|
<!-- </dependency> -->
|
|
<!-- 热榜API模块 -->
|
|
<!-- <dependency> -->
|
|
<!-- <groupId>org.leocoder.thin</groupId> -->
|
|
<!-- <artifactId>coder-hotlist-api</artifactId> -->
|
|
<!-- <version>${revision}</version> -->
|
|
<!-- </dependency> -->
|
|
</dependencies>
|
|
|
|
<build>
|
|
<!-- 指定打包名字 -->
|
|
<finalName>coder-admin</finalName>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<version>${springboot.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<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>
|
|
<includes>
|
|
<include>**/*</include>
|
|
</includes>
|
|
</resource>
|
|
</resources>
|
|
</build>
|
|
|
|
</project> |