Oxygen SDK build error (pom.xml)
Posted: Wed Sep 19, 2018 4:20 pm
Hi,
My build (gradle, but the problem is pom related ) is complaining that the systemPath for tools.jar is not well defined.
The problem seems to be that ${JAVA_HOME} is not a valid maven variable (anymore ?). We should use ${java.home} instead.
If I replace ${JAVA_HOME} by ${java.home} in "oxygen-build-tools" pom.xml it actually fix the issue. Maybe you can take this into account for your subsequent release.
Thanks
Stéphane
My build (gradle, but the problem is pom related ) is complaining that the systemPath for tools.jar is not well defined.
I do find an answer about this on StackOverflow (https://stackoverflow.com/a/19921467/923516).Errors occurred while build effective model from /Users/stoussaint/.gradle/caches/modules-2/files-2.1/com.oxygenxml/oxygen-annotations/20.1.0.2/ece217cbd5aee107232bc978c5af2d694e3eedf8/oxygen-annotations-20.1.0.2.pom:
'dependencies.dependency.systemPath' for jdk.tools:jdk.tools:jar must specify an absolute path but is ${JAVA_HOME}/lib/tools.jar in com.oxygenxml:oxygen-annotations:20.1.0.2
The problem seems to be that ${JAVA_HOME} is not a valid maven variable (anymore ?). We should use ${java.home} instead.
If I replace ${JAVA_HOME} by ${java.home} in "oxygen-build-tools" pom.xml it actually fix the issue. Maybe you can take this into account for your subsequent release.
Thanks
Stéphane