Gradle Build perspective-component No PSK Available

I am trying to build the perspective-component using gradlew.bat and I am receiving this output. It looks to me like it cannot get some file from the nexus repo, but I am not sure why.

C:\ignitionModuleDev\ignition-sdk-examples\perspective-component>gradlew.bat build
Type-safe project accessors is an incubating feature.

> Configure project :web
Build was configured to prefer settings repositories over project repositories but repository 'Node.js' was added by plugin 'com.github.node-gradle.node'

> Task :web:yarnPackages
yarn install v1.22.18
verbose 0.2488793 Checking for configuration file "C:\\ignitionModuleDev\\ignition-sdk-examples\\perspective-component\\web\\.npmrc".
verbose 0.24944 Found configuration file "C:\\ignitionModuleDev\\ignition-sdk-examples\\perspective-component\\web\\.npmrc".
verbose 0.2499985 Checking for configuration file "C:\\Users\\Jonathan Swisher\\.npmrc".
verbose 0.2503818 Checking for configuration file "C:\\ignitionModuleDev\\ignition-sdk-examples\\perspective-component\\web\\.gradle\\nodejs\\node-v16.15.0-win-x64\\etc\\npmrc".
verbose 0.2509063 Checking for configuration file "C:\\ignitionModuleDev\\ignition-sdk-examples\\perspective-component\\web\\.npmrc".
verbose 0.251218 Found configuration file "C:\\ignitionModuleDev\\ignition-sdk-examples\\perspective-component\\web\\.npmrc".
verbose 0.2518856 Checking for configuration file "C:\\ignitionModuleDev\\ignition-sdk-examples\\perspective-component\\.npmrc".
verbose 0.2522345 Checking for configuration file "C:\\ignitionModuleDev\\ignition-sdk-examples\\.npmrc".
verbose 0.2529833 Checking for configuration file "C:\\ignitionModuleDev\\.npmrc".
verbose 0.2583105 Checking for configuration file "C:\\ignitionModuleDev\\ignition-sdk-examples\\perspective-component\\web\\.yarnrc".
verbose 0.2588995 Found configuration file "C:\\ignitionModuleDev\\ignition-sdk-examples\\perspective-component\\web\\.yarnrc".
verbose 0.25966 Checking for configuration file "C:\\Users\\Jonathan Swisher\\.yarnrc".
verbose 0.2600139 Checking for configuration file "C:\\ignitionModuleDev\\ignition-sdk-examples\\perspective-component\\web\\.gradle\\nodejs\\node-v16.15.0-win-x64\\etc\\yarnrc".
verbose 0.2608831 Checking for configuration file "C:\\ignitionModuleDev\\ignition-sdk-examples\\perspective-component\\web\\.yarnrc".
verbose 0.2612543 Found configuration file "C:\\ignitionModuleDev\\ignition-sdk-examples\\perspective-component\\web\\.yarnrc".
verbose 0.2619875 Checking for configuration file "C:\\ignitionModuleDev\\ignition-sdk-examples\\perspective-component\\.yarnrc".
verbose 0.2623389 Checking for configuration file "C:\\ignitionModuleDev\\ignition-sdk-examples\\.yarnrc".
verbose 0.2626292 Checking for configuration file "C:\\ignitionModuleDev\\.yarnrc".
verbose 0.2727152 current time: 2023-01-18T19:52:23.223Z
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.90s.

> Task :web:webpack

> web-example@1.0.0 build
> lerna run build


> Task :designer:compileJava FAILED

> Task :web:webpack
lerna notice cli v3.22.1
lerna info Executing command in 2 packages: "yarn run build"
lerna info run Ran npm script 'build' in '@myCompanyNamespace/example-client' in 18.9s:
yarn run v1.22.18
$ yarn run clean && webpack --mode development
$ rimraf dist .awcache
copying [object Object] into C:\ignitionModuleDev\ignition-sdk-examples\perspective-component\web\build\generated-resources\mounted...
copying [object Object] into C:\ignitionModuleDev\ignition-sdk-examples\perspective-component\web\build\generated-resources\mounted...
assets by path typings/ 9.99 KiB
  assets by path typings/components/*.ts 7.71 KiB
    asset typings/components/Messenger.d.ts 5.86 KiB [emitted]
    asset typings/components/TagCounter.d.ts 1.25 KiB [emitted]
    asset typings/components/Image.d.ts 617 bytes [emitted]
  asset typings/stores/CustomValueStore.d.ts 1.42 KiB [emitted]
  asset typings/util/Poller.d.ts 640 bytes [emitted]
  asset typings/rad-client-components.d.ts 237 bytes [emitted]
assets by chunk 83.9 KiB (name: RadComponents)
  asset RadComponents.js 82.7 KiB [emitted] (name: RadComponents) 1 related asset
  asset RadComponents.css 1.21 KiB [emitted] (name: RadComponents)
Entrypoint RadComponents 83.9 KiB (90 KiB) = RadComponents.css 1.21 KiB RadComponents.js 82.7 KiB 1 auxiliary asset
orphan modules 3.31 KiB [orphan] 2 modules
lernayarn run v1.22.18
$ yarn run clean && webpack --mode development
 info run Ran npm script 'build' in '@myCompanyNamespace/example-designer' in 4.1s:
$ rimraf dist .awcacheind-decorator/index.js 1.01 KiB [built] [code generated]
copying C:\ignitionModuleDev\ignition-sdk-examples\perspective-component\web\packages\designer\dist\RadDesignComponents.js...
asset RadDesignComponents.js 2.39 KiB [emitted] (name: RadDesignComponents)
asset typings/rad-designer-components.d.ts 0 bytes [emitted]
./typescript/rad-designer-components.ts 101 bytes [built] [code generated]
lernawebpack 5.72.0 compiled successfully in 2140 ms
Done in 3.82s.ath ./scss/*.scss 50 bytes (javascript) 802 bytes (css/mini-extract)
 success run Ran npm script 'build' in 2 packages in 23.0s:
lerna success - @myCompanyNamespace/example-client?ruleSet[1].rules[1].use[1]!../../node_modules/sass-loader/dist/cjs.js!./scss/main.scss 802 bytes [built] [code generated]
lerna success - @myCompanyNamespace/example-designergenerated]

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':designer:compileJava'.
> Could not resolve all files for configuration ':designer:compileClasspath'.
   > Could not download jsr305-3.0.1.jar (com.google.code.findbugs:jsr305:3.0.1)
      > Could not get resource 'https://nexus.inductiveautomation.com/repository/public/com/google/code/findbugs/jsr305/3.0.1/jsr305-3.0.1.jar'.
         > Could not GET 'https://nexus.inductiveautomation.com/repository/public/com/google/code/findbugs/jsr305/3.0.1/jsr305-3.0.1.jar'.
            > No PSK available. Unable to resume.
   > Could not download designer-8.1.16.jar (com.inductiveautomation.ignition:designer:8.1.16)
      > Could not get resource 'https://nexus.inductiveautomation.com/repository/public/com/inductiveautomation/ignition/designer/8.1.16/designer-8.1.16.jar'.
         > Could not GET 'https://nexus.inductiveautomation.com/repository/public/com/inductiveautomation/ignition/designer/8.1.16/designer-8.1.16.jar'.
            > peer not authenticated
   > Could not download client-api-8.1.16.jar (com.inductiveautomation.ignition:client-api:8.1.16)
      > Could not get resource 'https://nexus.inductiveautomation.com/repository/public/com/inductiveautomation/ignition/client-api/8.1.16/client-api-8.1.16.jar'.
         > Could not GET 'https://nexus.inductiveautomation.com/repository/public/com/inductiveautomation/ignition/client-api/8.1.16/client-api-8.1.16.jar'.
            > No PSK available. Unable to resume.
   > Could not download client-bootstrap-8.1.16.jar (com.inductiveautomation.ignition:client-bootstrap:8.1.16)
      > Could not get resource 'https://nexus.inductiveautomation.com/repository/public/com/inductiveautomation/ignition/client-bootstrap/8.1.16/client-bootstrap-8.1.16.jar'.
         > Could not GET 'https://nexus.inductiveautomation.com/repository/public/com/inductiveautomation/ignition/client-bootstrap/8.1.16/client-bootstrap-8.1.16.jar'.
            > No PSK available. Unable to resume.
   > Could not download active-query-builder-8.1.16.jar (com.inductiveautomation.ignition:active-query-builder:8.1.16)
      > Could not get resource 'https://nexus.inductiveautomation.com/repository/public/com/inductiveautomation/ignition/active-query-builder/8.1.16/active-query-builder-8.1.16.jar'.
         > Could not GET 'https://nexus.inductiveautomation.com/repository/public/com/inductiveautomation/ignition/active-query-builder/8.1.16/active-query-builder-8.1.16.jar'.
            > No PSK available. Unable to resume.
   > Could not download ignition-laf-3.1.0-beta8.jar (com.inductiveautomation.plaf:ignition-laf:3.1.0-beta8)
      > Could not get resource 'https://nexus.inductiveautomation.com/repository/public/com/inductiveautomation/plaf/ignition-laf/3.1.0-beta8/ignition-laf-3.1.0-beta8.jar'.
         > Could not GET 'https://nexus.inductiveautomation.com/repository/public/com/inductiveautomation/plaf/ignition-laf/3.1.0-beta8/ignition-laf-3.1.0-beta8.jar'.
            > No PSK available. Unable to resume.
   > Could not download jydocking-3.4.0.jar (de.javasoft:jydocking:3.4.0)
      > Could not get resource 'https://nexus.inductiveautomation.com/repository/public/de/javasoft/jydocking/3.4.0/jydocking-3.4.0.jar'.
         > Could not GET 'https://nexus.inductiveautomation.com/repository/public/de/javasoft/jydocking/3.4.0/jydocking-3.4.0.jar'.
            > peer not authenticated

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 37s
12 actionable tasks: 8 executed, 4 up-to-date

apparently I had a version of the jdk that had a bug in it. changed to openJdk 11.0.17+8 and now it builds the module.

1 Like

I have solved the problem in another way, which is to add -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 after the gradlew build script,
like this gradlew build -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2