我的代码在jenkins上构建,直到jdk 1.8才运行了好几天,突然之间它开始抛出异常的javafx包,就像
16:28:25 [ERROR] /home/jenkins/workspace/dev-compiler.build.pre-submit/dev-client/src/main/java/com/dev/monitor/javafx/config/ConfigController.java:[11,26] package javafx.collections does not exist
16:28:25 [ERROR] /home/jenkins/workspace/dev-compiler.build.pre-submit/dev-client/src/main/java/com/dev/monitor/javafx/AppView.java:[4,23] package javafx.geometry does not exist
16:28:25 [ERROR] /home/jenkins/workspace/dev-compiler.build.pre-submit/dev-client/src/main/java/com/dev/monitor/javafx/AppView.java:[9,36] package javafx.scene.control.TabPane does not exist
正如我从Google所知道的,javafx不再是jdk的一部分。因此,我需要从外部获取javafx依赖项。
我们有任何可以解决此问题的Maven插件或配置吗?