代码拉取完成,页面将自动刷新
<?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>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.5.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<!--自己包定义-->
<groupId>com.zero.manage</groupId>
<artifactId>zero-manage</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
<properties>
<shiro.version>1.7.1</shiro.version>
<easyexcel.version>2.1.6</easyexcel.version>
<velocity.version>2.1</velocity.version>
<UserAgent.version>1.21</UserAgent.version>
<querydsl.version>4.4.0</querydsl.version>
<dynamic.version>3.2.1</dynamic.version>
<druid.version>1.1.10</druid.version>
<jwt.version>3.14.0</jwt.version>
</properties>
<dependencies>
<dependency>
<groupId>io.gitee.zero-wsh</groupId>
<artifactId>acTable</artifactId>
<version>2.0.2</version>
<exclusions>
<exclusion>
<groupId>javax.persistence</groupId>
<artifactId>persistence-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.gitee.zero-wsh</groupId>
<artifactId>zero-tool</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-hibernate5</artifactId>
<version>2.9.6</version>
</dependency>
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-spring</artifactId>
<version>${shiro.version}</version>
</dependency>
<!--velocity模板-->
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity-engine-core</artifactId>
<version>${velocity.version}</version>
</dependency>
<!-- sqlserver依赖 -->
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<!-- alibaba的druid数据库连接池 -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>${druid.version}</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.5</version>
</dependency>
<!--多数据源-->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>dynamic-datasource-spring-boot-starter</artifactId>
<version>${dynamic.version}</version>
</dependency>
<dependency>
<groupId>com.querydsl</groupId>
<artifactId>querydsl-apt</artifactId>
<version>${querydsl.version}</version>
</dependency>
<!--<!– https://mvnrepository.com/artifact/com.google.guava/guava –>-->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>30.1.1-jre</version>
</dependency>
<dependency>
<groupId>com.querydsl</groupId>
<artifactId>querydsl-jpa</artifactId>
<version>${querydsl.version}</version>
</dependency>
</dependencies>
<build>
<!-- 项目名称 -->
<finalName>${project.artifactId}${project.version}</finalName>
<plugins>
<!-- 这个插件是用来打jar包的 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<!-- <mainClass>com.gdata.IotApp</mainClass> -->
<addClasspath>true</addClasspath>
</manifest>
<!-- 指定配置文件目录,这样jar运行时会去找到同目录下的resources文件夹下查找 -->
<manifestEntries>
<Class-Path>./resources</Class-Path>
</manifestEntries>
</archive>
<!-- 打包时忽略的文件(也就是不打进jar包里的文件) -->
<excludes>
<exclude>static/**</exclude>
<exclude>templates/**</exclude>
<exclude>template/**</exclude>
<exclude>mapper/**</exclude>
<exclude>*.*</exclude>
</excludes>
</configuration>
</plugin>
<!-- springboot repackage -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<!--热启动配置-->
<fork>true</fork>
<layout>ZIP</layout>
<addResources>true</addResources>
<includes>
<include>
<groupId>nothing</groupId>
<artifactId>nothing</artifactId>
</include>
</includes>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- 这个插件是用来复制项目依赖的jar包 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<!-- 自定义 -->
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<!-- 复制依赖的jar包 -->
<goal>copy-dependencies</goal>
</goals>
<configuration>
<!-- 将依赖的jar包复制到该路径下 -->
<outputDirectory>${project.build.directory}/lib</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<!-- 这个插件是用来复制项目的静态资源-->
<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>
<!-- 指定需要复制的文件 -->
<includes>
<include>static/**</include>
<include>templates/**</include>
<include>template/**</include>
<include>mapper/**</include>
<include>*.yml</include>
<include>logback-zero.xml</include>
</includes>
</resource>
</resources>
<!-- 指定复制到该目录下 -->
<outputDirectory>${project.build.directory}/resources</outputDirectory>
</configuration>
</execution>
<execution>
<!-- 自定义 -->
<id>copy-resources-other</id>
<phase>package</phase>
<goals>
<!-- 复制静态资源 -->
<goal>copy-resources</goal>
</goals>
<configuration>
<resources>
<resource>
<!-- 指定静态资源的路径 -->
<directory>src/main/resources</directory>
<!-- 让resources中能获取到pom中配置 -->
<filtering>true</filtering>
<!-- 指定需要复制的文件 -->
<includes>
<include>*.sh</include>
</includes>
</resource>
</resources>
<!-- 指定复制到该目录下 -->
<outputDirectory>${project.build.directory}/</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<!-- 以上配置后你的文件打包后的文件目录如下
-lib
-resources
-其他文件
-项目名.jar
-->
<!-- 这个插件使用来将分离出来的静态资源和依赖的jar包(就是上面说到的文件目录),压缩成一个zip文件。个人感觉这个蛮方便的 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<!-- jar 等压缩文件在被打包进入 zip、tar.gz 时是否压缩,设置为 false 可加快打包速度 -->
<recompressZippedFiles>true</recompressZippedFiles>
<!-- 打包生成的文件是否要追加 release.xml 中定义的 id 值 -->
<appendAssemblyId>false</appendAssemblyId>
<!-- 这个插件需要指定一个配置文件 -->
<descriptors>
<descriptor>src/main/resources/assembly.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<!-- 自定义 -->
<id>make-assembly</id>
<phase>package</phase>
<goals>
<!-- 只执行一次 -->
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.mysema.maven</groupId>
<artifactId>apt-maven-plugin</artifactId>
<version>1.1.3</version>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
<configuration>
<outputDirectory>target/generated-sources/java</outputDirectory>
<processor>com.querydsl.apt.jpa.JPAAnnotationProcessor</processor>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。