<?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>smart-gov-platform</artifactId> <version>1.0.0-SNAPSHOT</version> </parent> <artifactId>base-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.path>/zwfw</profiles.server.path> <profiles.publish.path>/home/publish</profiles.publish.path> <profiles.rabbitmq.host>127.0.0.1</profiles.rabbitmq.host> <profiles.rabbitmq.port>5672</profiles.rabbitmq.port> <profiles.rabbitmq.username>guest</profiles.rabbitmq.username> <profiles.rabbitmq.password>guest</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.log.path>/home/mortals/app/logs</profiles.log.path> <profiles.log.level>debug</profiles.log.level> <package.environment>test</package.environment> <skipUi>false</skipUi> <showSql>false</showSql> <profiles.holidayUrl>https://timor.tech/api/holiday/year/</profiles.holidayUrl> </properties> </profile> <profile> <id>test</id> <properties> <profiles.active>test</profiles.active> <profiles.server.path>/base</profiles.server.path> <profiles.publish.path>/home/publish</profiles.publish.path> <profiles.rabbitmq.host>192.168.0.98</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>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.path>/home/mortals/app/logs</profiles.log.path> <profiles.log.level>info</profiles.log.level> <package.environment>test</package.environment> <skipUi>false</skipUi> <profiles.holidayUrl>https://timor.tech/api/holiday/year/</profiles.holidayUrl> </properties> </profile> <profile> <id>product</id> <properties> <profiles.active>product</profiles.active> <profiles.server.path>/base</profiles.server.path> <profiles.publish.path>/home/publish</profiles.publish.path> <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.log.path>/home/mortals/app/logs</profiles.log.path> <profiles.log.level>info</profiles.log.level> <package.environment>build</package.environment> <skipUi>false</skipUi> <profiles.holidayUrl>https://timor.tech/api/holiday/year/</profiles.holidayUrl> </properties> </profile> <profile> <id>yibin</id> <properties> <profiles.active>yibin</profiles.active> <profiles.server.path>/base</profiles.server.path> <profiles.server.port>17211</profiles.server.port> <profiles.publish.path>/home/publish</profiles.publish.path> <profiles.rabbitmq.host>172.15.28.115</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>172.15.28.120:8848</profiles.nacos.server-addr> <profiles.nacos.group>DEFAULT_GROUP</profiles.nacos.group> <profiles.nacos.namespace>smart-gov</profiles.nacos.namespace> <profiles.log.path>/home/mortals/app/logs</profiles.log.path> <profiles.filepath>/mortals/app/data</profiles.filepath> <profiles.log.level>INFO</profiles.log.level> <package.environment>yibin</package.environment> <skipUi>false</skipUi> <profiles.holidayUrl>https://timor.tech/api/holiday/year/</profiles.holidayUrl> </properties> </profile> <profile> <id>sngx</id> <properties> <profiles.active>sngx</profiles.active> <profiles.server.path>/base</profiles.server.path> <profiles.server.port>17211</profiles.server.port> <profiles.publish.path>/home/publish</profiles.publish.path> <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.log.path>/home/mortals/app/logs</profiles.log.path> <profiles.filepath>/mortals/app/data</profiles.filepath> <profiles.log.level>INFO</profiles.log.level> <package.environment>yibin</package.environment> <skipUi>false</skipUi> </properties> </profile> </profiles> <dependencies> <dependency> <groupId>com.mortals.xhx</groupId> <artifactId>common-lib</artifactId> <exclusions> <exclusion> <groupId>org.bouncycastle</groupId> <artifactId>bcprov-jdk16</artifactId> </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>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> <!--Token生成与解析--> <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt</artifactId> </dependency> <dependency> <groupId>org.bouncycastle</groupId> <artifactId>bcprov-jdk15on</artifactId> <version>1.64</version> </dependency> <!-- 网页解析 --> <!-- https://mvnrepository.com/artifact/org.jsoup/jsoup --> <dependency> <groupId>org.jsoup</groupId> <artifactId>jsoup</artifactId> <version>1.15.3</version> </dependency> <!-- <dependency> <groupId>javax.xml</groupId> <artifactId>jaxp-api</artifactId> <version>1.4.5</version> </dependency>--> <dependency> <groupId>net.sourceforge.htmlcleaner</groupId> <artifactId>htmlcleaner</artifactId> <version>2.26</version> </dependency> <!-- 虹软人脸解析 --> <dependency> <groupId>com.arcsoft.face</groupId> <artifactId>arcsoft-sdk-face</artifactId> <version>3.0.0.0</version> </dependency> <dependency> <groupId>net.coobird</groupId> <artifactId>thumbnailator</artifactId> <version>0.4.5</version> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.11.0</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> </resource> </resources> <plugins> <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> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.6.0</version> <configuration> <skip>${skipUi}</skip> </configuration> <executions> <execution> <id>exec-npm-install</id> <phase>generate-resources</phase> <goals> <goal>exec</goal> </goals> <configuration> <executable>yarn</executable> <arguments> <argument></argument> </arguments> <workingDirectory>${project.parent.basedir}/base-manager-ui/admin</workingDirectory> </configuration> </execution> <execution> <id>exec-npm-run-build</id> <phase>generate-resources</phase> <goals> <goal>exec</goal> </goals> <configuration> <executable>yarn</executable> <arguments> <argument>run</argument> <arguments>${package.environment}</arguments> </arguments> <workingDirectory>${project.parent.basedir}/base-manager-ui/admin</workingDirectory> </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> <execution> <id>make-assembly-ui</id> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuration> <skipAssembly>${skipUi}</skipAssembly> <finalName>${project.artifactId}-ui</finalName> <appendAssemblyId>false</appendAssemblyId> <descriptors> <descriptor>./assembly/assembly-manager-ui.xml</descriptor> </descriptors> <outputDirectory>${project.parent.basedir}/dist/${project.artifactId}</outputDirectory> </configuration> </execution> </executions> </plugin> </plugins> </build> </project>