Oxygen SDK build error (pom.xml)

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
stoussaint
Posts: 1
Joined: Wed Sep 19, 2018 4:11 pm

Oxygen SDK build error (pom.xml)

Post by stoussaint » 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.
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

cristi_talau
Posts: 204
Joined: Thu Sep 04, 2014 4:22 pm

Re: Oxygen SDK build error (pom.xml)

Post by cristi_talau » Fri Sep 21, 2018 12:39 pm

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

Post Reply