Page 1 of 1

Oxygen SDK build error (pom.xml)

Posted: Wed Sep 19, 2018 4:20 pm
by stoussaint
Hi,

My build (gradle, but the problem is pom related ) is complaining that the systemPath for tools.jar is not well defined.
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
I do find an answer about this on StackOverflow (https://stackoverflow.com/a/19921467/923516).

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

Re: Oxygen SDK build error (pom.xml)

Posted: Fri Sep 21, 2018 12:39 pm
by cristi_talau
Hello,

You are right. You could even delete the whole dependency as it is not needed for the SDK. We will delete it in the next version.

Best,
Cristian