<?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>com.mortals.xhx</groupId> <artifactId>fill-system</artifactId> <version>1.0.0-SNAPSHOT</version> </parent> <artifactId>fill-manager</artifactId> <packaging>jar</packaging> <description>填单系统</description> <properties> </properties> <profiles> <profile> <id>develop</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <profiles.active>develop</profiles.active> <profiles.server.port>17215</profiles.server.port> <profiles.queue.type>rabbitmq</profiles.queue.type> <profiles.kafka.brokers>192.168.0.251:9092</profiles.kafka.brokers> <profiles.rabbitmq.host>192.168.0.98</profiles.rabbitmq.host> <profiles.rabbitmq.port>5672</profiles.rabbitmq.port> <profiles.nacos.server-addr>192.168.0.252:8848</profiles.nacos.server-addr> <profiles.nacos.group>DEFAULT_GROUP</profiles.nacos.group> <profiles.nacos.namespace>smart-gov</profiles.nacos.namespace> <profiles.log.level>INFO</profiles.log.level> <profiles.publish.path>/home/publish</profiles.publish.path> <profiles.log.path>/mortals/app/logs</profiles.log.path> </properties> </profile> <profile> <id>test</id> <properties> <profiles.active>test</profiles.active> <profiles.server.port>19211</profiles.server.port> <profiles.queue.type>rabbitmq</profiles.queue.type> <profiles.kafka.brokers>192.168.0.251:9092</profiles.kafka.brokers> <profiles.rabbitmq.host>192.168.0.251</profiles.rabbitmq.host> <profiles.rabbitmq.port>5672</profiles.rabbitmq.port> <profiles.rabbitmq.username>root_mq</profiles.rabbitmq.username> <profiles.rabbitmq.password>xhx@2022</profiles.rabbitmq.password> <profiles.rabbitmq.virtualhost>/</profiles.rabbitmq.virtualhost> <profiles.nacos.server-addr>192.168.0.252:8848</profiles.nacos.server-addr> <profiles.nacos.group>DEFAULT_GROUP</profiles.nacos.group> <profiles.nacos.namespace>smart-gov</profiles.nacos.namespace> <profiles.publish.path>/home/publish</profiles.publish.path> <profiles.log.level>INFO</profiles.log.level> <profiles.log.path>/home/mortals/app/logs</profiles.log.path> </properties> </profile> <profile> <id>product</id> <properties> <profiles.active>product</profiles.active> <profiles.server.port>19211</profiles.server.port> <profiles.queue.type>rabbitmq</profiles.queue.type> <profiles.rabbitmq.host>192.168.0.250</profiles.rabbitmq.host> <profiles.rabbitmq.port>5672</profiles.rabbitmq.port> <profiles.rabbitmq.username>taxi_mq</profiles.rabbitmq.username> <profiles.rabbitmq.password>admin@2020</profiles.rabbitmq.password> <profiles.rabbitmq.virtualhost>/</profiles.rabbitmq.virtualhost> <profiles.nacos.server-addr>127.0.0.1:8848</profiles.nacos.server-addr> <profiles.nacos.group>DEFAULT_GROUP</profiles.nacos.group> <profiles.nacos.namespace>smart-gov</profiles.nacos.namespace> <profiles.publish.path>/home/publish</profiles.publish.path> <profiles.log.level>INFO</profiles.log.level> <profiles.log.path>/home/mortals/app/logs</profiles.log.path> <profiles.filepath>/mortals/app/data</profiles.filepath> <profiles.log.level>INFO</profiles.log.level> </properties> </profile> <profile> <id>reg</id> <properties> <profiles.active>reg</profiles.active> <profiles.server.port>19211</profiles.server.port> <profiles.queue.type>rabbitmq</profiles.queue.type> <profiles.rabbitmq.host>127.0.0.1</profiles.rabbitmq.host> <profiles.rabbitmq.port>5672</profiles.rabbitmq.port> <profiles.rabbitmq.username>taxi_mq</profiles.rabbitmq.username> <profiles.rabbitmq.password>admin@2020</profiles.rabbitmq.password> <profiles.rabbitmq.virtualhost>/</profiles.rabbitmq.virtualhost> <profiles.nacos.server-addr>127.0.0.1:8848</profiles.nacos.server-addr> <profiles.nacos.group>DEFAULT_GROUP</profiles.nacos.group> <profiles.nacos.namespace>smart-gov</profiles.nacos.namespace> <profiles.publish.path>/home/publish</profiles.publish.path> <profiles.log.level>INFO</profiles.log.level> <profiles.log.path>/home/mortals/app/logs</profiles.log.path> <profiles.filepath>/mortals/app/data</profiles.filepath> <profiles.log.level>INFO</profiles.log.level> </properties> </profile> </profiles> <dependencies> <dependency> <groupId>com.mortals.xhx</groupId> <artifactId>common-lib</artifactId> <exclusions> <exclusion> <artifactId>poi-ooxml-schemas</artifactId> <groupId>org.apache.poi</groupId> </exclusion> </exclusions> </dependency> <!-- 引入 SpringMVC 相关依赖,并实现对其的自动配置 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-starter</artifactId> </dependency> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> </dependency> <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-redis</artifactId> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId> <version>2.5.2</version> </dependency> <dependency> <groupId>org.freemarker</groupId> <artifactId>freemarker</artifactId> <version>2.3.31</version> </dependency> <!-- <dependency>--> <!-- <groupId>com.aspose</groupId>--> <!-- <artifactId>aspose-words</artifactId>--> <!-- <version>20.1</version>--> <!-- <classifier>jdk17</classifier>--> <!-- </dependency>--> <dependency> <groupId>com.aspose.words</groupId> <artifactId>aspose-words</artifactId> <version>19.2</version> <classifier>jdk16</classifier> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-mock</artifactId> <version>2.0.8</version> </dependency> <dependency> <groupId>com.deepoove</groupId> <artifactId>poi-tl</artifactId> <version>1.12.0</version> </dependency> <dependency> <groupId>com.itextpdf</groupId> <artifactId>itext7-core</artifactId> <version>RELEASE</version> <type>pom</type> </dependency> <dependency> <groupId>org.apache.pdfbox</groupId> <artifactId>pdfbox</artifactId> <version>2.0.27</version> </dependency> </dependencies> <build> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> </resource> </resources> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.19.1</version> <configuration> <skipTests>true</skipTests> <!--默认关掉单元测试 --> </configuration> </plugin> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>${java.version}</source> <target>${java.version}</target> <encoding>${project.build.sourceEncoding}</encoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <executions> <execution> <id>copy-bin</id> <phase>package</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <encoding>UTF-8</encoding> <outputDirectory>target/bin </outputDirectory> <resources> <resource> <directory>src/main/bin/</directory> <excludes> <exclude>deploy.sh</exclude> </excludes> <filtering>true</filtering> </resource> </resources> </configuration> </execution> <execution> <id>copy-deploy</id> <phase>package</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <encoding>UTF-8</encoding> <outputDirectory>${project.parent.basedir}/dist/${project.artifactId}/ </outputDirectory> <resources> <resource> <directory>src/main/bin</directory> <includes> <include>deploy.sh</include> </includes> <filtering>true</filtering> </resource> </resources> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>3.3.0</version> <executions> <execution> <id>make-assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuration> <finalName>${project.artifactId}</finalName> <appendAssemblyId>false</appendAssemblyId> <descriptors> <descriptor>../assembly/assembly.xml</descriptor> </descriptors> <outputDirectory>${project.parent.basedir}/dist/${project.artifactId}</outputDirectory> </configuration> </execution> </executions> </plugin> </plugins> </build> </project>