I'm trying to build a JavaFX software application for windows platforms including windows XP, Vista, 7, 8, 10.
I'm using Maven as a dependancy manager to build the project.
In my application, i make use of MySQL Driver for JDBC connectivity. However, when targeting old OS such as XP, i'm obliged to use old drivers because nowdays versions of MySQL are impossible to start on XP.
I need my project to get built with MySQL 5.1.6 Driver for Windows XP platform, and MySQL 5.7 Driver for the rest of platforms.
I'm aware that i can do that by building the project 2 times and proving 2 .jar files and then 2 different .exe files, but is there any other elegant way to do that ?
Thanks in advance.