|
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns="http://maven.apache.org/POM/4.0.0"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
- http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <groupId>com.github.bluesbruce</groupId>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>ffch-test</artifactId>
- <version>1.0.0</version>
- <packaging>${pom.package}</packaging>
- <name>H2 Test</name>
- <description>SpringBoot2集成H2</description>
- <url>${project.url}</url>
-
- <!-- 项目的核心开发者信息 -->
- <developers>
- <developer>
- <name>BBF</name>
- <roles>
- <role>architect</role>
- <role>developer</role>
- </roles>
- <timezone>+8</timezone>
- </developer>
- </developers>
-
- <!-- 项目许可 -->
- <licenses>
- <license>
- <name>The Apache License, Version 2.0</name>
- <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
- </license>
- </licenses>
-
- <scm>
- <connection>scm:git@gitee.com:bbfbbf/h2-test.git</connection>
- <developerConnection>scm:git@gitee.com:bbfbbf/h2-test.git</developerConnection>
- <url>${project.url}</url>
- <tag>${project.version}</tag>
- </scm>
-
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
- <project.url>https://gitee.com/bbfbbf/h2-test</project.url>
- <!-- base setting -->
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
- <project.build.locales>zh_CN</project.build.locales>
- <project.build.jdk>1.8</project.build.jdk>
-
- <!-- 日志 -->
- <pom.log.name>FFRTMP-test</pom.log.name>
- <pom.log.dir.backup>backup</pom.log.dir.backup>
- <!-- 日志切割的最小单位 -->
- <pom.log.filesize>5M</pom.log.filesize>
- <!-- 日志输出级别 -->
- <pom.log.level>INFO</pom.log.level>
-
- <!-- test dependencies -->
- <junit.version>4.13</junit.version>
-
- <!-- project dependencies -->
- <spring.boot.version>2.4.3</spring.boot.version>
- <mybatis-spring.boot.version>2.1.4</mybatis-spring.boot.version>
- <druid.boot.version>1.2.5</druid.boot.version>
- <h2.version>2.1.212</h2.version>
- </properties>
- <dependencyManagement>
- <dependencies>
- <!-- spring boot依赖 -->
- <!-- 打包: mvn package spring-boot:repackage -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-dependencies</artifactId>
- <version>${spring.boot.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
- <dependencies>
- <!-- junit -->
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>${junit.version}</version>
- <scope>test</scope>
- </dependency>
- <!-- spring boot开始 -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter</artifactId>
- <exclusions>
- <!-- 排除logback -->
- <exclusion>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-logging</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- <exclusions>
- <exclusion>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-tomcat</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
-
- <!-- MySql驱动 -->
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <scope>runtime</scope>
- </dependency>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>fastjson</artifactId>
- <version>1.2.58</version>
- </dependency>
-
- <!-- 日志log4j2 -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-log4j2</artifactId>
- </dependency>
- <!-- spring boot结束 -->
- <dependency>
- <groupId>org.mybatis.spring.boot</groupId>
- <artifactId>mybatis-spring-boot-starter</artifactId>
- <version>${mybatis-spring.boot.version}</version>
- </dependency>
- <!-- 数据库连接池 -->
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>druid-spring-boot-starter</artifactId>
- <version>${druid.boot.version}</version>
- </dependency>
- <!-- spring start -->
- <dependency>
- <groupId>com.h2database</groupId>
- <artifactId>h2</artifactId>
- <version>${h2.version}</version>
- </dependency>
-
-
-
-
-
- <!--内置tocat对Jsp支持的依赖,用于编译Jsp-->
- <dependency>
- <groupId>org.apache.tomcat.embed</groupId>
- <artifactId>tomcat-embed-jasper</artifactId>
- </dependency>
-
- <!--jstl的支持,c标签-->
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>jstl</artifactId>
- <scope>compile</scope>
- </dependency>
-
- <dependency>
- <groupId>javax.servlet.jsp</groupId>
- <artifactId>javax.servlet.jsp-api</artifactId>
- <version>2.3.1</version>
- </dependency>
- <!--mqtt 相关依赖-->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-integration</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.integration</groupId>
- <artifactId>spring-integration-stream</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.integration</groupId>
- <artifactId>spring-integration-mqtt</artifactId>
- </dependency>
- <!--mybatis-plus-->
- <dependency>
- <groupId>com.baomidou</groupId>
- <artifactId>mybatis-plus-boot-starter</artifactId>
- <version>3.1.0</version>
- </dependency>
- <!--lombok-->
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <optional>true</optional>
- </dependency>
-
- <!--devtools热部署-->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-devtools</artifactId>
- <optional>true</optional>
- <scope>true</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <!-- 测试插件 -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.22.0</version>
- <configuration>
- <!-- 跳过单元测试 -->
- <skipTests>true</skipTests>
- <!-- 如果单元测试中有输出中文,eclipse的控制台里中文可能会变成乱码输出 -->
- <argLine>-Dfile.encoding=UTF-8</argLine>
- </configuration>
- </plugin>
- <!-- 如果没这个插件,打包命令 mvn package spring-boot:repackage -->
- <!-- 现在打包命令 mvn package -->
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <version>${spring.boot.version}</version>
- <!--允许linux上注册服务-->
- <configuration>
- <executable>true</executable>
- <fork>true</fork>
- </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.2.2</version>
- <configuration>
- <!-- false==无web.xml文件的构建war-->
- <failOnMissingWebXml>false</failOnMissingWebXml>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>7</source>
- <target>7</target>
- </configuration>
- </plugin>
- </plugins>
- <!--配置资源文件过滤,如果有其他需要打包的资源,需要重载此配置节 -->
- <resources>
- <resource>
- <!--源文件夹-->
- <directory>scr/main/webapp</directory>
- <!--指定编译到META-INF/resources-->
- <targetPath>META-INF/resources</targetPath>
- <!--指定源文件夹中哪个资源要进行编译-->
- <includes>
- <include>*.*</include>
- </includes>
- </resource>
- <resource>
- <directory>src/main/resources</directory>
- <includes>
- <include>**/*.properties</include>
- <include>config/**</include>
- <include>log4j2.xml</include>
- </includes>
- <filtering>true</filtering>
- </resource>
- <resource>
- <directory>src/main/resources</directory>
- <includes>
- <include>mapper/**</include>
- </includes>
- <filtering>false</filtering>
- </resource>
- </resources>
- </build>
- <profiles>
- <profile>
- <id>jar</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <properties>
- <pom.package>war</pom.package>
- <pom.packageName>${project.artifactId}-${project.version}</pom.packageName>
- <pom.log.dir>d:/FFrtmp-test</pom.log.dir>
- </properties>
- <dependencies>
- <!-- undertow容器 -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-undertow</artifactId>
- </dependency>
- </dependencies>
- </profile>
- </profiles>
- </project>
|