| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244 |
- <?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 https://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.7.18</version>
- <relativePath/>
- </parent>
- <groupId>com.mes</groupId>
- <artifactId>mesclient-huhan</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- <name>mesclient-huhan</name>
- <description>MES 工位桌面客户端(Swing + Spring Boot 启动壳,无 Web)</description>
- <packaging>jar</packaging>
- <properties>
- <java.version>1.8</java.version>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- </properties>
- <dependencies>
- <!-- Spring Boot:仅作启动/依赖管理,关闭 Web -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter</artifactId>
- </dependency>
- <!-- 日志:保留原 logback.xml 行为;starter 已带 logback,排除冲突的旧版由 parent 统一管理 -->
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- </dependency>
- <!-- JSON / HTTP / 工具(原 lib 中有 Maven 坐标的改走中央仓库) -->
- <dependency>
- <groupId>com.alibaba.fastjson2</groupId>
- <artifactId>fastjson2</artifactId>
- <version>2.0.16</version>
- </dependency>
- <dependency>
- <groupId>com.squareup.okhttp3</groupId>
- <artifactId>okhttp</artifactId>
- <version>4.10.0</version>
- </dependency>
- <dependency>
- <groupId>com.google.code.gson</groupId>
- <artifactId>gson</artifactId>
- <version>2.10</version>
- </dependency>
- <dependency>
- <groupId>commons-codec</groupId>
- <artifactId>commons-codec</artifactId>
- <version>1.15</version>
- </dependency>
- <dependency>
- <groupId>org.xerial</groupId>
- <artifactId>sqlite-jdbc</artifactId>
- <version>3.36.0.3</version>
- </dependency>
- <dependency>
- <groupId>org.jfree</groupId>
- <artifactId>jfreechart</artifactId>
- <version>1.5.4</version>
- </dependency>
- <dependency>
- <groupId>com.fazecast</groupId>
- <artifactId>jSerialComm</artifactId>
- <version>2.6.2</version>
- </dependency>
- <dependency>
- <groupId>io.netty</groupId>
- <artifactId>netty-all</artifactId>
- <version>4.1.48.Final</version>
- </dependency>
- <!-- 三菱 MC:弧焊五站 M/D/L 点位 -->
- <dependency>
- <groupId>com.github.dathlin</groupId>
- <artifactId>HslCommunication</artifactId>
- <version>3.3.1</version>
- <scope>system</scope>
- <systemPath>${project.basedir}/lib/HslCommunication-3.3.1.jar</systemPath>
- </dependency>
- <!-- 本地 jar:保持与原 lib 完全一致,避免升级 API 不兼容 -->
- <dependency>
- <groupId>com.github.xingshuangs</groupId>
- <artifactId>iot-communication</artifactId>
- <version>1.4.4</version>
- <scope>system</scope>
- <systemPath>${project.basedir}/lib/iot-communication-1.4.4.jar</systemPath>
- </dependency>
- <dependency>
- <groupId>com.github.s7connector</groupId>
- <artifactId>s7connector</artifactId>
- <version>2.1</version>
- <scope>system</scope>
- <systemPath>${project.basedir}/lib/s7connector-2.1.jar</systemPath>
- </dependency>
- <dependency>
- <groupId>net.sourceforge</groupId>
- <artifactId>jshortcut</artifactId>
- <version>0.4</version>
- <scope>system</scope>
- <systemPath>${project.basedir}/lib/jshortcut-0.4-oberzalek.jar</systemPath>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <configuration>
- <!-- 桌面入口;打包时把 system 依赖也打进 fat jar -->
- <mainClass>com.mes.MesClientApplication</mainClass>
- <includeSystemScope>true</includeSystemScope>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <!--
- 打 Windows exe:
- mvn -Pexe -Dsplash.file=pack/splash/teal.bmp package
- mvn -Pexe-nosplash package
- 推荐:.\pack\build-exe.ps1(交互选封面)
- -->
- <profiles>
- <profile>
- <id>exe</id>
- <properties>
- <splash.file>${project.basedir}/pack/splash/teal.bmp</splash.file>
- <exe.outfile>${project.basedir}/pack/dist/mesclient-huhan.exe</exe.outfile>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>com.akathist.maven.plugins.launch4j</groupId>
- <artifactId>launch4j-maven-plugin</artifactId>
- <version>2.5.1</version>
- <executions>
- <execution>
- <id>mesclient-huhan-exe</id>
- <phase>package</phase>
- <goals>
- <goal>launch4j</goal>
- </goals>
- <configuration>
- <headerType>gui</headerType>
- <jar>${project.build.directory}/${project.build.finalName}.jar</jar>
- <outfile>${exe.outfile}</outfile>
- <errTitle>MES 弧焊客户端</errTitle>
- <chdir>.</chdir>
- <priority>normal</priority>
- <downloadUrl>https://adoptium.net/</downloadUrl>
- <stayAlive>false</stayAlive>
- <restartOnCrash>false</restartOnCrash>
- <icon>${project.basedir}/pack/icon.ico</icon>
- <jre>
- <minVersion>1.8.0</minVersion>
- <jdkPreference>preferJre</jdkPreference>
- <runtimeBits>64/32</runtimeBits>
- </jre>
- <versionInfo>
- <fileVersion>1.0.0.0</fileVersion>
- <txtFileVersion>${project.version}</txtFileVersion>
- <fileDescription>MES 弧焊一拖五客户端</fileDescription>
- <copyright>MES</copyright>
- <productVersion>1.0.0.0</productVersion>
- <txtProductVersion>${project.version}</txtProductVersion>
- <productName>mesclient-huhan</productName>
- <internalName>mesclient-huhan</internalName>
- <originalFilename>mesclient-huhan.exe</originalFilename>
- </versionInfo>
- <splash>
- <file>${splash.file}</file>
- <waitForWindow>true</waitForWindow>
- <timeout>60</timeout>
- <timeoutErr>true</timeoutErr>
- </splash>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>exe-nosplash</id>
- <properties>
- <exe.outfile>${project.basedir}/pack/dist/mesclient-huhan.exe</exe.outfile>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>com.akathist.maven.plugins.launch4j</groupId>
- <artifactId>launch4j-maven-plugin</artifactId>
- <version>2.5.1</version>
- <executions>
- <execution>
- <id>mesclient-huhan-exe-nosplash</id>
- <phase>package</phase>
- <goals>
- <goal>launch4j</goal>
- </goals>
- <configuration>
- <headerType>gui</headerType>
- <jar>${project.build.directory}/${project.build.finalName}.jar</jar>
- <outfile>${exe.outfile}</outfile>
- <errTitle>MES 弧焊客户端</errTitle>
- <chdir>.</chdir>
- <icon>${project.basedir}/pack/icon.ico</icon>
- <jre>
- <minVersion>1.8.0</minVersion>
- <jdkPreference>preferJre</jdkPreference>
- <runtimeBits>64/32</runtimeBits>
- </jre>
- <versionInfo>
- <fileVersion>1.0.0.0</fileVersion>
- <txtFileVersion>${project.version}</txtFileVersion>
- <fileDescription>MES 弧焊一拖五客户端</fileDescription>
- <copyright>MES</copyright>
- <productVersion>1.0.0.0</productVersion>
- <txtProductVersion>${project.version}</txtProductVersion>
- <productName>mesclient-huhan</productName>
- <internalName>mesclient-huhan</internalName>
- <originalFilename>mesclient-huhan.exe</originalFilename>
- </versionInfo>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
- </project>
|