| | |
| | | <module>user-server</module> |
| | | <module>sys</module> |
| | | <module>framework</module> |
| | | <module>standard-server</module> |
| | | <module>inspection-server</module> |
| | | <module>laboratory-server</module> |
| | | <module>cnas-server</module> |
| | | <module>chart-server</module> |
| | | </modules> |
| | | |
| | | <properties> |
| | |
| | | <swagger.version>3.0.0</swagger.version> |
| | | <knife4j-spring-ui.version>3.0.3</knife4j-spring-ui.version> |
| | | <druid.version>1.2.18</druid.version> |
| | | <mybatis-plus.version>3.4.0</mybatis-plus.version> |
| | | <mybatis-plus.version>3.5.3.1</mybatis-plus.version> |
| | | <openfeign.version>3.1.3</openfeign.version> |
| | | <feign-okhttp.version>11.0</feign-okhttp.version> |
| | | <shiro.version>1.5.3</shiro.version> |
| | | <commons.lang3>3.12.0</commons.lang3> |
| | | <hutool.version>5.8.18</hutool.version> |
| | | <!-- 打包后导出的路径 --> |
| | | <package.path>C:/LIMS</package.path> |
| | | </properties> |
| | | |
| | | <dependencies> |
| | |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-web</artifactId> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-test</artifactId> |
| | | </dependency> |
| | | |
| | | <!--热部署a--> |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | |
| | | <scope>runtime</scope> |
| | | <optional>true</optional> |
| | | </dependency> |
| | | |
| | | <!--lombok--> |
| | | <dependency> |
| | | <groupId>org.projectlombok</groupId> |
| | | <artifactId>lombok</artifactId> |
| | | </dependency> |
| | | |
| | | <!--Swagger3--> |
| | | <dependency> |
| | | <groupId>io.springfox</groupId> |
| | | <artifactId>springfox-boot-starter</artifactId> |
| | | <version>${swagger.version}</version> |
| | | </dependency> |
| | | |
| | | <!--mybatis-plus--> |
| | | <dependency> |
| | | <groupId>com.baomidou</groupId> |
| | | <artifactId>mybatis-plus-boot-starter</artifactId> |
| | | <version>${mybatis-plus.version}</version> |
| | | </dependency> |
| | | |
| | | <!--后端注释检验工具--> |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-validation</artifactId> |
| | | </dependency> |
| | | </dependencies> |
| | | <dependencyManagement> |
| | | <dependencies> |
| | | <dependency> |
| | | <groupId>cn.hutool</groupId> |
| | | <artifactId>hutool-all</artifactId> |
| | | <version>${hutool.version}</version> |
| | | </dependency> |
| | | |
| | | <!--log4j--> |
| | | <dependency> |
| | | <groupId>log4j</groupId> |
| | |
| | | <version>${druid.version}</version> |
| | | </dependency> |
| | | |
| | | <!--jwt--> |
| | | <dependency> |
| | | <groupId>com.auth0</groupId> |
| | | <artifactId>java-jwt</artifactId> |
| | | <version>${jwt.version}</version> |
| | | </dependency> |
| | | |
| | | <!--Swagger3--> |
| | | <dependency> |
| | | <groupId>io.springfox</groupId> |
| | | <artifactId>springfox-boot-starter</artifactId> |
| | | <version>${swagger.version}</version> |
| | | </dependency> |
| | | |
| | | <!--Swagger3-Ui美化--> |
| | | <dependency> |
| | | <groupId>com.github.xiaoymin</groupId> |
| | | <artifactId>knife4j-spring-ui</artifactId> |
| | | <version>${knife4j-spring-ui.version}</version> |
| | | </dependency> |
| | | |
| | | <!--mybatis-plus--> |
| | | <dependency> |
| | | <groupId>com.baomidou</groupId> |
| | | <artifactId>mybatis-plus-boot-starter</artifactId> |
| | | <version>${mybatis-plus.version}</version> |
| | | </dependency> |
| | | |
| | | <!--mybatis-plus代码生成器--> |
| | |
| | | <artifactId>feign-okhttp</artifactId> |
| | | <version>${feign-okhttp.version}</version> |
| | | </dependency> |
| | | |
| | | <!--安全框架shiro--> |
| | | <dependency> |
| | | <groupId>org.apache.shiro</groupId> |
| | | <artifactId>shiro-spring-boot-starter</artifactId> |
| | | <version>${shiro.version}</version> |
| | | </dependency> |
| | | |
| | | <!--jwt--> |
| | | <dependency> |
| | | <groupId>com.auth0</groupId> |
| | | <artifactId>java-jwt</artifactId> |
| | | <version>${jwt.version}</version> |
| | | </dependency> |
| | | </dependencies> |
| | | </dependencyManagement> |
| | | |
| | | <build> |
| | | <plugins> |
| | | <!-- 上线部署 JAR启动分离依赖lib和配置 --> |
| | | <!-- 打包jar --> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-jar-plugin</artifactId> |
| | | <configuration> |
| | | <!-- 不打包资源文件 --> |
| | | <excludes> |
| | | <exclude> |
| | | <groupId>org.projectlombok</groupId> |
| | | <artifactId>lombok</artifactId> |
| | | </exclude> |
| | | <exclude>*.**</exclude> |
| | | </excludes> |
| | | <mainClass> |
| | | com.yuanchu.limslaboratory.SysApplication |
| | | </mainClass> |
| | | <!--<fork>false</fork> |
| | | <includeSystemScope>true</includeSystemScope> |
| | | <skip>true</skip>--> |
| | | <archive> |
| | | <manifest> |
| | | <addClasspath>true</addClasspath> |
| | | <!-- MANIFEST.MF 中 Class-Path 加入前缀 --> |
| | | <classpathPrefix>lib/</classpathPrefix> |
| | | <!-- jar包不包含唯一版本标识 --> |
| | | <useUniqueVersions>false</useUniqueVersions> |
| | | <!-- 指定入口类 --> |
| | | <mainClass>com.yuanchu.limslaboratory.SysApplication</mainClass> |
| | | </manifest> |
| | | <!-- 指定配置文件目录,这样jar运行时会去找到同目录下的conf文件夹下查找 --> |
| | | <manifestEntries> |
| | | <Class-Path>conf/</Class-Path> |
| | | </manifestEntries> |
| | | </archive> |
| | | <outputDirectory>${package.path}</outputDirectory> |
| | | </configuration> |
| | | </plugin> |
| | | <!-- 拷贝依赖 copy-dependencies --> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-dependency-plugin</artifactId> |
| | | <executions> |
| | | <execution> |
| | | <id>copy-dependencies</id> |
| | | <phase>package</phase> |
| | | <goals> |
| | | <goal>copy-dependencies</goal> |
| | | </goals> |
| | | <configuration> |
| | | <outputDirectory>${package.path}/lib/ </outputDirectory> |
| | | </configuration> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | <!-- 拷贝资源文件 copy-resources --> |
| | | <plugin> |
| | | <artifactId>maven-resources-plugin</artifactId> |
| | | <executions> |
| | | <execution> |
| | | <id>copy-resources</id> |
| | | <phase>package</phase> |
| | | <goals> |
| | | <goal>copy-resources</goal> |
| | | </goals> |
| | | <configuration> |
| | | <resources> |
| | | <resource> |
| | | <directory>src/main/resources</directory> |
| | | <!-- 指定参与构建的resource --> |
| | | <includes> |
| | | <include>*.**</include> |
| | | <!--排除application-dev.yml文件--> |
| | | </includes> |
| | | </resource> |
| | | </resources> |
| | | <outputDirectory>${package.path}/conf</outputDirectory> |
| | | </configuration> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | </plugins> |
| | | </build> |
| | | |