Mock Version: 2.15 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/owasp-java-encoder.spec'], chrootPath='/var/lib/mock/rocky-9-x86_64/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1003gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/owasp-java-encoder.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1618531200 Wrote: /builddir/build/SRPMS/owasp-java-encoder-1.2.2-6.el9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/owasp-java-encoder.spec'], chrootPath='/var/lib/mock/rocky-9-x86_64/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1003gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/owasp-java-encoder.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1618531200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.moduWd + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf owasp-java-encoder-1.2.2 + /usr/bin/gzip -dc /builddir/build/SOURCES/v1.2.2.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd owasp-java-encoder-1.2.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (0_bundle-packaging.patch): + echo 'Patch #0 (0_bundle-packaging.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file core/pom.xml Patch #1 (1_update-compiler-plugin-version.patch): + echo 'Patch #1 (1_update-compiler-plugin-version.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file pom.xml + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_disable_module jsp + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_disable_module esapi + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin org.apache.maven.plugins:maven-javadoc-plugin + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin :cobertura-maven-plugin + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_parent + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.IoaKNl + umask 022 + cd /builddir/build/BUILD + cd owasp-java-encoder-1.2.2 + /usr/bin/python3 /usr/share/java-utils/mvn_build.py --xmvn-javadoc Executing: xmvn --batch-mode --offline verify org.fedoraproject.xmvn:xmvn-mojo:install org.fedoraproject.xmvn:xmvn-mojo:javadoc org.fedoraproject.xmvn:xmvn-mojo:builddep ['xmvn', '--batch-mode', '--offline', 'verify', 'org.fedoraproject.xmvn:xmvn-mojo:install', 'org.fedoraproject.xmvn:xmvn-mojo:javadoc', 'org.fedoraproject.xmvn:xmvn-mojo:builddep'] [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] OWASP Java Encoder Project [pom] [INFO] Java Encoder [bundle] [INFO] [INFO] ------------------< org.owasp.encoder:encoder-parent >------------------ [INFO] Building OWASP Java Encoder Project 1.2.2 [1/2] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] >>> maven-source-plugin:3.2.1:jar (attach-sources) > generate-sources @ encoder-parent >>> [INFO] [INFO] <<< maven-source-plugin:3.2.1:jar (attach-sources) < generate-sources @ encoder-parent <<< [INFO] [INFO] [INFO] --- maven-source-plugin:3.2.1:jar (attach-sources) @ encoder-parent --- [INFO] [INFO] ---------------------< org.owasp.encoder:encoder >---------------------- [INFO] Building Java Encoder 1.2.2 [2/2] [INFO] -------------------------------[ bundle ]------------------------------- [WARNING] The POM for junit:junit:jar:3.8.2 is missing, no dependency information available [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Skipping OWASP Java Encoder Project [INFO] This project has been banned from the build due to previous failures. [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for OWASP Java Encoder Project 1.2.2: [INFO] [INFO] OWASP Java Encoder Project ......................... SUCCESS [ 0.124 s] [INFO] Java Encoder ....................................... FAILURE [ 0.035 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.824 s [INFO] Finished at: 2022-04-24T10:11:38Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project encoder: Could not resolve dependencies for project org.owasp.encoder:encoder:bundle:1.2.2: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact junit:junit:jar:3.8.2 has not been downloaded from it before. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :encoder RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.IoaKNl (%build) Bad exit status from /var/tmp/rpm-tmp.IoaKNl (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/owasp-java-encoder.spec