@liruiyi962464
2025-05-15T03:39:57.000000Z
字数 4986
阅读 92
代码
108行开始是重点
<?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"><parent><artifactId>jeecg-module-system</artifactId><groupId>org.jeecgframework.boot</groupId><version>3.7.0</version></parent><modelVersion>4.0.0</modelVersion><artifactId>jeecg-system-start</artifactId><repositories><repository><releases><enabled>false</enabled></releases><snapshots><enabled>true</enabled></snapshots><id>ias-snapshots</id><name>Infinite Automation Snapshot Repository</name><url>https://maven.mangoautomation.net/repository/ias-snapshot/</url></repository><repository><releases><enabled>true</enabled></releases><snapshots><enabled>false</enabled></snapshots><id>ias-releases</id><name>Infinite Automation Release Repository</name><url>https://maven.mangoautomation.net/repository/ias-release/</url></repository></repositories><dependencies><!-- SYSTEM 系统管理模块 --><dependency><groupId>org.jeecgframework.boot</groupId><artifactId>jeecg-system-biz</artifactId><version>${jeecgboot.version}</version></dependency><!-- DEMO 示例模块 --><dependency><groupId>org.jeecgframework.boot</groupId><artifactId>jeecg-module-demo</artifactId><version>${jeecgboot.version}</version></dependency><!-- flyway 数据库自动升级 --><dependency><groupId>org.flywaydb</groupId><artifactId>flyway-core</artifactId></dependency><dependency><groupId>com.sun.jna</groupId><artifactId>darwin</artifactId><version>1.0</version></dependency><dependency><groupId>com.sun.jna</groupId><artifactId>examples</artifactId><version>1.0</version></dependency><dependency><groupId>org.json</groupId><artifactId>haikang</artifactId><version>1.0</version></dependency><!-- Rs485 modbus协议引入依赖 对接声光报警器--><dependency><groupId>com.infiniteautomation</groupId><artifactId>modbus4j</artifactId><version>3.0.3</version></dependency><!-- 串口依赖包 2024-8-14 muzi --><dependency><groupId>org.rxtx</groupId><artifactId>rxtx</artifactId><version>2.1.7</version></dependency><!-- modbus对接测试用 2024-8-14 muzi--><dependency><groupId>com.fazecast</groupId><artifactId>jSerialComm</artifactId><version>2.9.2</version></dependency><dependency><groupId>com.sgcc.uds.cloud</groupId><artifactId>uds-sdk-java</artifactId><version>2.1.1</version></dependency><dependency><groupId>com.sgcc.uds.cloud</groupId><artifactId>uds-ms-metadata-rpc-dto</artifactId><version>2.1.1</version></dependency></dependencies><build><finalName>nei-yunwei-1.0.0</finalName><plugins><!--<plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId><version>2.6.13</version></plugin>--><!-- 分离lib --><plugin><!-- 把依赖的jar包复制出来放到编译后的target/lib目录,并且在打包时候排除内部依赖 --><groupId>org.apache.maven.plugins</groupId><artifactId>maven-dependency-plugin</artifactId><executions><execution><id>copy-dependencies</id><phase>prepare-package</phase><goals><goal>copy-dependencies</goal></goals><configuration><outputDirectory>${project.build.directory}/lib</outputDirectory><overWriteReleases>false</overWriteReleases><overWriteSnapshots>false</overWriteSnapshots><overWriteIfNewer>true</overWriteIfNewer></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></resource></resources><outputDirectory>${project.build.directory}/resources</outputDirectory></configuration></execution></executions></plugin><!-- 打包jar --><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-jar-plugin</artifactId><configuration><archive><!-- 指定资源文件目录,与打包的jar文件同级目录 --><manifestEntries><Class-Path>resources/</Class-Path></manifestEntries><manifest><addClasspath>true</addClasspath><classpathPrefix>lib/</classpathPrefix><mainClass>org.jeecg.JeecgSystemApplication</mainClass></manifest></archive><!-- 打包时忽略的文件(也就是不打进jar包里的文件),本例将resources下的.yml、.properties文件全部排除 --><excludes><exclude>**/*.yml</exclude><exclude>**/resources/*.xml</exclude><exclude>**/*.properties</exclude></excludes></configuration></plugin><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId><!-- <version>2.6.13</version>--><configuration><includeSystemScope>true</includeSystemScope><layout>ZIP</layout><includes><include><groupId>non-exists</groupId><artifactId>non-exists</artifactId></include></includes></configuration><executions><execution><goals><goal>repackage</goal></goals></execution></executions></plugin></plugins></build><!-- <build>--><!-- <plugins>--><!-- <plugin>--><!-- <groupId>org.springframework.boot</groupId>--><!-- <artifactId>spring-boot-maven-plugin</artifactId>--><!-- <configuration>--><!-- <includeSystemScope>true</includeSystemScope>--><!-- </configuration>--><!-- </plugin>--><!-- </plugins>--><!-- </build>--></project>