I'm attempting an upgrade from the Java 8 version to 11 for a project and I've encountered the following error during build-time after I've manually added the JAXB dependencies:
'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar must specify an absolute path but is ${tools.jar} in com.sun.xml.bind:jaxb-impl:2.2.11
I'm using Gradle, so I've added the following dependencies:
implementation "javax.xml.bind:jaxb-api:2.2.11"
implementation "com.sun.xml.bind:jaxb-core:2.2.11"
implementation "com.sun.xml.bind:jaxb-impl:2.2.11"
implementation "javax.activation:activation:1.1.1"
I've tried to scour the jaxb pom to search for the place in which the property it's looking for (tools.jar
) is specified but couldn't find anything.
What am I doing wrong?