```
feat(pom.xml): 添加 javafx-graphics依赖并更新 Maven 插件配置 - 新增了对 org.openjfx:javafx-graphics 的依赖引入 - 移除了原有的 javafx-maven-plugin 配置 - 替换为 spring-boot-maven-plugin 并配置 repackage 执行目标 - 调整了插件相关配置以适配 Spring Boot 应用打包需求 ```
This commit is contained in:
27
pom.xml
27
pom.xml
@@ -88,6 +88,12 @@
|
||||
<artifactId>javafx-fxml</artifactId>
|
||||
<version>${javafx.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.openjfx</groupId>
|
||||
<artifactId>javafx-graphics</artifactId>
|
||||
<version>${javafx.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<dependencyManagement>
|
||||
@@ -124,21 +130,20 @@
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<!-- JavaFX Maven Plugin -->
|
||||
<plugin>
|
||||
<groupId>org.openjfx</groupId>
|
||||
<artifactId>javafx-maven-plugin</artifactId>
|
||||
<version>${javafx.maven.plugin.version}</version>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<version>${spring-boot.version}</version>
|
||||
<configuration>
|
||||
<mainClass>com.fantaibao.DesktopApplication</mainClass>
|
||||
<launcher>app</launcher>
|
||||
<jlinkImageName>fantaibao-crawler</jlinkImageName>
|
||||
<jlinkZipName>fantaibao-crawler-zip</jlinkZipName>
|
||||
<options>
|
||||
<option>--add-modules</option>
|
||||
<option>javafx.controls,javafx.fxml</option>
|
||||
</options>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>repackage</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
|
||||
Reference in New Issue
Block a user