|  |  |  | 
|---|
|  |  |  | </exclusion> | 
|---|
|  |  |  | </exclusions> | 
|---|
|  |  |  | </dependency> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <dependency> | 
|---|
|  |  |  | <groupId>org.springframework.boot</groupId> | 
|---|
|  |  |  | <artifactId>spring-boot-configuration-processor</artifactId> | 
|---|
|  |  |  | <optional>true</optional> | 
|---|
|  |  |  | </dependency> | 
|---|
|  |  |  | <dependency> | 
|---|
|  |  |  | <groupId>org.springframework.boot</groupId> | 
|---|
|  |  |  | <artifactId>spring-boot-devtools</artifactId> | 
|---|
|  |  |  | 
|---|
|  |  |  | <groupId>org.projectlombok</groupId> | 
|---|
|  |  |  | <artifactId>lombok</artifactId> | 
|---|
|  |  |  | </dependency> | 
|---|
|  |  |  | <!-- @Aspect @Pointcut @Around等应用 --> | 
|---|
|  |  |  | <dependency> | 
|---|
|  |  |  | <groupId>org.aspectj</groupId> | 
|---|
|  |  |  | <artifactId>aspectjweaver</artifactId> | 
|---|
|  |  |  | 
|---|
|  |  |  | <dependency> | 
|---|
|  |  |  | <groupId>com.fasterxml.jackson.dataformat</groupId> | 
|---|
|  |  |  | <artifactId>jackson-dataformat-yaml</artifactId> | 
|---|
|  |  |  | <exclusions> | 
|---|
|  |  |  | <exclusion> | 
|---|
|  |  |  | <groupId>*</groupId> | 
|---|
|  |  |  | <artifactId>*</artifactId> | 
|---|
|  |  |  | </exclusion> | 
|---|
|  |  |  | </exclusions> | 
|---|
|  |  |  | </dependency> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!-- api在线文档  https://springdoc.org/#modules--> | 
|---|
|  |  |  | 
|---|
|  |  |  | <artifactId>springdoc-openapi-security</artifactId> | 
|---|
|  |  |  | </dependency> | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!--mysql驱动--> | 
|---|
|  |  |  | <dependency> | 
|---|
|  |  |  | <groupId>com.mysql</groupId> | 
|---|
|  |  |  | 
|---|
|  |  |  | <dependency> | 
|---|
|  |  |  | <groupId>com.alibaba</groupId> | 
|---|
|  |  |  | <artifactId>druid-spring-boot-starter</artifactId> | 
|---|
|  |  |  | <version>1.2.20</version> | 
|---|
|  |  |  | </dependency> | 
|---|
|  |  |  | <!--mybatis-plus-spring-boot--> | 
|---|
|  |  |  | <dependency> | 
|---|
|  |  |  | <groupId>com.baomidou</groupId> | 
|---|
|  |  |  | <artifactId>mybatis-plus-boot-starter</artifactId> | 
|---|
|  |  |  | <version>3.5.3.2</version> | 
|---|
|  |  |  | </dependency> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!-- 阿里fastjson --> | 
|---|
|  |  |  | <dependency> | 
|---|
|  |  |  | <groupId>cglib</groupId> | 
|---|
|  |  |  | <artifactId>cglib</artifactId> | 
|---|
|  |  |  | </dependency> | 
|---|
|  |  |  | <dependency> | 
|---|
|  |  |  | <groupId>com.alibaba.fastjson2</groupId> | 
|---|
|  |  |  | <artifactId>fastjson2</artifactId> | 
|---|
|  |  |  | <version>2.0.40</version> | 
|---|
|  |  |  | </dependency> | 
|---|
|  |  |  | <dependency> | 
|---|
|  |  |  | <groupId>com.alibaba.fastjson2</groupId> | 
|---|
|  |  |  | <artifactId>fastjson2-extension-spring6</artifactId> | 
|---|
|  |  |  | <version>2.0.40</version> | 
|---|
|  |  |  | </dependency> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!-- jdom2 --> | 
|---|
|  |  |  | 
|---|
|  |  |  | <artifactId>jdom2</artifactId> | 
|---|
|  |  |  | </dependency> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!-- apache mina --> | 
|---|
|  |  |  | <dependency> | 
|---|
|  |  |  | <groupId>org.apache.mina</groupId> | 
|---|
|  |  |  | <artifactId>mina-core</artifactId> | 
|---|
|  |  |  | <version>2.2.2</version> | 
|---|
|  |  |  | </dependency> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!-- quartz --> | 
|---|
|  |  |  | <dependency> | 
|---|
|  |  |  | <groupId>org.quartz-scheduler</groupId> | 
|---|
|  |  |  | <artifactId>quartz</artifactId> | 
|---|
|  |  |  | </dependency> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!-- 获得系统信息 --> | 
|---|
|  |  |  | <dependency> | 
|---|
|  |  |  | <groupId>com.github.oshi</groupId> | 
|---|
|  |  |  | <artifactId>oshi-core</artifactId> | 
|---|
|  |  |  | <version>6.6.2</version> | 
|---|
|  |  |  | </dependency> | 
|---|
|  |  |  | <dependency> | 
|---|
|  |  |  | <groupId>net.java.dev.jna</groupId> | 
|---|
|  |  |  | <artifactId>jna</artifactId> | 
|---|
|  |  |  | <version>5.12.1</version> | 
|---|
|  |  |  | </dependency> | 
|---|
|  |  |  | <dependency> | 
|---|
|  |  |  | <groupId>net.java.dev.jna</groupId> | 
|---|
|  |  |  | <artifactId>jna-platform</artifactId> | 
|---|
|  |  |  | <version>5.12.1</version> | 
|---|
|  |  |  | </dependency> | 
|---|
|  |  |  | <!-- 类反射 --> | 
|---|
|  |  |  | <dependency> | 
|---|
|  |  |  | <groupId>org.reflections</groupId> | 
|---|
|  |  |  | <artifactId>reflections</artifactId> | 
|---|
|  |  |  | <version>0.10.2</version> | 
|---|
|  |  |  | </dependency> | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!-- Hutool是一个小而全的Java工具类库(https://github.com/dromara/hutool)  --> | 
|---|
|  |  |  | <dependency> | 
|---|
|  |  |  | <groupId>cn.hutool</groupId> | 
|---|
|  |  |  | <artifactId>hutool-all</artifactId> | 
|---|
|  |  |  | </dependency> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <dependency> | 
|---|
|  |  |  | <groupId>org.apache.logging.log4j</groupId> | 
|---|
|  |  |  | <artifactId>log4j-slf4j-impl</artifactId> | 
|---|
|  |  |  | <version>2.17.2</version> | 
|---|
|  |  |  | </dependency> | 
|---|
|  |  |  | </dependencies> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <build> | 
|---|
|  |  |  | <plugins> | 
|---|
|  |  |  | <plugin> | 
|---|
|  |  |  | <!-- spring boot提供的maven打包插件 --> | 
|---|
|  |  |  | <groupId>org.springframework.boot</groupId> | 
|---|
|  |  |  | <artifactId>spring-boot-maven-plugin</artifactId> | 
|---|
|  |  |  | <!-- 该插件不会将项目中引入的依赖打进最终的 Jar 文件 --> | 
|---|
|  |  |  | <groupId>org.apache.maven.plugins</groupId> | 
|---|
|  |  |  | <artifactId>maven-jar-plugin</artifactId> | 
|---|
|  |  |  | <configuration> | 
|---|
|  |  |  | <archive> | 
|---|
|  |  |  | <!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 --> | 
|---|
|  |  |  | <addMavenDescriptor>false</addMavenDescriptor> | 
|---|
|  |  |  | <!-- 这部分可有可无,加上的话则直接生成可运行jar包 | 
|---|
|  |  |  | <manifest> | 
|---|
|  |  |  | <mainClass>com.dy.Main</mainClass> | 
|---|
|  |  |  | <useUniqueVersions>false</useUniqueVersions> | 
|---|
|  |  |  | <addClasspath>true</addClasspath> | 
|---|
|  |  |  | <classpathPrefix>lib/</classpathPrefix> | 
|---|
|  |  |  | </manifest> | 
|---|
|  |  |  | --> | 
|---|
|  |  |  | <!-- manifestEntries的作用是指定本地(自己下载的lib下的)jar包添加到MANIFEST.MF文件中去 | 
|---|
|  |  |  | <manifestEntries> | 
|---|
|  |  |  | <Class-Path>.lib/alipay-sdk.java.jar</Class-Path> | 
|---|
|  |  |  | </manifestEntries> | 
|---|
|  |  |  | --> | 
|---|
|  |  |  | </archive> | 
|---|
|  |  |  | <!-- 排除某个文件 | 
|---|
|  |  |  | <excludes> | 
|---|
|  |  |  | <exclude> | 
|---|
|  |  |  | <groupId>org.projectlombok</groupId> | 
|---|
|  |  |  | <artifactId>lombok</artifactId> | 
|---|
|  |  |  | </exclude> | 
|---|
|  |  |  | <exclude>com/dy/App.class</exclude> | 
|---|
|  |  |  | </excludes> | 
|---|
|  |  |  | --> | 
|---|
|  |  |  | <!-- 可执行jar进行命名。这样会打包成两个jar包,不会对普通jar重新命名。 | 
|---|
|  |  |  | <classifier>exec</classifier> | 
|---|
|  |  |  | --> | 
|---|
|  |  |  | </configuration> | 
|---|
|  |  |  | </plugin> | 
|---|
|  |  |  | <plugin> | 
|---|
|  |  |  | <!-- 当项目中依赖比较多时,我们可以借助 maven-dependency-plugin 插件自动帮我们下载依赖的 Jar 文件,推荐将该插件绑定到package生命周期上 --> | 
|---|
|  |  |  | <groupId>org.apache.maven.plugins</groupId> | 
|---|
|  |  |  | <artifactId>maven-dependency-plugin</artifactId> | 
|---|
|  |  |  | <executions> | 
|---|
|  |  |  | <execution> | 
|---|
|  |  |  | <!-- 绑定生命周期 --> | 
|---|
|  |  |  | <phase>package</phase> | 
|---|
|  |  |  | <goals> | 
|---|
|  |  |  | <goal>copy-dependencies</goal> | 
|---|
|  |  |  | </goals> | 
|---|
|  |  |  | <!-- 设置依赖的存放路径 --> | 
|---|
|  |  |  | <configuration> | 
|---|
|  |  |  | <outputDirectory>${project.build.directory}/lib</outputDirectory> | 
|---|
|  |  |  | </configuration> | 
|---|
|  |  |  | </execution> | 
|---|
|  |  |  | </executions> | 
|---|
|  |  |  | </plugin> | 
|---|
|  |  |  | <plugin> | 
|---|
|  |  |  | <!-- 设置java编译版本,运行环境版本 --> | 
|---|
|  |  |  | <groupId>org.apache.maven.plugins</groupId> | 
|---|
|  |  |  | <artifactId>maven-compiler-plugin</artifactId> | 
|---|
|  |  |  | <!-- source: 源代码编译版本;target: 目标平台编译版本;encoding: 字符集编码。 --> | 
|---|
|  |  |  | <configuration> | 
|---|
|  |  |  | <source>${java.version}</source> | 
|---|
|  |  |  | <target>${java.version}</target> | 
|---|
|  |  |  | <encoding>${encoding}</encoding> | 
|---|
|  |  |  | </configuration> | 
|---|
|  |  |  | </plugin> | 
|---|
|  |  |  | <plugin> | 
|---|
|  |  |  | <!-- 解决资源文件的编码问题 --> | 
|---|
|  |  |  | <groupId>org.apache.maven.plugins</groupId> | 
|---|
|  |  |  | <artifactId>maven-resources-plugin</artifactId> | 
|---|
|  |  |  | <configuration> | 
|---|
|  |  |  | <encoding>${encoding}</encoding> | 
|---|
|  |  |  | </configuration> | 
|---|
|  |  |  | </plugin> | 
|---|
|  |  |  | <plugin> | 
|---|
|  |  |  | 
|---|
|  |  |  | </configuration> | 
|---|
|  |  |  | </plugin> | 
|---|
|  |  |  | <plugin> | 
|---|
|  |  |  | <!-- 强制设定 java编译版本,运行环境版本 --> | 
|---|
|  |  |  | <groupId>org.apache.maven.plugins</groupId> | 
|---|
|  |  |  | <artifactId>maven-compiler-plugin</artifactId> | 
|---|
|  |  |  | <!-- 下面解决:当进行Maven Lifecycle package时报错:Could not find artifact org.apache.mina:mina-core:bundle:2.2.1 in maven (https://repo1.maven.org/maven2/)--> | 
|---|
|  |  |  | <groupId>org.apache.felix</groupId> | 
|---|
|  |  |  | <artifactId>maven-bundle-plugin</artifactId> | 
|---|
|  |  |  | <extensions>true</extensions> | 
|---|
|  |  |  | </plugin> | 
|---|
|  |  |  | </plugins> | 
|---|
|  |  |  | </build> | 
|---|