210 lines
8.1 KiB
XML
210 lines
8.1 KiB
XML
<?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>
|
||
|
||
<groupId>com.goats</groupId>
|
||
<artifactId>changhaoshiye</artifactId>
|
||
<version>1.0-SNAPSHOT</version>
|
||
<description>昌昊加工工时采集/分析</description>
|
||
|
||
<properties>
|
||
<maven.compiler.source>11</maven.compiler.source>
|
||
<maven.compiler.target>11</maven.compiler.target>
|
||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||
</properties>
|
||
|
||
<parent>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-parent</artifactId>
|
||
<version>2.7.0</version>
|
||
<relativePath/>
|
||
</parent>
|
||
|
||
|
||
<dependencies>
|
||
|
||
<!--web启动项-->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-web</artifactId>
|
||
<version>2.7.0</version>
|
||
</dependency>
|
||
|
||
<!--测试使用-->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-test</artifactId>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
|
||
<!-- 阿里数据库连接池 -->
|
||
<dependency>
|
||
<groupId>com.alibaba</groupId>
|
||
<artifactId>druid-spring-boot-starter</artifactId>
|
||
<version>1.2.11</version>
|
||
</dependency>
|
||
|
||
<!-- Mysql驱动包 -->
|
||
<dependency>
|
||
<groupId>mysql</groupId>
|
||
<artifactId>mysql-connector-java</artifactId>
|
||
<version>8.0.30</version>
|
||
</dependency>
|
||
|
||
|
||
|
||
<dependency>
|
||
<groupId>org.mybatis.spring.boot</groupId>
|
||
<artifactId>mybatis-spring-boot-starter</artifactId>
|
||
<version>1.3.2</version>
|
||
</dependency>
|
||
|
||
<!--mqtt客户端依赖-->
|
||
<dependency>
|
||
<groupId>org.dromara.mica-mqtt</groupId>
|
||
<artifactId>mica-mqtt-client-spring-boot-starter</artifactId>
|
||
<version>2.4.1</version>
|
||
</dependency>
|
||
|
||
|
||
<dependency>
|
||
<groupId>org.junit.jupiter</groupId>
|
||
<artifactId>junit-jupiter-api</artifactId>
|
||
<version>5.7.1</version>
|
||
<scope>compile</scope>
|
||
</dependency>
|
||
|
||
<!-- <!–JSON –>-->
|
||
<!-- <dependency>-->
|
||
<!-- <groupId>com.alibaba</groupId>-->
|
||
<!-- <artifactId>fastjson</artifactId>-->
|
||
<!-- <version>2.0.12</version>-->
|
||
<!-- </dependency>-->
|
||
|
||
<dependency>
|
||
<groupId>net.sf.json-lib</groupId>
|
||
<artifactId>json-lib</artifactId>
|
||
<version>0.9</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.projectlombok</groupId>
|
||
<artifactId>lombok</artifactId>
|
||
</dependency>
|
||
</dependencies>
|
||
|
||
<build>
|
||
<plugins>
|
||
<!-- 如果是通过parent方式继承spring-boot-starter-parent则不用此插件 -->
|
||
<!-- <plugin> <groupId>org.springframework.boot</groupId>-->
|
||
<!-- <artifactId>spring-boot-maven-plugin</artifactId> </plugin>-->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-jar-plugin</artifactId>
|
||
<!-- The configuration of the plugin -->
|
||
<configuration>
|
||
<!-- Configuration of the archiver -->
|
||
<archive>
|
||
<!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
|
||
<addMavenDescriptor>false</addMavenDescriptor>
|
||
<!-- Manifest specific configuration -->
|
||
<manifest>
|
||
<!-- 是否要把第三方jar放到manifest的classpath中 -->
|
||
<addClasspath>true</addClasspath>
|
||
<!-- 生成的manifest中classpath的前缀,因为要把第三方jar放到lib目录下,所以classpath的前 缀是lib/ -->
|
||
<classpathPrefix>lib/</classpathPrefix>
|
||
<!-- 应用的main class -->
|
||
<mainClass>com.goats.WebApplication</mainClass>
|
||
</manifest>
|
||
<manifestEntries>
|
||
<Class-Path>config</Class-Path>
|
||
</manifestEntries>
|
||
</archive>
|
||
<!-- 过滤掉不希望包含在jar中的文件 -->
|
||
<excludes>
|
||
<exclude>*.properties</exclude>
|
||
<exclude>*.yaml</exclude>
|
||
<exclude>*.config</exclude>
|
||
<exclude>config/**</exclude>
|
||
</excludes>
|
||
</configuration>
|
||
</plugin>
|
||
<plugin>
|
||
<artifactId>maven-resources-plugin</artifactId>
|
||
<version>3.1.0</version>
|
||
<executions>
|
||
<execution>
|
||
<id>copy-resources</id>
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>copy-resources</goal>
|
||
</goals>
|
||
<configuration>
|
||
<outputDirectory>${project.build.directory}/maven-archiver/resources</outputDirectory>
|
||
<resources>
|
||
<resource>
|
||
<directory>${basedir}/src/main/resources</directory>
|
||
<include>*.properties</include>
|
||
<include>*.config</include>
|
||
<filtering>true</filtering>
|
||
</resource>
|
||
</resources>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
|
||
|
||
<!-- The configuration of maven-assembly-plugin -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-assembly-plugin</artifactId>
|
||
<!-- The configuration of the plugin -->
|
||
<configuration>
|
||
<!-- Specifies the configuration file of the assembly plugin -->
|
||
<descriptors>
|
||
<descriptor>${project.basedir}/package.xml</descriptor>
|
||
</descriptors>
|
||
<finalName>${project.artifactId}</finalName>
|
||
<appendAssemblyId>false</appendAssemblyId>
|
||
|
||
</configuration>
|
||
<executions>
|
||
<execution>
|
||
<id>make-assembly</id>
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>single</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-surefire-plugin</artifactId>
|
||
<configuration>
|
||
<skip>true</skip>
|
||
</configuration>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.mybatis.generator</groupId>
|
||
<artifactId>mybatis-generator-maven-plugin</artifactId>
|
||
<version>1.3.2</version>
|
||
<configuration>
|
||
<verbose>true</verbose>
|
||
<overwrite>true</overwrite>
|
||
</configuration>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-compiler-plugin</artifactId>
|
||
<configuration>
|
||
<source>11</source>
|
||
<target>11</target>
|
||
</configuration>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
</project> |