<?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.casic.missiles</groupId> <artifactId>casic-metering-readwriter</artifactId> <version>1.0-SNAPSHOT</version> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.4.5</version> </parent> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </dependency> <!--新厂家RFID读写器设备(旧版本),最新版使用本地jar包reader_sdk_v_4.3.0--> <!-- <dependency>--> <!-- <groupId>com.new.reader</groupId>--> <!-- <artifactId>reader-api</artifactId>--> <!-- <version>1.0</version>--> <!-- </dependency>--> <!--新厂家RFID最新版本地jar包reader_sdk_v_4.3.0的本地仓库--> <dependency> <groupId>com.readwriter</groupId> <artifactId>readwriter</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId> <version>2.4.5</version> </dependency> <!--原厂家RFID读写器设备--> <dependency> <groupId>com.gg.reader</groupId> <artifactId>greader-api</artifactId> <version>1.0</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>3.0.2</version> <configuration> <excludes> <!--注意从编译结果目录开始算目录结构--> <exclude>**/*-*.yml</exclude> </excludes> <archive> <manifest> <mainClass>com.casic.missiles.CasicApplication</mainClass> <addClasspath>true</addClasspath> <classpathPrefix>./</classpathPrefix> </manifest> </archive> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>3.3.0</version> <configuration> <appendAssemblyId>false</appendAssemblyId> <descriptors> <descriptor>src/main/build/package.xml</descriptor> </descriptors> </configuration> <executions> <execution> <id>make-assembly</id> <phase>package</phase> <!--this is used for inheritance merges 绑定到这个生命周期--> <goals> <goal>single</goal> <!--执行一次--> </goals> </execution> </executions> </plugin> </plugins> </build> </project>