<?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">
|
<parent>
|
<artifactId>ruoyi</artifactId>
|
<groupId>com.ruoyi</groupId>
|
<version>3.9.2</version>
|
</parent>
|
<modelVersion>4.0.0</modelVersion>
|
<packaging>jar</packaging>
|
<artifactId>ruoyi-admin</artifactId>
|
|
<description>
|
web服务入口
|
</description>
|
|
<dependencies>
|
|
<!-- spring-boot-devtools -->
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-devtools</artifactId>
|
<optional>true</optional> <!-- 表示依赖不会传递 -->
|
</dependency>
|
|
<!-- spring-doc -->
|
<dependency>
|
<groupId>org.springdoc</groupId>
|
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
</dependency>
|
|
<!-- Mysql驱动包 -->
|
<dependency>
|
<groupId>com.mysql</groupId>
|
<artifactId>mysql-connector-j</artifactId>
|
</dependency>
|
|
<!-- Versioned database migrations -->
|
<dependency>
|
<groupId>org.flywaydb</groupId>
|
<artifactId>flyway-core</artifactId>
|
<version>${flyway.version}</version>
|
</dependency>
|
<dependency>
|
<groupId>org.flywaydb</groupId>
|
<artifactId>flyway-mysql</artifactId>
|
<version>${flyway.version}</version>
|
</dependency>
|
|
<!-- 单元测试 -->
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-test</artifactId>
|
<scope>test</scope>
|
</dependency>
|
|
<!-- 核心模块-->
|
<dependency>
|
<groupId>com.h2database</groupId>
|
<artifactId>h2</artifactId>
|
<scope>test</scope>
|
</dependency>
|
|
<dependency>
|
<groupId>com.ruoyi</groupId>
|
<artifactId>ruoyi-framework</artifactId>
|
</dependency>
|
|
<!-- 自研业务与设备模块 -->
|
<dependency>
|
<groupId>com.battery</groupId>
|
<artifactId>battery-business</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>com.battery</groupId>
|
<artifactId>battery-device-api</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>com.battery</groupId>
|
<artifactId>battery-device-bts</artifactId>
|
</dependency>
|
|
<!-- 定时任务-->
|
<dependency>
|
<groupId>com.ruoyi</groupId>
|
<artifactId>ruoyi-quartz</artifactId>
|
</dependency>
|
|
<!-- 代码生成-->
|
<dependency>
|
<groupId>com.ruoyi</groupId>
|
<artifactId>ruoyi-generator</artifactId>
|
</dependency>
|
|
<dependency>
|
<groupId>io.swagger</groupId>
|
<artifactId>swagger-models</artifactId>
|
<version>1.6.2</version>
|
</dependency>
|
|
<dependency>
|
<groupId>com.intelligt.modbus</groupId>
|
<artifactId>jlibmodbus</artifactId>
|
<version>1.2.9.11</version>
|
</dependency>
|
<dependency>
|
<groupId>org.mockito</groupId>
|
<artifactId>mockito-core</artifactId>
|
<scope>test</scope>
|
</dependency>
|
</dependencies>
|
|
<profiles>
|
<profile>
|
<id>simulator</id>
|
<activation><activeByDefault>true</activeByDefault></activation>
|
<dependencies><dependency><groupId>com.battery</groupId><artifactId>battery-device-simulator</artifactId></dependency></dependencies>
|
</profile>
|
<profile>
|
<id>without-simulator</id>
|
<build><plugins><plugin>
|
<groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId>
|
<configuration>
|
<excludes>
|
<exclude>**/DevelopmentSimulatorConfig.java</exclude>
|
<exclude>**/DevelopmentSimulatorDiscoveryScheduler.java</exclude>
|
<exclude>**/DevelopmentCollectorSamplingScheduler.java</exclude>
|
<exclude>**/DevelopmentCollectorStatusSynchronizer.java</exclude>
|
<exclude>**/RedisBtsSimulatorStateStore.java</exclude>
|
<exclude>**/BtsDevelopmentSimulatorController.java</exclude>
|
<exclude>**/BtsDevelopmentSimulatorWebConfig.java</exclude>
|
</excludes>
|
<testExcludes>
|
<testExclude>**/BtsDevelopmentSimulatorControllerTest.java</testExclude>
|
<testExclude>**/DevelopmentSimulatorProfileContractTest.java</testExclude>
|
<testExclude>**/DevelopmentCollectorStatusSynchronizerTest.java</testExclude>
|
<testExclude>**/RedisStateStoreTest.java</testExclude>
|
<testExclude>**/DeviceAdapterRuntimeConfigTest.java</testExclude>
|
<testExclude>**/CollectorDiscoveryServiceImplTest.java</testExclude>
|
</testExcludes>
|
</configuration>
|
</plugin></plugins></build>
|
</profile>
|
</profiles>
|
|
<build>
|
<plugins>
|
<plugin>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
<configuration>
|
<addResources>true</addResources>
|
</configuration>
|
<executions>
|
<execution>
|
<goals>
|
<goal>repackage</goal>
|
</goals>
|
</execution>
|
</executions>
|
</plugin>
|
<plugin>
|
<groupId>org.apache.maven.plugins</groupId>
|
<artifactId>maven-war-plugin</artifactId>
|
<version>3.1.0</version>
|
<configuration>
|
<failOnMissingWebXml>false</failOnMissingWebXml>
|
<warName>${project.artifactId}</warName>
|
</configuration>
|
</plugin>
|
</plugins>
|
<finalName>${project.artifactId}</finalName>
|
</build>
|
|
</project>
|