nexus-public build problems - Sonatype Nexus Repository - Sonatype Community
nexus-public build problems
post by Sarath_Kumar_S on Apr 30, 2025
Hello Team,
I’m trying to build nexus-public using 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] 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] ------------------------------------------------------------------------