Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/maven.spec'], chrootPath='/var/lib/mock/dist-an23-build-264614-63964/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=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/maven.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 setting SOURCE_DATE_EPOCH=1681344000 Wrote: /builddir/build/SRPMS/maven-3.9.1-1.an23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/maven.spec'], chrootPath='/var/lib/mock/dist-an23-build-264614-63964/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=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/maven.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 setting SOURCE_DATE_EPOCH=1681344000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.q0Lh5k + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf apache-maven-3.9.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/apache-maven-3.9.1-src.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd apache-maven-3.9.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + find -name '*.java' -exec sed -i 's/\r//' '{}' + + find -name pom.xml -exec sed -i 's/\r//' '{}' + + echo 'Patch #1 (0001-Adapt-mvn-script.patch):' Patch #1 (0001-Adapt-mvn-script.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file apache-maven/src/bin/mvn + echo 'Patch #2 (0002-Invoke-logback-via-reflection.patch):' Patch #2 (0002-Invoke-logback-via-reflection.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file maven-embedder/src/main/java/org/apache/maven/cli/logging/impl/LogbackConfiguration.java + echo 'Patch #3 (0003-Remove-dependency-on-powermock.patch):' Patch #3 (0003-Remove-dependency-on-powermock.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file maven-model-builder/src/test/java/org/apache/maven/model/interpolation/StringSearchModelInterpolatorTest.java + find -name '*.jar' -not -path '*/test/*' -delete + find -name '*.class' -delete + find -name '*.bat' -delete + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_dep -r :powermock-reflect + sed -i 's:\r::' apache-maven/src/conf/settings.xml + sed -i -E 's/[$][{]sisuVersion[}]/0.3.5/g' pom.xml + rm apache-maven/src/main/appended-resources/META-INF/LICENSE.vm + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin -r :animal-sniffer-maven-plugin + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin -r :apache-rat-plugin + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin -r :maven-site-plugin + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin -r :buildnumber-maven-plugin ++ find -name build.properties + sed -i ' /buildNumber=/ { s/=.*/=Anolis 3.9.1-1.an23/ s/.an23$// } /timestamp=/ d ' ./maven-core/src/main/resources/org/apache/maven/messages/build.properties ./maven-core/src/test/resources/projects/build.properties + /usr/bin/python3 /usr/share/java-utils/mvn_package.py :apache-maven __noinstall + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_change_dep :jansi :::runtime maven-embedder + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_dep -r :logback-classic + /usr/bin/python3 /usr/share/java-utils/mvn_alias.py :maven-resolver-provider :maven-aether-provider + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin :plexus-component-metadata maven-model-builder + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_add_plugin org.eclipse.sisu:sisu-maven-plugin maven-model-builder + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.q34UKb + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd apache-maven-3.9.1 + PATH=/usr/libexec/javapackages-bootstrap:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + /usr/bin/python3 /usr/share/java-utils/mvn_build.py --xmvn-javadoc -- -Dproject.build.sourceEncoding=UTF-8 Executing: xmvn --batch-mode --offline -Dproject.build.sourceEncoding=UTF-8 verify org.fedoraproject.xmvn:xmvn-mojo:install org.fedoraproject.xmvn:xmvn-mojo:javadoc org.fedoraproject.xmvn:xmvn-mojo:builddep ['xmvn', '--batch-mode', '--offline', '-Dproject.build.sourceEncoding=UTF-8', 'verify', 'org.fedoraproject.xmvn:xmvn-mojo:install', 'org.fedoraproject.xmvn:xmvn-mojo:javadoc', 'org.fedoraproject.xmvn:xmvn-mojo:builddep'] [INFO] Scanning for projects... [WARNING] Ignoring metadata for artifact commons-logging:commons-logging:jar:SYSTEM as it has duplicate metadata [WARNING] Ignoring metadata for artifact org.apache.commons:commons-logging:jar:SYSTEM as it has duplicate metadata [WARNING] Ignoring metadata for artifact apache:commons-logging:jar:SYSTEM as it has duplicate metadata [WARNING] Ignoring metadata for artifact commons-logging:commons-logging:pom:SYSTEM as it has duplicate metadata [WARNING] Ignoring metadata for artifact org.apache.commons:commons-logging:pom:SYSTEM as it has duplicate metadata [WARNING] Ignoring metadata for artifact apache:commons-logging:pom:SYSTEM as it has duplicate metadata [WARNING] Ignoring metadata for artifact commons-logging:commons-logging-api:jar:SYSTEM as it has duplicate metadata [WARNING] Ignoring metadata for artifact org.apache.commons:commons-logging-api:jar:SYSTEM as it has duplicate metadata [WARNING] Ignoring metadata for artifact apache:commons-logging-api:jar:SYSTEM as it has duplicate metadata [WARNING] Ignoring metadata for artifact commons-logging:commons-logging-api:pom:SYSTEM as it has duplicate metadata [WARNING] Ignoring metadata for artifact org.apache.commons:commons-logging-api:pom:SYSTEM as it has duplicate metadata [WARNING] Ignoring metadata for artifact apache:commons-logging-api:pom:SYSTEM as it has duplicate metadata [WARNING] Ignoring metadata for artifact org.slf4j:slf4j-api:jar:SYSTEM as it has duplicate metadata [WARNING] Ignoring metadata for artifact org.slf4j:slf4j-api:pom:SYSTEM as it has duplicate metadata [WARNING] Ignoring metadata for artifact org.slf4j:slf4j-simple:jar:SYSTEM as it has duplicate metadata [WARNING] Ignoring metadata for artifact org.slf4j:slf4j-simple:jar:sources:SYSTEM as it has duplicate metadata [WARNING] Ignoring metadata for artifact org.slf4j:slf4j-simple:pom:SYSTEM as it has duplicate metadata [WARNING] Ignoring metadata for artifact org.slf4j:slf4j-nop:jar:SYSTEM as it has duplicate metadata [WARNING] Ignoring metadata for artifact org.slf4j:slf4j-nop:pom:SYSTEM as it has duplicate metadata [WARNING] [WARNING] Some problems were encountered while building the effective model for org.apache.maven:maven-core:jar:3.9.1 [WARNING] 'build.plugins.plugin.version' for org.eclipse.sisu:sisu-maven-plugin is missing. @ line 179, column 15 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.apache.maven:maven-settings-builder:jar:3.9.1 [WARNING] 'build.plugins.plugin.version' for org.eclipse.sisu:sisu-maven-plugin is missing. @ line 70, column 15 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.apache.maven:maven-resolver-provider:jar:3.9.1 [WARNING] 'build.plugins.plugin.version' for org.eclipse.sisu:sisu-maven-plugin is missing. @ line 131, column 15 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.apache.maven:maven-embedder:jar:3.9.1 [WARNING] 'build.plugins.plugin.version' for org.eclipse.sisu:sisu-maven-plugin is missing. @ line 167, column 15 [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] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] Apache Maven [pom] [INFO] Maven Model [jar] [INFO] Maven Artifact [jar] [INFO] Maven Plugin API [jar] [INFO] Maven Builder Support [jar] [INFO] Maven Model Builder [jar] [INFO] Maven Settings [jar] [INFO] Maven Settings Builder [jar] [INFO] Maven Repository Metadata Model [jar] [INFO] Maven Artifact Resolver Provider [jar] [INFO] Maven Core [jar] [INFO] Maven SLF4J Simple Provider [jar] [INFO] Maven Embedder [jar] [INFO] Maven Compat [jar] [INFO] Apache Maven Distribution [pom] [INFO] [INFO] -----------------------< org.apache.maven:maven >----------------------- [INFO] Building Apache Maven 3.9.1 [1/15] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-enforcer-plugin:3.0.0.MBI:enforce (enforce-maven-version) @ maven --- [WARNING] The POM for org.slf4j:slf4j-api:jar:SYSTEM is missing, no dependency information available [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Skipping Apache Maven [INFO] This project has been banned from the build due to previous failures. [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for Apache Maven 3.9.1: [INFO] [INFO] Apache Maven ....................................... FAILURE [ 0.131 s] [INFO] Maven Model ........................................ SKIPPED [INFO] Maven Artifact ..................................... SKIPPED [INFO] Maven Plugin API ................................... SKIPPED [INFO] Maven Builder Support .............................. SKIPPED [INFO] Maven Model Builder ................................ SKIPPED [INFO] Maven Settings ..................................... SKIPPED [INFO] Maven Settings Builder ............................. SKIPPED [INFO] Maven Repository Metadata Model .................... SKIPPED [INFO] Maven Artifact Resolver Provider ................... SKIPPED [INFO] Maven Core ......................................... SKIPPED [INFO] Maven SLF4J Simple Provider ........................ SKIPPED [INFO] Maven Embedder ..................................... SKIPPED [INFO] Maven Compat ....................................... SKIPPED [INFO] Apache Maven Distribution .......................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.420 s [INFO] Finished at: 2023-05-18T10:31:04+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] UndeclaredThrowableException: InvocationTargetException: Plugin org.apache.maven.plugins:maven-enforcer-plugin:3.0.0 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.slf4j:slf4j-api:jar:SYSTEM has not been downloaded from it before. [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.q34UKb (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.q34UKb (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/maven.spec\n', 1)] 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 598, 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 --noclean --target noarch --nodeps /builddir/build/SPECS/maven.spec