Mock Version: 2.10 Mock Version: 2.10 Mock Version: 2.10 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/maven2.spec'], chrootPath='/var/lib/mock/module-javapackages-tools-201902-8030020210612012006-a623df05-build-24527-4497/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=992gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/maven2.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: noarch Building for target noarch Wrote: /builddir/build/SRPMS/maven2-2.2.1-59.module+el8.3.0+101+f52793df.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/maven2.spec'], chrootPath='/var/lib/mock/module-javapackages-tools-201902-8030020210612012006-a623df05-build-24527-4497/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=992gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/maven2.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: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.LMma2Q + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf maven2-2.2.1 + /usr/bin/tar -xof /builddir/build/SOURCES/maven2-2.2.1.tar.gz + cd maven2-2.2.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #2 (maven2-2.2.1-update-tests.patch): + echo 'Patch #2 (maven2-2.2.1-update-tests.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .update-tests --fuzz=0 patching file ./maven-project/src/test/java/org/apache/maven/project/validation/DefaultModelValidatorTest.java Patch #4 (maven2-2.2.1-unshade.patch): + echo 'Patch #4 (maven2-2.2.1-unshade.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .unshade --fuzz=0 patching file ./apache-maven/pom.xml Patch #5 (maven2-2.2.1-default-resolver-pool-size.patch): + echo 'Patch #5 (maven2-2.2.1-default-resolver-pool-size.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .parallel-artifacts-resolution --fuzz=0 patching file maven-artifact-manager/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java Patch #6 (maven2-2.2.1-strip-jackrabbit-dep.patch): + echo 'Patch #6 (maven2-2.2.1-strip-jackrabbit-dep.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .strip-jackrabbit-dep --fuzz=0 patching file maven-core/pom.xml patching file pom.xml Patch #8 (maven2-2.2.1-migrate-to-plexus-containers-container-default.patch): + echo 'Patch #8 (maven2-2.2.1-migrate-to-plexus-containers-container-default.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .plexus-container --fuzz=0 patching file maven-project/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java + for nobuild in apache-maven maven-artifact-test maven-compat maven-core maven-plugin-api maven-plugin-parameter-documenter maven-reporting maven-repository-metadata maven-script maven-error-diagnostics + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_disable_module apache-maven + for nobuild in apache-maven maven-artifact-test maven-compat maven-core maven-plugin-api maven-plugin-parameter-documenter maven-reporting maven-repository-metadata maven-script maven-error-diagnostics + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_disable_module maven-artifact-test + for nobuild in apache-maven maven-artifact-test maven-compat maven-core maven-plugin-api maven-plugin-parameter-documenter maven-reporting maven-repository-metadata maven-script maven-error-diagnostics + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_disable_module maven-compat + for nobuild in apache-maven maven-artifact-test maven-compat maven-core maven-plugin-api maven-plugin-parameter-documenter maven-reporting maven-repository-metadata maven-script maven-error-diagnostics + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_disable_module maven-core + for nobuild in apache-maven maven-artifact-test maven-compat maven-core maven-plugin-api maven-plugin-parameter-documenter maven-reporting maven-repository-metadata maven-script maven-error-diagnostics + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_disable_module maven-plugin-api + for nobuild in apache-maven maven-artifact-test maven-compat maven-core maven-plugin-api maven-plugin-parameter-documenter maven-reporting maven-repository-metadata maven-script maven-error-diagnostics + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_disable_module maven-plugin-parameter-documenter + for nobuild in apache-maven maven-artifact-test maven-compat maven-core maven-plugin-api maven-plugin-parameter-documenter maven-reporting maven-repository-metadata maven-script maven-error-diagnostics + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_disable_module maven-reporting + for nobuild in apache-maven maven-artifact-test maven-compat maven-core maven-plugin-api maven-plugin-parameter-documenter maven-reporting maven-repository-metadata maven-script maven-error-diagnostics + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_disable_module maven-repository-metadata + for nobuild in apache-maven maven-artifact-test maven-compat maven-core maven-plugin-api maven-plugin-parameter-documenter maven-reporting maven-repository-metadata maven-script maven-error-diagnostics + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_disable_module maven-script + for nobuild in apache-maven maven-artifact-test maven-compat maven-core maven-plugin-api maven-plugin-parameter-documenter maven-reporting maven-repository-metadata maven-script maven-error-diagnostics + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_disable_module maven-error-diagnostics + /usr/bin/python3 /usr/share/java-utils/mvn_package.py :maven __noinstall + /usr/bin/python3 /usr/share/java-utils/mvn_file.py ':{*}' maven/@1 + /usr/bin/python3 /usr/share/java-utils/mvn_compat_version.py ':maven-{artifact,model,settings}' 2.0.2 2.0.6 2.0.7 2.0.8 2.2.1 + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_dep :backport-util-concurrent + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_dep :backport-util-concurrent maven-artifact-manager ++ find -name DefaultArtifactResolver.java + sed -i s/edu.emory.mathcs.backport.// ./maven-artifact-manager/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java +++ find -name pom.xml +++ grep -v /test/ ++ grep -l '>test<' ./maven-core-it-runner/pom.xml ./maven-integration-tests/pom.xml ./maven-profile/pom.xml ./maven-model/pom.xml ./maven-script/maven-script-ant/pom.xml ./maven-script/pom.xml ./maven-script/maven-script-beanshell/pom.xml ./maven-plugin-registry/pom.xml ./maven-compat/pom.xml ./maven-artifact-manager/pom.xml ./maven-core/pom.xml ./maven-plugin-descriptor/pom.xml ./maven-project/pom.xml ./apache-maven/pom.xml ./maven-error-diagnostics/pom.xml ./maven-plugin-api/pom.xml ./maven-toolchain/pom.xml ./maven-reporting/maven-reporting-api/pom.xml ./maven-reporting/pom.xml ./pom.xml ./maven-settings/pom.xml ./maven-repository-metadata/pom.xml ./maven-plugin-parameter-documenter/pom.xml ./maven-artifact-test/pom.xml ./maven-monitor/pom.xml ./maven-artifact/pom.xml + for pom in $(grep -l ">test<" $(find -name pom.xml | grep -v /test/)) + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_remove 'pom:dependency[pom:scope[text()='\''test'\'']]' ./maven-core-it-runner/pom.xml + for pom in $(grep -l ">test<" $(find -name pom.xml | grep -v /test/)) + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_remove 'pom:dependency[pom:scope[text()='\''test'\'']]' ./maven-script/maven-script-ant/pom.xml + for pom in $(grep -l ">test<" $(find -name pom.xml | grep -v /test/)) + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_remove 'pom:dependency[pom:scope[text()='\''test'\'']]' ./maven-artifact-manager/pom.xml + for pom in $(grep -l ">test<" $(find -name pom.xml | grep -v /test/)) + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_remove 'pom:dependency[pom:scope[text()='\''test'\'']]' ./maven-project/pom.xml + for pom in $(grep -l ">test<" $(find -name pom.xml | grep -v /test/)) + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_remove 'pom:dependency[pom:scope[text()='\''test'\'']]' ./maven-plugin-api/pom.xml + for pom in $(grep -l ">test<" $(find -name pom.xml | grep -v /test/)) + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_remove 'pom:dependency[pom:scope[text()='\''test'\'']]' ./maven-toolchain/pom.xml + for pom in $(grep -l ">test<" $(find -name pom.xml | grep -v /test/)) + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_remove 'pom:dependency[pom:scope[text()='\''test'\'']]' ./pom.xml + for pom in $(grep -l ">test<" $(find -name pom.xml | grep -v /test/)) + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_remove 'pom:dependency[pom:scope[text()='\''test'\'']]' ./maven-artifact/pom.xml + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ZbS4Ko + umask 022 + cd /builddir/build/BUILD + cd maven2-2.2.1 + /usr/bin/python3 /usr/share/java-utils/mvn_build.py --xmvn-javadoc -f -f -s -- -P all-models Executing: xmvn --batch-mode --offline -Dmaven.test.skip=true -P all-models 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', '-P', 'all-models', 'package', '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] Maven [pom] [INFO] Maven Artifact [jar] [INFO] Maven Artifact Manager [jar] [INFO] Maven Model [jar] [INFO] Maven Monitor [jar] [INFO] Maven Plugin Descriptor Model [jar] [INFO] Maven Plugin Registry Model [jar] [INFO] Maven Profile Model [jar] [INFO] Maven Local Settings Model [jar] [INFO] Maven Project Builder [jar] [INFO] Maven Toolchains [jar] [INFO] [INFO] -----------------------< org.apache.maven:maven >----------------------- [INFO] Building Maven 2.2.1 [1/11] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-maven-version) @ maven --- [INFO] [INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-jdk) @ maven --- [INFO] [INFO] --- maven-remote-resources-plugin:1.6.0:process (process-resource-bundles) @ maven --- [INFO] Preparing remote bundle org.apache:apache-jar-resource-bundle:1.4 [INFO] Copying 5 resources from 1 bundle. [INFO] [INFO] ------------------< org.apache.maven:maven-artifact >------------------- [INFO] Building Maven Artifact 2.2.1 [2/11] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-maven-version) @ maven-artifact --- [INFO] [INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-jdk) @ maven-artifact --- [INFO] [INFO] --- maven-remote-resources-plugin:1.6.0:process (process-resource-bundles) @ maven-artifact --- [INFO] Preparing remote bundle org.apache:apache-jar-resource-bundle:1.4 [INFO] Copying 5 resources from 1 bundle. [INFO] [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ maven-artifact --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 5 resources [INFO] [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ maven-artifact --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 64 source files to /builddir/build/BUILD/maven2-2.2.1/maven-artifact/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] Source option 5 is no longer supported. Use 6 or later. [ERROR] Target option 1.5 is no longer supported. Use 1.6 or later. [INFO] 2 errors [INFO] ------------------------------------------------------------- [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Skipping Maven [INFO] This project has been banned from the build due to previous failures. [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for Maven 2.2.1: [INFO] [INFO] Maven .............................................. SUCCESS [ 0.418 s] [INFO] Maven Artifact ..................................... FAILURE [ 0.411 s] [INFO] Maven Artifact Manager ............................. SKIPPED [INFO] Maven Model ........................................ SKIPPED [INFO] Maven Monitor ...................................... SKIPPED [INFO] Maven Plugin Descriptor Model ...................... SKIPPED [INFO] Maven Plugin Registry Model ........................ SKIPPED [INFO] Maven Profile Model ................................ SKIPPED [INFO] Maven Local Settings Model ......................... SKIPPED [INFO] Maven Project Builder .............................. SKIPPED [INFO] Maven Toolchains ................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.244 s [INFO] Finished at: 2021-06-12T16:12:46+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project maven-artifact: Compilation failure: Compilation failure: [ERROR] Source option 5 is no longer supported. Use 6 or later. [ERROR] Target option 1.5 is no longer supported. Use 1.6 or later. [ERROR] -> [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/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :maven-artifact error: Bad exit status from /var/tmp/rpm-tmp.ZbS4Ko (%build) Bad exit status from /var/tmp/rpm-tmp.ZbS4Ko (%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/maven2.spec