<?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>
        <groupId>com.warewms</groupId>
        <artifactId>warewms</artifactId>
        <version>1.0</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <packaging>jar</packaging>

    <artifactId>warewms-admin</artifactId>
    <description>web application</description>

    <properties>
        <local.lib.basedir>${pom.basedir}/src/main/resources/lib</local.lib.basedir>
    </properties>

    <dependencies>
        <!-- Mysql驱动包 -->
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
        </dependency>
        <!-- 单元测试 -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <!-- 核心模块-->
        <dependency>
            <groupId>com.warewms</groupId>
            <artifactId>warewms-system</artifactId>
        </dependency>


        <!-- 定时任务-->
        <dependency>
            <groupId>com.warewms</groupId>
            <artifactId>warewms-quartz</artifactId>
        </dependency>

        <!-- 代码生成-->
        <dependency>
            <groupId>com.warewms</groupId>
            <artifactId>warewms-generator</artifactId>
        </dependency>


        <!-- 单元测试 -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
        </dependency>

        <!--硬件Jar集成,自定义starter组件-->
        <dependency>
            <groupId>com.jwk</groupId>
            <artifactId>modbus-spring-boot-starter</artifactId>
            <version>1.0</version>
            <scope>system</scope>
            <systemPath>${local.lib.basedir}/modbus-spring-boot-starter.jar</systemPath>
        </dependency>
        <dependency>
            <groupId>com.jwk</groupId>
            <artifactId>rfid-zebra-spring-boot-starter</artifactId>
            <version>1.0</version>
            <scope>system</scope>
            <systemPath>${local.lib.basedir}/rfid-zebra-spring-boot-starter.jar</systemPath>
        </dependency>
        <!-- rfid-zebra-只能跑在window上-->
        <dependency>
            <groupId>com.jwk</groupId>
            <artifactId>rfid</artifactId>
            <version>1.0.0</version>
            <scope>system</scope>
            <systemPath>${local.lib.basedir}/rfid-1.0.0.jar</systemPath>
        </dependency>
        <!--modbus4j start-->
        <dependency>
            <groupId>com.jwk</groupId>
            <artifactId>RXTXcomm</artifactId>
            <version>3.0.5</version>
            <scope>system</scope>
            <systemPath>${local.lib.basedir}/RXTXcomm.jar</systemPath>
        </dependency>
        <dependency>
            <groupId>com.jwk</groupId>
            <artifactId>modbus4j</artifactId>
            <version>3.0.5</version>
            <scope>system</scope>
            <systemPath>${local.lib.basedir}/modbus4j-3.0.5.jar</systemPath>
        </dependency>
        <dependency>
            <groupId>com.jwk</groupId>
            <artifactId>jssc</artifactId>
            <version>2.8.0</version>
            <scope>system</scope>
            <systemPath>${local.lib.basedir}/jssc-2.8.0.jar</systemPath>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>2.1.1.RELEASE</version>
                <!-- 解决打包无法找到启动类,并且未包含jar -->
                <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>