3 Star 22 Fork 17

westinyang/javafx-jdk11-start

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pom.xml 4.37 KB
一键复制 编辑 原始数据 按行查看 历史
<?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.ceadeal</groupId>
<artifactId>javafx-jdk11-start</artifactId>
<version>1.0</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.release>11</maven.compiler.release>
<javafx.version>15.0.1</javafx.version>
</properties>
<dependencies>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>${javafx.version}</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>${javafx.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<release>${maven.compiler.release}</release>
</configuration>
</plugin>
<!-- javafx jlink 打包插件 -->
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.5</version>
<configuration>
<!-- 如果JAVA_HOME环境变量已经设置为11或者更高,则不需要配置executable标签 -->
<executable>D:/dev/jdk-11.0.10/bin/java</executable>
<release>${maven.compiler.release}</release>
<mainClass>javafx.jdk11.start/com.ceadeal.javafxjdk11start.App</mainClass>
<compress>1</compress>
<stripDebug>true</stripDebug>
<noHeaderFiles>true</noHeaderFiles>
<noManPages>true</noManPages>
<launcher>launcher</launcher>
<jlinkImageName>javafx-jdk11-start</jlinkImageName>
<!--<jlinkZipName>javafx-jdk11-start</jlinkZipName>-->
</configuration>
</plugin>
<!-- javafx native-image 打包插件 -->
<plugin>
<groupId>com.gluonhq</groupId>
<artifactId>client-maven-plugin</artifactId>
<version>0.1.38</version>
<configuration>
<target>host</target>
<mainClass>com.ceadeal.javafxjdk11start.App</mainClass>
<!--<bundlesList>
<list>com.ceadeal.javafxjdk11start</list>
</bundlesList>-->
<resourcesList>
<list>.*\\.properties$</list>
</resourcesList>
<reflectionList>
<list>com.ceadeal.javafxjdk11start.ctrl.MainCtrl</list>
</reflectionList>
</configuration>
</plugin>
<!-- 打包成一个jar -->
<!--<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<finalName>${project.build.finalName}</finalName>
<archive>
<manifest>
<mainClass>com.ceadeal.javafxjdk11start.Launcher</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</plugin>-->
</plugins>
</build>
</project>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/westinyang/javafx-jdk11-start.git
git@gitee.com:westinyang/javafx-jdk11-start.git
westinyang
javafx-jdk11-start
javafx-jdk11-start
master

搜索帮助