Description
Hi there!
I am trying to create cloudfoundry offline java package which is giving error as below.
Per instructions provided at https://github.com/cloudfoundry/java-buildpack#offline-package:
bundle install --- worked fine
bundle exec rake clean package --- worked fine
bundle exec rake clean package PINNED=true --- also worked fine
bundle exec rake clean package OFFLINE=true PINNED=true --- gives error
I am building this on ubuntu machine (details below):
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.3 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
Error snapshot:
bundle exec rake clean package OFFLINE=true PINNED=true
[DownloadCache] WARN Unable to download https://java-buildpack.cloudfoundry.org/groovy/index.yml into cache build/staging/resources/cache: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)
rake aborted!
Unable to find cached file for https://java-buildpack.cloudfoundry.org/groovy/index.yml
java-buildpack/lib/java_buildpack/util/cache/download_cache.rb:79:in get' java-buildpack/rakelib/dependency_cache_task.rb:147:in
get_from_cache'
java-buildpack/rakelib/dependency_cache_task.rb:139:in block (2 levels) in uris' java-buildpack/rakelib/dependency_cache_task.rb:137:in
each'
java-buildpack/rakelib/dependency_cache_task.rb:137:in block in uris' java-buildpack/rakelib/dependency_cache_task.rb:136:in
each'
java-buildpack/rakelib/dependency_cache_task.rb:136:in uris' java-buildpack/rakelib/dependency_cache_task.rb:48:in
initialize'
java-buildpack/Rakefile:42:in new' java-buildpack/Rakefile:42:in
<top (required)>'
/var/lib/gems/2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
Tried to start on a solution with https://stackoverflow.com/questions/44227963/cloudfoundry-buildpack-compilation-fails-due-to-certificate-issue but the file container_certificate_trust_store.rb itself is not present in the path lib\java_buildpack\framework
Additionally bundle exec rake versions gives the same error.
Thank you for any input on this.