143 lines
5.6 KiB
XML
143 lines
5.6 KiB
XML
|
|
<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.ems</groupId>
|
||
|
|
<artifactId>ems-modbus-simulator</artifactId>
|
||
|
|
<version>1.0.0</version>
|
||
|
|
<name>EMS Modbus Simulator</name>
|
||
|
|
|
||
|
|
<properties>
|
||
|
|
<maven.compiler.source>17</maven.compiler.source>
|
||
|
|
<maven.compiler.target>17</maven.compiler.target>
|
||
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||
|
|
<javafx.version>21.0.2</javafx.version>
|
||
|
|
<javafx.platform>mac-aarch64</javafx.platform>
|
||
|
|
</properties>
|
||
|
|
|
||
|
|
<dependencies>
|
||
|
|
<dependency>
|
||
|
|
<groupId>org.openjfx</groupId>
|
||
|
|
<artifactId>javafx-base</artifactId>
|
||
|
|
<version>${javafx.version}</version>
|
||
|
|
<classifier>${javafx.platform}</classifier>
|
||
|
|
</dependency>
|
||
|
|
<dependency>
|
||
|
|
<groupId>org.openjfx</groupId>
|
||
|
|
<artifactId>javafx-graphics</artifactId>
|
||
|
|
<version>${javafx.version}</version>
|
||
|
|
<classifier>${javafx.platform}</classifier>
|
||
|
|
</dependency>
|
||
|
|
<dependency>
|
||
|
|
<groupId>org.openjfx</groupId>
|
||
|
|
<artifactId>javafx-controls</artifactId>
|
||
|
|
<version>${javafx.version}</version>
|
||
|
|
<classifier>${javafx.platform}</classifier>
|
||
|
|
<exclusions>
|
||
|
|
<exclusion>
|
||
|
|
<groupId>org.openjfx</groupId>
|
||
|
|
<artifactId>javafx-base</artifactId>
|
||
|
|
</exclusion>
|
||
|
|
<exclusion>
|
||
|
|
<groupId>org.openjfx</groupId>
|
||
|
|
<artifactId>javafx-graphics</artifactId>
|
||
|
|
</exclusion>
|
||
|
|
</exclusions>
|
||
|
|
</dependency>
|
||
|
|
<dependency>
|
||
|
|
<groupId>org.apache.poi</groupId>
|
||
|
|
<artifactId>poi-ooxml</artifactId>
|
||
|
|
<version>5.2.5</version>
|
||
|
|
</dependency>
|
||
|
|
</dependencies>
|
||
|
|
|
||
|
|
<build>
|
||
|
|
<plugins>
|
||
|
|
<plugin>
|
||
|
|
<groupId>org.apache.maven.plugins</groupId>
|
||
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
||
|
|
<version>3.11.0</version>
|
||
|
|
<configuration>
|
||
|
|
<release>17</release>
|
||
|
|
</configuration>
|
||
|
|
</plugin>
|
||
|
|
<plugin>
|
||
|
|
<groupId>org.openjfx</groupId>
|
||
|
|
<artifactId>javafx-maven-plugin</artifactId>
|
||
|
|
<version>0.0.8</version>
|
||
|
|
<configuration>
|
||
|
|
<mainClass>com.ems.modbus.ModbusSimulatorApp</mainClass>
|
||
|
|
</configuration>
|
||
|
|
</plugin>
|
||
|
|
<plugin>
|
||
|
|
<groupId>org.apache.maven.plugins</groupId>
|
||
|
|
<artifactId>maven-jar-plugin</artifactId>
|
||
|
|
<version>3.4.2</version>
|
||
|
|
<configuration>
|
||
|
|
<archive>
|
||
|
|
<manifest>
|
||
|
|
<mainClass>com.ems.modbus.MainLauncher</mainClass>
|
||
|
|
</manifest>
|
||
|
|
</archive>
|
||
|
|
</configuration>
|
||
|
|
</plugin>
|
||
|
|
<plugin>
|
||
|
|
<groupId>org.apache.maven.plugins</groupId>
|
||
|
|
<artifactId>maven-shade-plugin</artifactId>
|
||
|
|
<version>3.5.2</version>
|
||
|
|
<executions>
|
||
|
|
<execution>
|
||
|
|
<phase>package</phase>
|
||
|
|
<goals>
|
||
|
|
<goal>shade</goal>
|
||
|
|
</goals>
|
||
|
|
<configuration>
|
||
|
|
<createDependencyReducedPom>false</createDependencyReducedPom>
|
||
|
|
<transformers>
|
||
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
||
|
|
<mainClass>com.ems.modbus.MainLauncher</mainClass>
|
||
|
|
</transformer>
|
||
|
|
</transformers>
|
||
|
|
</configuration>
|
||
|
|
</execution>
|
||
|
|
</executions>
|
||
|
|
</plugin>
|
||
|
|
</plugins>
|
||
|
|
</build>
|
||
|
|
|
||
|
|
<profiles>
|
||
|
|
<profile>
|
||
|
|
<id>windows-dist</id>
|
||
|
|
<properties>
|
||
|
|
<javafx.platform>win</javafx.platform>
|
||
|
|
</properties>
|
||
|
|
<build>
|
||
|
|
<plugins>
|
||
|
|
<plugin>
|
||
|
|
<groupId>org.apache.maven.plugins</groupId>
|
||
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
||
|
|
<version>3.7.1</version>
|
||
|
|
<executions>
|
||
|
|
<execution>
|
||
|
|
<id>build-windows-zip</id>
|
||
|
|
<phase>package</phase>
|
||
|
|
<goals>
|
||
|
|
<goal>single</goal>
|
||
|
|
</goals>
|
||
|
|
<configuration>
|
||
|
|
<descriptors>
|
||
|
|
<descriptor>src/assembly/windows.xml</descriptor>
|
||
|
|
</descriptors>
|
||
|
|
<finalName>${project.artifactId}-${project.version}-windows</finalName>
|
||
|
|
<appendAssemblyId>false</appendAssemblyId>
|
||
|
|
</configuration>
|
||
|
|
</execution>
|
||
|
|
</executions>
|
||
|
|
</plugin>
|
||
|
|
</plugins>
|
||
|
|
</build>
|
||
|
|
</profile>
|
||
|
|
</profiles>
|
||
|
|
</project>
|