mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-14 19:27:53 +00:00
383 lines
12 KiB
XML
383 lines
12 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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||
<modelVersion>4.0.0</modelVersion>
|
||
|
||
<parent>
|
||
<groupId>com.bytedesk</groupId>
|
||
<artifactId>modules</artifactId>
|
||
<version>${revision}</version>
|
||
</parent>
|
||
|
||
<artifactId>bytedesk-module-core</artifactId>
|
||
|
||
<name>bytedesk-module-core</name>
|
||
<description>https://ai.bytedesk.com</description>
|
||
|
||
<properties>
|
||
<jsonwebtoken.version>0.12.5</jsonwebtoken.version>
|
||
<protobuf.version>3.25.5</protobuf.version>
|
||
<os-maven-plugin.version>1.7.1</os-maven-plugin.version>
|
||
</properties>
|
||
|
||
<dependencies>
|
||
|
||
<!--
|
||
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-websocket -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-websocket</artifactId>
|
||
<scope>provided</scope>
|
||
</dependency>
|
||
|
||
<!--
|
||
https://mvnrepository.com/artifact/org.springframework.security/spring-security-messaging -->
|
||
<dependency>
|
||
<groupId>org.springframework.security</groupId>
|
||
<artifactId>spring-security-messaging</artifactId>
|
||
<scope>provided</scope>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-oauth2-resource-server</artifactId>
|
||
<scope>provided</scope>
|
||
</dependency>
|
||
|
||
<!-- spring statemachine - 迁移到 cola statemachine -->
|
||
<!-- https://github.com/spring-projects/spring-statemachine -->
|
||
<!--
|
||
https://mvnrepository.com/artifact/org.springframework.statemachine/spring-statemachine-starter -->
|
||
<dependency>
|
||
<groupId>org.springframework.statemachine</groupId>
|
||
<artifactId>spring-statemachine-starter</artifactId>
|
||
<version>4.0.0</version>
|
||
<scope>provided</scope>
|
||
</dependency>
|
||
<!--
|
||
https://mvnrepository.com/artifact/org.springframework.statemachine/spring-statemachine-data-jpa -->
|
||
<!-- <dependency>
|
||
<groupId>org.springframework.statemachine</groupId>
|
||
<artifactId>spring-statemachine-data-jpa</artifactId>
|
||
<version>4.0.0</version>
|
||
</dependency> -->
|
||
<!--
|
||
https://mvnrepository.com/artifact/org.springframework.statemachine/spring-statemachine-data-redis -->
|
||
<!-- <dependency>
|
||
<groupId>org.springframework.statemachine</groupId>
|
||
<artifactId>spring-statemachine-data-redis</artifactId>
|
||
<version>4.0.0</version>
|
||
</dependency> -->
|
||
<!-- 替换上面的 spring-statemachine
|
||
https://mvnrepository.com/artifact/com.alibaba.cola/cola-component-statemachine -->
|
||
<dependency>
|
||
<groupId>com.alibaba.cola</groupId>
|
||
<artifactId>cola-component-statemachine</artifactId>
|
||
<version>5.0.0</version>
|
||
<scope>provided</scope>
|
||
</dependency>
|
||
|
||
<!-- https://mvnrepository.com/artifact/io.netty/netty-all -->
|
||
<dependency>
|
||
<groupId>io.netty</groupId>
|
||
<artifactId>netty-all</artifactId>
|
||
<version>4.1.106.Final</version>
|
||
<scope>provided</scope>
|
||
</dependency>
|
||
|
||
<!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
|
||
<dependency>
|
||
<groupId>com.google.code.gson</groupId>
|
||
<artifactId>gson</artifactId>
|
||
<version>2.10.1</version>
|
||
<scope>provided</scope>
|
||
</dependency>
|
||
|
||
<!-- https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java -->
|
||
<dependency>
|
||
<groupId>com.google.protobuf</groupId>
|
||
<artifactId>protobuf-java</artifactId>
|
||
<version>${protobuf.version}</version>
|
||
</dependency>
|
||
|
||
<!-- https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java-util -->
|
||
<dependency>
|
||
<groupId>com.google.protobuf</groupId>
|
||
<artifactId>protobuf-java-util</artifactId>
|
||
<version>${protobuf.version}</version>
|
||
</dependency>
|
||
|
||
<!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
|
||
<!-- https://wizardforcel.gitbooks.io/guava-tutorial/content/1.html -->
|
||
<!-- https://github.com/google/guava/wiki -->
|
||
<dependency>
|
||
<groupId>com.google.guava</groupId>
|
||
<artifactId>guava</artifactId>
|
||
<version>33.3.1-jre</version>
|
||
</dependency>
|
||
|
||
<!--
|
||
https://mvnrepository.com/artifact/com.googlecode.protobuf-java-format/protobuf-java-format -->
|
||
<dependency>
|
||
<groupId>com.googlecode.protobuf-java-format</groupId>
|
||
<artifactId>protobuf-java-format</artifactId>
|
||
<version>1.4</version>
|
||
</dependency>
|
||
|
||
<!-- 分词、词频分析 -->
|
||
<!-- https://mvnrepository.com/artifact/org.ansj/ansj_seg -->
|
||
<!-- https://github.com/NLPchina/ansj_seg -->
|
||
<!-- https://mvnrepository.com/artifact/org.nlpcn/nlp-lang -->
|
||
<!-- <dependency>
|
||
<groupId>org.ansj</groupId>
|
||
<artifactId>ansj_seg</artifactId>
|
||
<version>5.1.6</version>
|
||
</dependency> -->
|
||
|
||
<!-- 汉字转拼音 -->
|
||
<!-- https://github.com/houbb/pinyin -->
|
||
<!-- https://mvnrepository.com/artifact/com.github.houbb/pinyin -->
|
||
<dependency>
|
||
<groupId>com.github.houbb</groupId>
|
||
<artifactId>pinyin</artifactId>
|
||
<version>0.4.0</version>
|
||
</dependency>
|
||
|
||
<!-- 中文分词 -->
|
||
<!-- https://github.com/houbb/segment -->
|
||
<!-- https://mvnrepository.com/artifact/com.github.houbb/segment -->
|
||
<dependency>
|
||
<groupId>com.github.houbb</groupId>
|
||
<artifactId>segment</artifactId>
|
||
<version>0.3.1</version>
|
||
</dependency>
|
||
|
||
<!-- 敏感词过滤 -->
|
||
<!-- https://github.com/houbb/sensitive-word -->
|
||
<!-- https://mvnrepository.com/artifact/com.github.houbb/sensitive-word -->
|
||
<!-- https://mp.weixin.qq.com/s/7wSy0PuJLTudEo9gTY5s5w -->
|
||
<dependency>
|
||
<groupId>com.github.houbb</groupId>
|
||
<artifactId>sensitive-word</artifactId>
|
||
<version>0.25.0</version>
|
||
</dependency>
|
||
|
||
<!-- Required for Hibernate5Module to work with JPA annotations -->
|
||
<dependency>
|
||
<groupId>jakarta.persistence</groupId>
|
||
<artifactId>jakarta.persistence-api</artifactId>
|
||
<version>3.2.0</version>
|
||
</dependency>
|
||
|
||
<!-- TODO: Rate Limiter -->
|
||
<!-- https://bucket4j.com/8.14.0/toc.html -->
|
||
<!-- https://github.com/bucket4j/bucket4j -->
|
||
<!-- https://mvnrepository.com/artifact/com.bucket4j/bucket4j_jdk17-core -->
|
||
<!-- <dependency>
|
||
<groupId>com.bucket4j</groupId>
|
||
<artifactId>bucket4j_jdk17-core</artifactId>
|
||
<version>8.14.0</version>
|
||
</dependency> -->
|
||
|
||
<!-- TODO: DDos Protection -->
|
||
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-collections4 -->
|
||
<!-- <dependency>
|
||
<groupId>org.apache.commons</groupId>
|
||
<artifactId>commons-collections4</artifactId>
|
||
<version>4.5.0-M3</version>
|
||
</dependency> -->
|
||
|
||
|
||
<!-- ////////////////////// 推送 /////////////////////////////////// -->
|
||
|
||
|
||
<!-- apple push -->
|
||
<!-- https://github.com/jchambers/pushy -->
|
||
<dependency>
|
||
<groupId>com.eatthepath</groupId>
|
||
<artifactId>pushy</artifactId>
|
||
<version>0.15.4</version>
|
||
</dependency>
|
||
|
||
<!-- https://codelabs.developers.google.com/codelabs/push-notifications#0 -->
|
||
<!-- https://github.com/web-push-libs/webpush-java -->
|
||
<!-- web push -->
|
||
<dependency>
|
||
<groupId>nl.martijndwars</groupId>
|
||
<artifactId>web-push</artifactId>
|
||
<version>5.1.1</version>
|
||
</dependency>
|
||
|
||
<!-- web push 依赖 bouncycastle-->
|
||
<!-- https://search.maven.org/artifact/org.bouncycastle/bcprov-jdk15on/1.70/jar -->
|
||
<dependency>
|
||
<groupId>org.bouncycastle</groupId>
|
||
<artifactId>bcprov-jdk15on</artifactId>
|
||
<version>1.70</version>
|
||
</dependency>
|
||
|
||
<!--小米推送,FIXME:
|
||
找不到,只能将jar放到本地.m2相应目录中-->
|
||
<!-- <dependency>
|
||
<groupId>com.xiaomi</groupId>
|
||
<artifactId>xpush</artifactId>
|
||
<version>1.0.2</version>
|
||
</dependency> -->
|
||
|
||
<!-- ////////////////////// 推送 /////////////////////////////////// -->
|
||
|
||
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents.client5/httpclient5 -->
|
||
<dependency>
|
||
<groupId>org.apache.httpcomponents.client5</groupId>
|
||
<artifactId>httpclient5</artifactId>
|
||
<version>5.4.1</version>
|
||
</dependency>
|
||
|
||
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents.core5/httpcore5 -->
|
||
<dependency>
|
||
<groupId>org.apache.httpcomponents.core5</groupId>
|
||
<artifactId>httpcore5</artifactId>
|
||
<version>5.2.4</version>
|
||
</dependency>
|
||
|
||
<!-- https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-api -->
|
||
<dependency>
|
||
<groupId>io.jsonwebtoken</groupId>
|
||
<artifactId>jjwt-api</artifactId>
|
||
<version>${jsonwebtoken.version}</version>
|
||
</dependency>
|
||
|
||
<!-- https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-impl -->
|
||
<dependency>
|
||
<groupId>io.jsonwebtoken</groupId>
|
||
<artifactId>jjwt-impl</artifactId>
|
||
<version>${jsonwebtoken.version}</version>
|
||
<scope>runtime</scope>
|
||
</dependency>
|
||
|
||
<!-- https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-jackson -->
|
||
<dependency>
|
||
<groupId>io.jsonwebtoken</groupId>
|
||
<artifactId>jjwt-jackson</artifactId>
|
||
<version>${jsonwebtoken.version}</version>
|
||
<scope>runtime</scope>
|
||
</dependency>
|
||
|
||
<!-- ip2region -->
|
||
<!-- https://github.com/lionsoul2014/ip2region -->
|
||
<!-- https://mvnrepository.com/artifact/org.lionsoul/ip2region -->
|
||
<dependency>
|
||
<groupId>org.lionsoul</groupId>
|
||
<artifactId>ip2region</artifactId>
|
||
<version>2.7.0</version>
|
||
</dependency>
|
||
|
||
<!-- 身份证/手机号脱敏 -->
|
||
<!-- https://doc.hutool.cn/pages/IdcardUtil/ -->
|
||
<!-- https://mvnrepository.com/artifact/cn.hutool/hutool-core -->
|
||
<!-- <dependency>
|
||
<groupId>cn.hutool</groupId>
|
||
<artifactId>hutool-core</artifactId>
|
||
<version>5.8.36</version>
|
||
</dependency> -->
|
||
|
||
|
||
<!-- 上传图片到阿里云OSS -->
|
||
<!-- https://mvnrepository.com/artifact/com.aliyun.oss/aliyun-sdk-oss -->
|
||
<dependency>
|
||
<groupId>com.aliyun.oss</groupId>
|
||
<artifactId>aliyun-sdk-oss</artifactId>
|
||
<version>3.17.4</version>
|
||
<exclusions>
|
||
<exclusion>
|
||
<groupId>commons-logging</groupId>
|
||
<artifactId>commons-logging</artifactId>
|
||
</exclusion>
|
||
</exclusions>
|
||
</dependency>
|
||
|
||
<!--腾讯云对象存储-->
|
||
<!-- https://mvnrepository.com/artifact/com.qcloud/cos_api -->
|
||
<dependency>
|
||
<groupId>com.qcloud</groupId>
|
||
<artifactId>cos_api</artifactId>
|
||
<version>5.6.205</version>
|
||
<exclusions>
|
||
<exclusion>
|
||
<groupId>commons-logging</groupId>
|
||
<artifactId>commons-logging</artifactId>
|
||
</exclusion>
|
||
</exclusions>
|
||
</dependency>
|
||
|
||
</dependencies>
|
||
|
||
<build>
|
||
<extensions>
|
||
<!-- 用于动态检测操作系统类型 -->
|
||
<extension>
|
||
<groupId>kr.motd.maven</groupId>
|
||
<artifactId>os-maven-plugin</artifactId>
|
||
<version>${os-maven-plugin.version}</version>
|
||
</extension>
|
||
</extensions>
|
||
<plugins>
|
||
<!--自动生成protobuf java类-->
|
||
<plugin>
|
||
<groupId>org.xolstice.maven.plugins</groupId>
|
||
<artifactId>protobuf-maven-plugin</artifactId>
|
||
<version>0.6.1</version>
|
||
<configuration>
|
||
<protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
|
||
<protoSourceRoot>${project.basedir}/src/main/proto</protoSourceRoot>
|
||
<outputDirectory>${project.build.directory}/generated-sources/protobuf/java</outputDirectory>
|
||
<clearOutputDirectory>false</clearOutputDirectory>
|
||
</configuration>
|
||
<executions>
|
||
<!-- 生成java类 -->
|
||
<execution>
|
||
<goals>
|
||
<goal>compile</goal>
|
||
<goal>test-compile</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.codehaus.mojo</groupId>
|
||
<artifactId>build-helper-maven-plugin</artifactId>
|
||
<executions>
|
||
<execution>
|
||
<id>add-protobuf-generate-sources</id>
|
||
<phase>generate-sources</phase>
|
||
<goals>
|
||
<goal>add-source</goal>
|
||
</goals>
|
||
<configuration>
|
||
<sources>
|
||
<!--<source>target/generated-sources/protobuf/java</source>-->
|
||
<source>src/main/java</source>
|
||
</sources>
|
||
</configuration>
|
||
</execution>
|
||
<execution>
|
||
<id>add-protobuf-generate-test-sources</id>
|
||
<phase>generate-sources</phase>
|
||
<goals>
|
||
<goal>add-test-source</goal>
|
||
</goals>
|
||
<configuration>
|
||
<sources>
|
||
<source>target/generated-test-sources/protobuf/java</source>
|
||
</sources>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
|
||
</plugins>
|
||
</build>
|
||
|
||
|
||
</project> |