| <?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> | 
|         <artifactId>pipIrr-parent</artifactId> | 
|         <groupId>com.dy</groupId> | 
|         <version>1.0.0</version> | 
|         <relativePath>../pom.xml</relativePath> | 
|     </parent> | 
|   | 
|     <packaging>jar</packaging> | 
|     <artifactId>pipIrr-global</artifactId> | 
|     <name>pipIrr-global</name> | 
|     <description>此模块为项目共用模块,提供共用的pojo和mapper等</description> | 
|   | 
|     <dependencies> | 
|         <dependency> | 
|             <groupId>com.dy</groupId> | 
|             <artifactId>pipIrr-common</artifactId> | 
|             <version>1.0.0</version> | 
|             <scope>provided</scope> | 
|             <!-- optional=true,不传递依赖,即pipIrr-web-base依赖pipIrr-global,但不会传递依赖到pipIrr-common --> | 
|             <optional>true</optional> | 
|             <exclusions> | 
|                 <exclusion> | 
|                     <!-- 排除掉pipIrr-common的所有依赖,本模块自己定义依赖 --> | 
|                     <groupId>*</groupId> | 
|                     <artifactId>*</artifactId> | 
|                 </exclusion> | 
|             </exclusions> | 
|         </dependency> | 
|   | 
|   | 
|         <!-- 输入参数据验证 --> | 
|         <dependency> | 
|             <groupId>org.springframework.boot</groupId> | 
|             <artifactId>spring-boot-starter-validation</artifactId> | 
|         </dependency> | 
|         <!-- api在线文档  https://springdoc.org/#modules--> | 
|         <dependency> | 
|             <groupId>org.springdoc</groupId> | 
|             <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId> | 
|         </dependency> | 
|         <dependency> | 
|             <groupId>org.springdoc</groupId> | 
|             <artifactId>springdoc-openapi-starter-webmvc-api</artifactId> | 
|         </dependency> | 
|   | 
|         <!-- lombok --> | 
|         <dependency> | 
|             <groupId>org.projectlombok</groupId> | 
|             <artifactId>lombok</artifactId> | 
|             <version>1.18.28</version> | 
|         </dependency> | 
|   | 
|         <dependency> | 
|             <groupId>com.baomidou</groupId> | 
|             <artifactId>mybatis-plus-boot-starter</artifactId> | 
|             <version>3.5.3.2</version> | 
|         </dependency> | 
|         <!-- 阿里fastjson --> | 
|         <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> | 
|   | 
|         <!-- vo po转换 全局没有下面依赖,所以此处必须加版本号--> | 
|         <dependency> | 
|             <groupId>org.mapstruct</groupId> | 
|             <artifactId>mapstruct</artifactId> | 
|             <version>1.5.5.Final</version> | 
|             <scope>compile</scope> | 
|         </dependency> | 
|         <dependency> | 
|             <groupId>org.mapstruct</groupId> | 
|             <artifactId>mapstruct-processor</artifactId> | 
|             <version>1.5.5.Final</version> | 
|             <scope>compile</scope> | 
|         </dependency> | 
|     </dependencies> | 
|   | 
|   | 
|     <build> | 
|         <plugins> | 
|             <plugin> | 
|                 <!-- 该插件不会将项目中引入的依赖打进最终的 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>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> | 
|                 <!-- maven里执行测试用例的插件 --> | 
|                 <groupId>org.apache.maven.plugins</groupId> | 
|                 <artifactId>maven-surefire-plugin</artifactId> | 
|                 <configuration> | 
|                     <skipTests>true</skipTests> | 
|                 </configuration> | 
|             </plugin> | 
|   | 
|         </plugins> | 
|     </build> | 
| </project> |