Hello Team,
I’m trying to build nexus-publicusing the below command by skipping the tests as I had problems when building without skiptests.
./mvnw clean install -DskipTests -Dpublic
When running with skipTests with debug I’m receiving the below error. Can you guide me on how to resolve this issue?
Tools installed:
Java 17, maven, yarn, node.
[INFO] --- frontend:1.11.3:yarn (yarn install) @ nexus-ui-plugin ---
[DEBUG] Loading mojo com.github.eirslett:frontend-maven-plugin:1.11.3:yarn from plugin realm ClassRealm[plugin>com.github.eirslett:frontend-maven-plugin:1.11.3, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@30946e09]
[DEBUG] Configuring mojo execution 'com.github.eirslett:frontend-maven-plugin:1.11.3:yarn:yarn install' with basic configurator -->
[DEBUG] (f) arguments = install --immutable
[DEBUG] (f) environmentVariables = {CI=true, JEST_SUITE_NAME=React-Tests}
[DEBUG] (f) installDirectory = /home/ec2-user/nexus-public/components/nexus-ui-plugin/target
[DEBUG] (f) project = MavenProject: org.sonatype.nexus:nexus-ui-plugin:3.77.2-02 @ /home/ec2-user/nexus-public/components/nexus-ui-plugin/pom.xml
[DEBUG] (f) repositorySystemSession = org.eclipse.aether.DefaultRepositorySystemSession@75321ba4
[DEBUG] (f) session = org.apache.maven.execution.MavenSession@223cbf0d
[DEBUG] (f) skipTests = true
[DEBUG] (f) testFailureIgnore = false
[DEBUG] (f) workingDirectory = /home/ec2-user/nexus-public/components/nexus-ui-plugin
[DEBUG] (f) yarnInheritsProxyConfigFromMaven = true
[DEBUG] (f) execution = com.github.eirslett:frontend-maven-plugin:1.11.3:yarn {execution: yarn install}
[DEBUG] -- end configuration --
[DEBUG] Starting mojo execution: yarn install:yarn:generate-resources:frontend-maven-plugin:com.github.eirslett, class: class com.github.eirslett.maven.plugins.frontend.mojo.YarnMojo
[INFO] Running 'yarn install --immutable' in /home/ec2-user/nexus-public/components/nexus-ui-plugin
[DEBUG] Executing command line [/home/ec2-user/nexus-public/components/nexus-ui-plugin/target/node/yarn/dist/bin/yarn, install, --immutable]
[INFO] yarn install v1.22.19
[INFO] [1/4] Resolving packages...
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > @babel/plugin-proposal-class-properties@7.16.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > @babel/plugin-proposal-optional-chaining@7.16.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-rapture > @babel/plugin-proposal-optional-chaining@7.16.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-coreui-plugin > @babel/plugin-proposal-optional-chaining@7.16.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > @babel/preset-env > @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > @babel/preset-env > @babel/plugin-proposal-optional-chaining@7.21.0: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-rapture > babel-polyfill > core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > node-gyp > glob@7.2.3: Glob versions prior to v9 are no longer supported
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > @babel/cli > glob@7.2.3: Glob versions prior to v9 are no longer supported
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > cpx > glob@7.2.3: Glob versions prior to v9 are no longer supported
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > node-gyp > npmlog@4.1.2: This package is no longer supported.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > node-gyp > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > node-gyp > rimraf > glob@7.2.3: Glob versions prior to v9 are no longer supported
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > cpx > babel-runtime > core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > @babel/preset-env > @babel/plugin-proposal-json-strings@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-json-strings instead.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > @babel/preset-env > @babel/plugin-proposal-dynamic-import@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-dynamic-import instead.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > @babel/preset-env > @babel/plugin-proposal-private-methods@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > @babel/preset-env > @babel/plugin-proposal-numeric-separator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > @babel/preset-env > @babel/plugin-proposal-class-static-block@7.21.0: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-static-block instead.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > @babel/preset-env > @babel/plugin-proposal-object-rest-spread@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > @babel/preset-env > @babel/plugin-proposal-export-namespace-from@7.18.9: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-export-namespace-from instead.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > @babel/preset-env > @babel/plugin-proposal-unicode-property-regex@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-unicode-property-regex instead.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > @babel/preset-env > @babel/preset-modules > @babel/plugin-proposal-unicode-property-regex@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-unicode-property-regex instead.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > @babel/preset-env > @babel/plugin-proposal-optional-catch-binding@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-catch-binding instead.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > @babel/preset-env > @babel/plugin-proposal-private-property-in-object@7.21.11: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-property-in-object instead.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > @babel/preset-env > @babel/plugin-proposal-async-generator-functions@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > @babel/preset-env > @babel/plugin-proposal-logical-assignment-operators@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-logical-assignment-operators instead.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > @babel/preset-env > @babel/plugin-proposal-nullish-coalescing-operator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-rapture > webpack > acorn-import-assertions@1.9.0: package has been renamed to acorn-import-attributes
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-coreui-plugin > swagger-ui-react > patch-package > rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-coreui-plugin > swagger-ui-react > patch-package > rimraf > glob@7.2.3: Glob versions prior to v9 are no longer supported
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > node-gyp > glob > inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > node-gyp > npmlog > gauge@2.7.4: This package is no longer supported.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > node-gyp > npmlog > are-we-there-yet@1.1.7: This package is no longer supported.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > @sonatype/react-shared-components > @types/classnames@2.3.4: This is a stub types definition. classnames provides its own type definitions, so you do not need this installed.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > node-gyp > make-fetch-happen > cacache > glob@7.2.3: Glob versions prior to v9 are no longer supported
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > node-gyp > make-fetch-happen > cacache > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > cpx > chokidar > fsevents@1.2.13: Upgrade to fsevents v2 to mitigate potential security issues
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > @testing-library/jest-dom > css > source-map-resolve@0.6.0: See https://github.com/lydell/source-map-resolve#deprecated
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > jest > jest-cli > jest-config > glob@7.2.3: Glob versions prior to v9 are no longer supported
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > jest > @jest/core > jest-runtime > glob@7.2.3: Glob versions prior to v9 are no longer supported
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > jest > @jest/core > @jest/reporters > glob@7.2.3: Glob versions prior to v9 are no longer supported
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-coreui-plugin > babel-jest > babel-plugin-istanbul > test-exclude > glob@7.2.3: Glob versions prior to v9 are no longer supported
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-coreui-plugin > jest-when > bunyan > mv > rimraf@2.4.5: Rimraf versions prior to v4 are no longer supported
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-coreui-plugin > jest-when > bunyan > mv > rimraf > glob@6.0.4: Glob versions prior to v9 are no longer supported
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-coreui-plugin > jest-when > bunyan > mv > rimraf > glob > inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-coreui-plugin > jest-environment-jsdom > jsdom > abab@2.0.6: Use your platform's native atob() and btoa() methods instead
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-coreui-plugin > jest-environment-jsdom > jsdom > data-urls > abab@2.0.6: Use your platform's native atob() and btoa() methods instead
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-coreui-plugin > jest-environment-jsdom > jsdom > domexception@4.0.0: Use your platform's native DOMException instead
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > node-gyp > make-fetch-happen > cacache > @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > node-gyp > make-fetch-happen > cacache > @npmcli/move-file > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > cpx > chokidar > readdirp > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-coreui-plugin > swagger-ui-react > swagger-client > node-fetch-commonjs > node-domexception@1.0.0: Use your platform's native DOMException instead
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > cpx > chokidar > readdirp > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > cpx > chokidar > readdirp > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-ui-plugin > cpx > chokidar > readdirp > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
[INFO] warning workspace-aggregator-6ea62903-5e21-4436-b931-1deaaf929fb5 > @sonatype/nexus-rapture > css-minimizer-webpack-plugin > cssnano > cssnano-preset-default > postcss-svgo > svgo > stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
[INFO] error Couldn't find package "@sonatype/nexus-ui-plugin@workspace:*" required by "@sonatype/nexus-rapture@0.1.0" on the "npm" registry.
[INFO] info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[INFO] Error: Couldn't find package "@sonatype/nexus-ui-plugin@workspace:*" required by "@sonatype/nexus-coreui-plugin@0.1.0" on the "npm" registry.
[INFO] at MessageError.ExtendableBuiltin (/home/ec2-user/nexus-public/components/nexus-ui-plugin/target/node/yarn/dist/lib/cli.js:721:66)
[INFO] at new MessageError (/home/ec2-user/nexus-public/components/nexus-ui-plugin/target/node/yarn/dist/lib/cli.js:750:123)
[INFO] at PackageRequest.<anonymous> (/home/ec2-user/nexus-public/components/nexus-ui-plugin/target/node/yarn/dist/lib/cli.js:36590:17)
[INFO] at Generator.throw (<anonymous>)
[INFO] at step (/home/ec2-user/nexus-public/components/nexus-ui-plugin/target/node/yarn/dist/lib/cli.js:310:30)
[INFO] at /home/ec2-user/nexus-public/components/nexus-ui-plugin/target/node/yarn/dist/lib/cli.js:323:13
[INFO] at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[INFO] ------------------------------------------------------------------------