| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- <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>com.shkpr.service</groupId>
- <artifactId>kpr-custom-gateway</artifactId>
- <version>1.0.0</version>
- </parent>
- <!--工件名-->
- <artifactId>custom-gateway-app</artifactId>
- <!--版本号-->
- <version>${project.version}</version>
- <!--打包方式-->
- <packaging>jar</packaging>
- <!--项目名-->
- <name>CustomGatewayApp</name>
- <!--项目描述-->
- <description>启动模块</description>
- <!--依赖项-->
- <dependencies>
- <!--枣阳漏控-->
- <dependency>
- <groupId>com.shkpr.service</groupId>
- <artifactId>custom-gateway-zydma</artifactId>
- <version>${project.version}</version>
- </dependency>
- </dependencies>
- <!--构建脚本-->
- <build>
- <!-- 打成jar包的名称 -->
- <finalName>${parent.artifactId}-${project.version}</finalName>
- <!--插件项-->
- <plugins>
- <!--maven-compiler-->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>${maven.compiler.source}</source>
- <target>${maven.compiler.target}</target>
- <encoding>${project.build.sourceEncoding}</encoding>
- <compilerArguments>
- <extdirs>${project.basedir}/../libs</extdirs>
- </compilerArguments>
- <annotationProcessorPaths>
- <path>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- </path>
- </annotationProcessorPaths>
- </configuration>
- </plugin>
- <!--maven-resources-->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <configuration>
- <encoding>UTF-8</encoding>
- <!-- 过滤后缀为pem、pfx的证书文件 -->
- <nonFilteredFileExtensions>
- <nonFilteredFileExtension>pem</nonFilteredFileExtension>
- <nonFilteredFileExtension>pfx</nonFilteredFileExtension>
- <nonFilteredFileExtension>p12</nonFilteredFileExtension>
- </nonFilteredFileExtensions>
- </configuration>
- </plugin>
- <!--maven-surefire-->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <skipTests>true</skipTests>
- <systemPropertyVariables>
- <global.sql-config-path>../db.yml</global.sql-config-path>
- <device.map-path>../dev_map.yml</device.map-path>
- <spring.datasource.multi.embedded.url>jdbc:h2:file:../data
- </spring.datasource.multi.embedded.url>
- </systemPropertyVariables>
- </configuration>
- </plugin>
- <!--spring-boot-->
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <version>${spring.boot.version}</version>
- <configuration>
- <fork>true</fork>
- <executable>true</executable>
- <mainClass>com.shkpr.service.customgateway.CustomGatewayApplication</mainClass>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>repackage</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- <!--资源包-->
- <resources>
- <!--lib-->
- <resource>
- <directory>${project.basedir}/../libs</directory>
- <targetPath>BOOT-INF/lib/</targetPath>
- <includes>
- <include>**/*.jar</include>
- </includes>
- </resource>
- <!--resources-->
- <resource>
- <directory>src/main/resources</directory>
- <includes>
- <include>**/**</include>
- </includes>
- <filtering>true</filtering>
- </resource>
- </resources>
- </build>
- </project>
|