I am building a java application on rasp-pi. The same application has been built as a snap before for amd64.
Here is the java part in my snapcraft.yaml:
main: build-packages: - openjdk-8-jre-headless stage-packages: - openjdk-8-jdk plugin: ant source: . override-build: | export JAVA_TO_USE="/usr/lib/jvm/java-8-openjdk-amd64" export JAVA_HOME="$SNAPCRAFT_PART_INSTALL$JAVA_TO_USE" ant mkdir $SNAPCRAFT_PART_INSTALL/jar mv $SNAPCRAFT_PART_BUILD/target/*.jar $SNAPCRAFT_PART_INSTALL/jar
The build fails with this error:
Could not find a required package in ‘build-packages’: openjdk-9-jdk-headless.
How can I instruct snapcraft not to look for Java 9. Or why is it failing to find this?