| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283 | <?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>    <groupId>com.welampiot</groupId>    <artifactId>CIS</artifactId>    <version>1.0-SNAPSHOT</version>    <!-- 打包war包 --><!--    <packaging>war</packaging>-->    <properties>        <maven.compiler.source>8</maven.compiler.source>        <maven.compiler.target>8</maven.compiler.target>        <log4j2.version>2.13.3</log4j2.version>        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>    </properties>    <!--    导入springboot版本和框架依赖     -->    <parent>        <groupId>org.springframework.boot</groupId>        <artifactId>spring-boot-starter-parent</artifactId>        <version>2.5.1</version>        <relativePath></relativePath>    </parent>    <dependencies>        <dependency>            <groupId>org.springframework.boot</groupId>            <artifactId>spring-boot-starter-web</artifactId>        </dependency>        <dependency>            <groupId>mysql</groupId>            <artifactId>mysql-connector-java</artifactId>        </dependency>        <dependency>            <groupId>org.mybatis.spring.boot</groupId>            <artifactId>mybatis-spring-boot-starter</artifactId>            <version>2.2.2</version>        </dependency>        <dependency>            <groupId>com.alibaba</groupId>            <artifactId>druid</artifactId>            <version>1.2.3</version>        </dependency>        <dependency>            <groupId>com.alibaba</groupId>            <artifactId>druid-spring-boot-starter</artifactId>            <version>1.1.20</version>        </dependency>        <dependency>            <groupId>org.apache.commons</groupId>            <artifactId>commons-lang3</artifactId>            <version>3.9</version>        </dependency>        <dependency>            <groupId>org.projectlombok</groupId>            <artifactId>lombok</artifactId>        </dependency>        <dependency>            <groupId>junit</groupId>            <artifactId>junit</artifactId>            <scope>test</scope>        </dependency>        <dependency>            <groupId>org.springframework.boot</groupId>            <artifactId>spring-boot-starter-test</artifactId>            <scope>test</scope>            <exclusions>                <exclusion>                    <groupId>org.junit.vintage</groupId>                    <artifactId>junit-vintage-engine</artifactId>                </exclusion>            </exclusions>        </dependency>        <dependency>            <groupId>org.springframework.boot</groupId>            <artifactId>spring-boot-starter-security</artifactId>        </dependency>        <dependency>            <groupId>org.springframework.security</groupId>            <artifactId>spring-security-config</artifactId>        </dependency>        <dependency>            <groupId>org.springframework.boot</groupId>            <artifactId>spring-boot-starter-validation</artifactId>        </dependency>        <dependency>            <groupId>commons-codec</groupId>            <artifactId>commons-codec</artifactId>            <version>1.14</version>        </dependency>        <dependency>            <groupId>be.c4j.ee.security.octopus</groupId>            <artifactId>authentication</artifactId>            <version>0.9.7.2</version>            <type>pom</type>        </dependency>        <dependency>            <groupId>com.alibaba</groupId>            <artifactId>fastjson</artifactId>            <version>1.2.33</version>        </dependency><!--        mqtt-->        <dependency>            <groupId>org.springframework.integration</groupId>            <artifactId>spring-integration-mqtt</artifactId>        </dependency>        <dependency>            <groupId>org.springframework.social</groupId>            <artifactId>spring-social-web</artifactId>            <version>1.1.6.RELEASE</version>        </dependency>        <dependency>            <groupId>commons-httpclient</groupId>            <artifactId>commons-httpclient</artifactId>            <version>3.1</version>        </dependency>        <!-- 读取远程服务器文件-->        <!-- shh2 -->        <dependency>            <groupId>ch.ethz.ganymed</groupId>            <artifactId>ganymed-ssh2</artifactId>            <version>262</version>        </dependency>        <dependency>            <groupId>com.jcraft</groupId>            <artifactId>jsch</artifactId>            <version>0.1.53</version>        </dependency>        <dependency>            <groupId>commons-net</groupId>            <artifactId>commons-net</artifactId>            <version>3.4</version>        </dependency>        <dependency>            <groupId>org.json</groupId>            <artifactId>json</artifactId>            <version>20230227</version>        </dependency>        <dependency>            <groupId>co.ipdata.client</groupId>            <artifactId>ipdata-java-client</artifactId>            <version>0.2.0</version>        </dependency>        <dependency>            <groupId>org.gavaghan</groupId>            <artifactId>geodesy</artifactId>            <version>1.1.3</version>        </dependency><!--    excel 处理-->        <dependency>            <groupId>org.apache.poi</groupId>            <artifactId>poi</artifactId>            <version>5.2.2</version>        </dependency>        <dependency>            <groupId>org.apache.poi</groupId>            <artifactId>poi-ooxml</artifactId>            <version>5.2.2</version>        </dependency>        <dependency>            <groupId>org.apache.httpcomponents</groupId>            <artifactId>httpclient</artifactId><!--            <version>4.5.10</version>-->        </dependency>        <dependency>            <groupId>org.apache.httpcomponents</groupId>            <artifactId>httpmime</artifactId>            <version>4.5.12</version>        </dependency>        <dependency>            <groupId>org.apache.httpcomponents</groupId>            <artifactId>httpclient</artifactId>            <version>4.5.13</version>        </dependency><!--        通过JWT(JSON Web Token)进行数字签名-->        <dependency>            <groupId>io.jsonwebtoken</groupId>            <artifactId>jjwt</artifactId>            <version>0.9.1</version>        </dependency>    </dependencies>    <repositories>  <!-- 配置阿里云镜像仓库 -->        <repository>            <id>nexus-aliyun</id>            <name>nexus-aliyun</name>            <url>http://maven.aliyun.com/nexus/content/groups/public/</url>            <releases>                <enabled>true</enabled>            </releases>            <snapshots>                <enabled>false</enabled>            </snapshots>        </repository>    </repositories>    <!-- maven多环境打包配置 -->    <profiles>        <!-- 测试环境 -->        <profile>            <id>test</id>            <properties>                <profiles.active>test</profiles.active>            </properties>            <!-- 设置为默认环境 -->            <activation>                <activeByDefault>true</activeByDefault>            </activation>        </profile>        <!-- 生产环境 -->        <profile>            <id>prod</id>            <properties>                <profiles.active>prod</profiles.active>            </properties>        </profile>    </profiles>    <!--添加maven插件,项目的打包工具,打成jar包,否则在打包运行时报错   -->    <build>        <!-- 打包名格式:项目名-环境.jar -->        <finalName>${project.artifactId}-${profiles.active}</finalName>        <sourceDirectory>src/main/java</sourceDirectory>        <testSourceDirectory>src/test/java</testSourceDirectory>        <resources>            <resource>                <directory>src/main/resources</directory>                <excludes>                    <exclude>test/*</exclude>                    <exclude>prod/*</exclude>                </excludes>            </resource>            <resource>                <directory>src/main/resources/${profiles.active}</directory><!--                <filtering>true</filtering>-->                <includes>                    <include>*.yml</include>                    <include>*.xml</include>                </includes>            </resource>        </resources>        <plugins>            <plugin>                <groupId>org.springframework.boot</groupId>                <artifactId>spring-boot-maven-plugin</artifactId>                <version>2.2.2.RELEASE</version>                <configuration>                    <mainClass>com.welampiot.ServerApplication</mainClass>                    <layout>JAR</layout>                </configuration>                <executions>                    <execution>                        <goals>                            <goal>repackage</goal>                        </goals>                        <configuration>                            <attach>false</attach>                        </configuration>                    </execution>                </executions>            </plugin>            <!-- maven 打包时跳过测试 -->            <plugin>                <groupId>org.apache.maven.plugins</groupId>                <artifactId>maven-surefire-plugin</artifactId>                <configuration>                    <skipTests>true</skipTests>                </configuration>            </plugin>        </plugins>    </build></project>
 |