Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/junit.spec'], chrootPath='/var/lib/mock/module-javapackages-tools-201902-8020020210328023913-ff983833-build-14927-2428/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=86400uid=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/junit.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 warning: Macro expanded in comment on line 9: %{version} Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/junit-4.12-11.module+el8.2.0+10087+df274a06.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/junit.spec'], chrootPath='/var/lib/mock/module-javapackages-tools-201902-8020020210328023913-ff983833-build-14927-2428/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=86400uid=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/junit.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 warning: Macro expanded in comment on line 9: %{version} Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.fuiJEI + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf junit-r4.12 + /usr/bin/gzip -dc /builddir/build/SOURCES/junit-4.12-clean.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd junit-r4.12 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (0001-Port-to-hamcrest-2.1.patch):' Patch #1 (0001-Port-to-hamcrest-2.1.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/main/java/org/junit/internal/matchers/StacktracePrintingMatcher.java patching file src/main/java/org/junit/internal/matchers/ThrowableCauseMatcher.java patching file src/main/java/org/junit/internal/matchers/ThrowableMessageMatcher.java patching file src/main/java/org/junit/matchers/JUnitMatchers.java patching file src/test/java/org/junit/tests/experimental/theories/runner/WithDataPointMethod.java Patch #2 (0002-Port-to-OpenJDK-11.patch): + echo 'Patch #2 (0002-Port-to-OpenJDK-11.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/test/java/org/junit/runners/model/TestClassTest.java patching file src/test/java/org/junit/tests/running/core/MainRunner.java + sed -i /InaccessibleBaseClassTest/d src/test/java/org/junit/tests/AllTests.java + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_remove_plugin :replacer + sed s/@version@/4.12/ src/main/java/junit/runner/Version.java.template + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_remove_plugin :animal-sniffer-maven-plugin + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_remove_plugin :maven-javadoc-plugin + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_xpath_inject pom:project 'bundle' + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_xpath_inject pom:build/pom:plugins ' org.apache.felix maven-bundle-plugin true org.junit {local-packages},!org.hamcrest*,*;x-internal:=true <_nouses>true ' + /usr/libexec/platform-python /usr/share/java-utils/mvn_file.py : junit + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Q3QbVy + umask 022 + cd /builddir/build/BUILD + cd junit-r4.12 + /usr/libexec/platform-python /usr/share/java-utils/mvn_build.py --xmvn-javadoc -f -- -DjdkVersion=1.6 Executing: xmvn --batch-mode --offline -Dmaven.test.skip=true -DjdkVersion=1.6 package org.fedoraproject.xmvn:xmvn-mojo:install org.fedoraproject.xmvn:xmvn-mojo:javadoc org.fedoraproject.xmvn:xmvn-mojo:builddep ['xmvn', '--batch-mode', '--offline', '-Dmaven.test.skip=true', '-DjdkVersion=1.6', 'package', 'org.fedoraproject.xmvn:xmvn-mojo:install', 'org.fedoraproject.xmvn:xmvn-mojo:javadoc', 'org.fedoraproject.xmvn:xmvn-mojo:builddep'] [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for junit:junit:bundle:4.12 [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 135, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [WARNING] The project junit:junit:bundle:4.12 uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html [INFO] [INFO] ----------------------------< junit:junit >----------------------------- [INFO] Building JUnit 4.12 [INFO] -------------------------------[ bundle ]------------------------------- [INFO] [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ junit --- [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Skipping JUnit [INFO] This project has been banned from the build due to previous failures. [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.697 s [INFO] Finished at: 2021-04-09T10:07:22+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] UndeclaredThrowableException: InvocationTargetException: Unable to parse configuration of mojo org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce for parameter requireNoRepositories: Cannot create instance of class org.apache.maven.plugins.enforcer.RequireNoRepositories: org/apache/maven/shared/artifact/resolve/ArtifactResolverException: org.apache.maven.shared.artifact.resolve.ArtifactResolverException [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: Bad exit status from /var/tmp/rpm-tmp.Q3QbVy (%build) Macro expanded in comment on line 9: %{version} Bad exit status from /var/tmp/rpm-tmp.Q3QbVy (%build) RPM build errors: 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 noarch --nodeps /builddir/build/SPECS/junit.spec