Files
RememBerBerandCursor 7255867db9 feat(next-fx): add independent JavaFX P0 app and macOS app-image
Establish a standalone OpenJDK 25 + OpenJFX 26 Maven product with a real JSON workflow, RichTextFX editor, isolated SQLite data, and a bundled macOS x64 runtime so ordinary use does not require a system JDK.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 21:41:40 +08:00

296 lines
11 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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.rememberber.mootool</groupId>
<artifactId>mootool-next-fx</artifactId>
<version>0.1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>MooTool Next FX</name>
<description>Independent OpenJDK + JavaFX desktop toolbox product line.</description>
<url>https://github.com/rememberber/MooTool</url>
<licenses>
<license>
<name>MIT License</name>
<url>https://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.release>25</maven.compiler.release>
<javafx.version>26.0.2</javafx.version>
<richtextfx.version>0.11.7</richtextfx.version>
<jackson.version>2.19.2</jackson.version>
<json-path.version>2.9.0</json-path.version>
<sqlite.version>3.53.2.1</sqlite.version>
<junit.version>5.13.4</junit.version>
<assertj.version>3.27.4</assertj.version>
<main.class>com.rememberber.mootool.nextfx.Launcher</main.class>
<app.displayName>MooTool Next FX</app.displayName>
<app.productId>next-fx</app.productId>
</properties>
<dependencies>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>${javafx.version}</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>
<version>${javafx.version}</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-base</artifactId>
<version>${javafx.version}</version>
</dependency>
<dependency>
<groupId>org.fxmisc.richtext</groupId>
<artifactId>richtextfx</artifactId>
<version>${richtextfx.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
<version>${json-path.version}</version>
</dependency>
<dependency>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
<version>${sqlite.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-nop</artifactId>
<version>2.0.17</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>${assertj.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-swing</artifactId>
<version>${javafx.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>version.properties</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<excludes>
<exclude>version.properties</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<id>enforce-java</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<version>[25,26)</version>
</requireJavaVersion>
<requireMavenVersion>
<version>[3.9.16,)</version>
</requireMavenVersion>
<bannedDependencies>
<excludes>
<exclude>*:*:*:*:system</exclude>
</excludes>
<searchTransitive>false</searchTransitive>
</bannedDependencies>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.14.0</version>
<configuration>
<release>25</release>
<compilerArgs>
<arg>-Xlint:unchecked</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.3</version>
<configuration>
<includes>
<include>**/*Test.java</include>
</includes>
<excludedGroups>ui</excludedGroups>
<useModulePath>false</useModulePath>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.4.2</version>
<configuration>
<archive>
<manifest>
<mainClass>${main.class}</mainClass>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestEntries>
<Product-Id>${app.productId}</Product-Id>
<Bundle-Id>com.rememberber.mootool.next.fx</Bundle-Id>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.8.1</version>
<executions>
<execution>
<id>copy-runtime-libs</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/app-input/lib</outputDirectory>
<includeScope>runtime</includeScope>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.8</version>
<configuration>
<mainClass>${main.class}</mainClass>
<options>
<option>-Dmootool.profile=dev</option>
</options>
<commandlineArgs>--profile=dev</commandlineArgs>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>ui-tests</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludedGroups combine.self="override"/>
<groups>ui</groups>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>javafx-mac-x64</id>
<activation>
<os>
<family>mac</family>
<arch>x86_64</arch>
</os>
</activation>
<properties>
<javafx.platform>mac</javafx.platform>
<packaging.os>mac</packaging.os>
<packaging.arch>x64</packaging.arch>
</properties>
</profile>
<profile>
<id>javafx-mac-arm64</id>
<activation>
<os>
<family>mac</family>
<arch>aarch64</arch>
</os>
</activation>
<properties>
<javafx.platform>mac-aarch64</javafx.platform>
<packaging.os>mac</packaging.os>
<packaging.arch>arm64</packaging.arch>
</properties>
</profile>
<profile>
<id>javafx-win-x64</id>
<activation>
<os>
<family>windows</family>
<arch>amd64</arch>
</os>
</activation>
<properties>
<javafx.platform>win</javafx.platform>
<packaging.os>win</packaging.os>
<packaging.arch>x64</packaging.arch>
</properties>
</profile>
<profile>
<id>javafx-linux-x64</id>
<activation>
<os>
<family>unix</family>
<name>linux</name>
<arch>amd64</arch>
</os>
</activation>
<properties>
<javafx.platform>linux</javafx.platform>
<packaging.os>linux</packaging.os>
<packaging.arch>x64</packaging.arch>
</properties>
</profile>
</profiles>
</project>