如何在构建快照时添加JavaFXSDK

如何在构建快照时添加JavaFXSDK,java,javafx,ant,snapcraft,Java,Javafx,Ant,Snapcraft,我正试图从我的Javafx项目中抓拍一下。我正在学习如何创建快照,所以我对它的工作原理不太了解。我目前正在snap.yaml中使用ant进行构建,但是当我运行snapcraft命令时,我得到一个错误,即它在我自己的系统中的目录中找不到JavaFXSDK 我的问题是如何添加sdk,使其始终随snap的安装一起提供,或者我可以以某种方式以更好的方式构建此项目 错误 compile.module.apptest.production: [mkdir] Created dir: /root/pa

我正试图从我的Javafx项目中抓拍一下。我正在学习如何创建快照,所以我对它的工作原理不太了解。我目前正在snap.yaml中使用ant进行构建,但是当我运行snapcraft命令时,我得到一个错误,即它在我自己的系统中的目录中找不到JavaFXSDK

我的问题是如何添加sdk,使其始终随snap的安装一起提供,或者我可以以某种方式以更好的方式构建此项目

错误

compile.module.apptest.production:
    [mkdir] Created dir: /root/parts/my-part/build/out/production/appTest
    [javac] /root/parts/my-part/build/module_apptest.xml:96: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 2 source files to /root/parts/my-part/build/out/production/appTest

BUILD FAILED
/root/parts/my-part/build/module_apptest.xml:96: /home/issenisse/Downloads/javafx-sdk-15.0.1/lib does not exist.
Snap.yaml

我最后尝试的是在构建时添加openjfx

name: test-app
base: core18 # the base snap is the execution environment for this snap
version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
summary: Single-line elevator pitch for your amazing snap # 79 char long summary
description: |
  This is my-snap's description. You have a paragraph or two to tell the
  most important story about your snap. Keep it under 100 words though,
  we live in tweetspace and your description wants to look good in the snap
  store.

grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots

parts:
  my-part:
    # See 'snapcraft plugins'
    plugin: ant
    ant-buildfile: build.xml
    ant-openjdk-version: "11"
    source: .
    build-snaps:
      - openjfx