Using Hibernate Validator with Java 11 brings JavaFX on the classpath

Description

Due to this profile activation, adding Hibernate validator to a Java11 project brings JavaFX on the classpath

I have no idea whether that's a bug or a feature of Maven but, regardless, published pom should ideally be cleared of those build-specific details. For instance, the repository definition is also a problem as that brings oss.sonatype.org to any project that defines Hibernate Validator as a dependency.

Environment

Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T20:33:14+02:00)
Maven home: /Users/snicoll/tools/maven
Java version: 11-ea, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home
Default locale: en_BE, platform encoding: UTF-8
OS name: "mac os x", version: "10.13.6", arch: "x86_64", family: "mac"

Status

Assignee

Guillaume Smet

Reporter

St├ęphane Nicoll

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

Priority

Major
Configure