'How to fix "package javafx.util does not exist" in maven

My code build on jenkins working till few days back with jdk 1.8 and suddenly it started throwing exception javafx packages doesn't exist like

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

As I got to know from google javafx is not the part of jdk anymore. So I need to get javafx dependencies externally.

Do we have any maven plugin or configuration which can solve this problem.?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source