pom.xml 9.21 KB
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"
    xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>com.huaheng.wms</groupId>
        <artifactId>huaheng-wms4</artifactId>
        <version>4.0.1</version>
    </parent>

    <artifactId>huaheng-wms-core</artifactId>
    <packaging>jar</packaging>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter</artifactId>
        </dependency>

        <dependency>
            <groupId>org.jeecgframework.boot</groupId>
            <artifactId>jeecg-system-local-api</artifactId>
        </dependency>

        <dependency>
            <groupId>org.jeecgframework.boot</groupId>
            <artifactId>jeecg-boot-base-core</artifactId>
        </dependency>

        <dependency>
            <groupId>com.github.abel533</groupId>
            <artifactId>ECharts</artifactId>
            <version>3.0.0.5</version>
        </dependency>
        <!-- jeewx api -->
        <dependency>
            <groupId>org.jeecgframework</groupId>
            <artifactId>jeewx-api</artifactId>
            <version>1.4.7</version>
            <exclusions>
                <exclusion>
                    <artifactId>commons-beanutils</artifactId>
                    <groupId>commons-beanutils</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>commons-lang</artifactId>
                    <groupId>commons-lang</groupId>
                </exclusion>
            </exclusions>
        </dependency>
        <!-- 积木报表 -->
        <dependency>
            <groupId>org.jeecgframework.jimureport</groupId>
            <artifactId>jimureport-spring-boot-starter</artifactId>
            <version>1.4.32</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <!-- 删除前端静态资源目录 -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-clean-plugin</artifactId>
                <configuration>
                    <filesets>
                        <fileset>
                            <!-- 前端资源目录,即:存放前端包目录 -->
                            <directory>src/main/resources/static</directory>
                        </fileset>
                    </filesets>
                </configuration>
            </plugin>
            <!-- 复制前端静态资源目录 -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <configuration>
                    <nonFilteredFileExtensions>
                        <nonFilteredFileExtension>woff</nonFilteredFileExtension>
                        <nonFilteredFileExtension>woff2</nonFilteredFileExtension>
                        <nonFilteredFileExtension>eot</nonFilteredFileExtension>
                        <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
                        <nonFilteredFileExtension>svg</nonFilteredFileExtension>
                    </nonFilteredFileExtensions>
                </configuration>
                <executions>
                    <execution>
                        <id>copy static</id>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <!-- 复制前端打包文件到这里 -->
                            <outputDirectory>src/main/resources/static</outputDirectory>
                            <overwrite>true</overwrite>
                            <resources>
                                <resource>
                                    <!-- 从前端打包的目录dist进行指定文件、文件夹内容的复制,具体根据实际前端代码及目录结构进行配置 -->
                                    <directory>${project.parent.basedir}/ant-design-vue-jeecg/dist</directory>
                                    <includes>
                                        <include>**</include>
                                    </includes>
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <!-- 指定JDK编译版本 -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>
            <!-- 打包跳过测试 -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <skipTests>true</skipTests>
                </configuration>
            </plugin>
            <!-- 避免font文件的二进制文件格式压缩破坏 -->
        </plugins>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.xml</include>
                    <include>**/*.json</include>
                    <include>**/*.ftl</include>
                </includes>
            </resource>
        </resources>
    </build>

    <!-- 环境 -->
    <profiles>
        <!-- 开发 -->
        <profile>
            <id>dev</id>
            <activation>
                <!-- 默认激活配置 -->
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
                <!-- 当前环境 -->
                <profile.name>dev</profile.name>
                <!-- 配置文件前缀 -->
                <prefix.name>jeecg</prefix.name>
                <!-- Nacos配置中心地址 -->
                <config.server-addr>jeecg-boot-nacos:8848</config.server-addr>
                <!-- Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空 -->
                <config.namespace></config.namespace>
                <!-- Nacos用户名 -->
                <config.username>nacos</config.username>
                <!-- Nacos密码 -->
                <config.password>nacos</config.password>
                <!-- Nacos配置分组名称 -->
                <config.group>DEFAULT_GROUP</config.group>
                <!-- Nacos服务发现地址 -->
                <discovery.server-addr>jeecg-boot-nacos:8848</discovery.server-addr>
            </properties>
        </profile>
        <!-- 测试 -->
        <profile>
            <id>test</id>
            <properties>
                <!-- 当前环境 -->
                <profile.name>test</profile.name>
                <!-- 配置文件前缀 -->
                <prefix.name>jeecg</prefix.name>
                <!-- Nacos配置中心地址 -->
                <config.server-addr>jeecg-boot-nacos:8848</config.server-addr>
                <!-- Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空 -->
                <config.namespace></config.namespace>
                <!-- Nacos用户名 -->
                <config.username>nacos</config.username>
                <!-- Nacos密码 -->
                <config.password>nacos</config.password>
                <!-- Nacos配置分组名称 -->
                <config.group>DEFAULT_GROUP</config.group>
                <!-- Nacos服务发现地址 -->
                <discovery.server-addr>jeecg-boot-nacos:8848</discovery.server-addr>
            </properties>
        </profile>
        <!-- 生产 -->
        <profile>
            <id>prod</id>
            <properties>
                <!-- 当前环境,生产环境为空 -->
                <profile.name>prod</profile.name>
                <!-- 配置文件前缀 -->
                <prefix.name>jeecg</prefix.name>
                <!-- Nacos配置中心地址 -->
                <config.server-addr>jeecg-boot-nacos:8848</config.server-addr>
                <!-- Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空 -->
                <config.namespace></config.namespace>
                <!-- Nacos用户名 -->
                <config.username>nacos</config.username>
                <!-- Nacos密码 -->
                <config.password>nacos</config.password>
                <!-- Nacos配置分组名称 -->
                <config.group>DEFAULT_GROUP</config.group>
                <!-- Nacos服务发现地址 -->
                <discovery.server-addr>jeecg-boot-nacos:8848</discovery.server-addr>
            </properties>
        </profile>
    </profiles>
</project>