Mock Version: 5.2 Mock Version: 5.2 Mock Version: 5.2 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/maven-archetype.spec'], chrootPath='/var/lib/mock/f40-build-2588275-62538/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=864000uid=997gid=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-archetype.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: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1708992000 Wrote: /builddir/build/SRPMS/maven-archetype-3.2.1.0.8b3bdb6-13.fc40.src.rpm RPM build warnings: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/maven-archetype.spec'], chrootPath='/var/lib/mock/f40-build-2588275-62538/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=864000uid=997gid=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-archetype.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: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1708992000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.fgrUyD + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf maven-archetype-8b3bdb6f0dc656b3e5e2f913dbb90cc44b05ae97 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/8b3bdb6f0dc656b3e5e2f913dbb90cc44b05ae97.zip + STATUS=0 + '[' 0 -ne 0 ']' + cd maven-archetype-8b3bdb6f0dc656b3e5e2f913dbb90cc44b05ae97 + rm -rf /builddir/build/BUILD/maven-archetype-8b3bdb6f0dc656b3e5e2f913dbb90cc44b05ae97-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/maven-archetype-8b3bdb6f0dc656b3e5e2f913dbb90cc44b05ae97-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (0001-Avoid-reliance-on-groovy.patch):' Patch #1 (0001-Avoid-reliance-on-groovy.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file archetype-common/pom.xml Hunk #1 succeeded at 48 (offset -2 lines). patching file archetype-common/src/main/java/org/apache/maven/archetype/generator/DefaultFilesetArchetypeGenerator.java Patch #3 (0003-Port-to-commons-lang3.patch): + echo 'Patch #3 (0003-Port-to-commons-lang3.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file archetype-common/src/main/java/org/apache/maven/archetype/generator/DefaultFilesetArchetypeGenerator.java + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin -r :apache-rat-plugin + pushd archetype-models/archetype-catalog ~/build/BUILD/maven-archetype-8b3bdb6f0dc656b3e5e2f913dbb90cc44b05ae97/archetype-models/archetype-catalog ~/build/BUILD/maven-archetype-8b3bdb6f0dc656b3e5e2f913dbb90cc44b05ae97 + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_remove pom:project/pom:packaging + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_inject pom:project 'bundle' + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_inject pom:build/pom:plugins ' org.apache.felix maven-bundle-plugin true <_nouses>true org.apache.maven.archetype.catalog.* ' + popd ~/build/BUILD/maven-archetype-8b3bdb6f0dc656b3e5e2f913dbb90cc44b05ae97 ~/build/BUILD/maven-archetype-8b3bdb6f0dc656b3e5e2f913dbb90cc44b05ae97/archetype-models/archetype-descriptor ~/build/BUILD/maven-archetype-8b3bdb6f0dc656b3e5e2f913dbb90cc44b05ae97 + pushd archetype-models/archetype-descriptor + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_remove pom:project/pom:packaging + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_inject pom:project 'bundle' + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_inject pom:build/pom:plugins ' org.apache.felix maven-bundle-plugin true <_nouses>true org.apache.maven.archetype.metadata.* ' + popd ~/build/BUILD/maven-archetype-8b3bdb6f0dc656b3e5e2f913dbb90cc44b05ae97 + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_dep org.apache.ivy:ivy archetype-common + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_dep org.sonatype.aether: + pushd archetype-common ~/build/BUILD/maven-archetype-8b3bdb6f0dc656b3e5e2f913dbb90cc44b05ae97/archetype-common ~/build/BUILD/maven-archetype-8b3bdb6f0dc656b3e5e2f913dbb90cc44b05ae97 + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_dep org.sonatype.aether: + popd ~/build/BUILD/maven-archetype-8b3bdb6f0dc656b3e5e2f913dbb90cc44b05ae97 + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin org.apache.maven.plugins:maven-antrun-plugin archetype-common + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_disable_module maven-archetype-plugin + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.dIM5ti + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-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 maven-archetype-8b3bdb6f0dc656b3e5e2f913dbb90cc44b05ae97 + /usr/bin/python3 /usr/share/java-utils/mvn_package.py :archetype-models maven-archetype + /usr/bin/python3 /usr/share/java-utils/mvn_build.py --xmvn-javadoc -f -s -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 -Dsource=1.8 -DdetectJavaApiLink=false Executing: xmvn --batch-mode --offline -Dmaven.test.skip=true -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 -Dsource=1.8 -DdetectJavaApiLink=false 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', '-Dmaven.compiler.source=1.8', '-Dmaven.compiler.target=1.8', '-Dsource=1.8', '-DdetectJavaApiLink=false', '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 org.apache.maven.archetype:archetype-catalog:bundle:3.3.0-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 38, column 15 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.apache.maven.archetype:archetype-descriptor:bundle:3.3.0-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 38, 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] Maven Archetype [pom] [INFO] Maven Archetype Models [pom] [INFO] Maven Archetype Catalog Model [bundle] [INFO] Maven Archetype Descriptor Model [bundle] [INFO] Maven Archetype Common [jar] [INFO] Maven Archetype Packaging [jar] [INFO] [INFO] -------------< org.apache.maven.archetype:maven-archetype >------------- [INFO] Building Maven Archetype 3.3.0-SNAPSHOT [1/6] [INFO] from pom.xml [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- enforcer:3.0.0:enforce (enforce-maven-version) @ maven-archetype --- [INFO] [INFO] --- enforcer:3.0.0:enforce (enforce-java-version) @ maven-archetype --- [INFO] [INFO] --- remote-resources:1.7.0:process (process-resource-bundles) @ maven-archetype --- [WARNING] Parameter 'localRepository' is deprecated core expression; Avoid use of ArtifactRepository type. If you need access to local repository, switch to '${repositorySystemSession}' expression and get LRM from it instead. [INFO] Preparing remote bundle org.apache:apache-jar-resource-bundle:1.4 [INFO] Copying 5 resources from 1 bundle. [INFO] [INFO] --- plexus-component-metadata:2.1.1:generate-metadata (default) @ maven-archetype --- [INFO] [INFO] ------------< org.apache.maven.archetype:archetype-models >------------- [INFO] Building Maven Archetype Models 3.3.0-SNAPSHOT [2/6] [INFO] from archetype-models/pom.xml [INFO] --------------------------------[ pom ]--------------------------------- [WARNING] The POM for org.codehaus.plexus:plexus-xml:jar:3.0.0 is missing, no dependency information available [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Skipping Maven Archetype [INFO] This project has been banned from the build due to previous failures. [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for Maven Archetype 3.3.0-SNAPSHOT: [INFO] [INFO] Maven Archetype .................................... SUCCESS [ 6.874 s] [INFO] Maven Archetype Models ............................. FAILURE [ 0.080 s] [INFO] Maven Archetype Catalog Model ...................... SKIPPED [INFO] Maven Archetype Descriptor Model ................... SKIPPED [INFO] Maven Archetype Common ............................. SKIPPED [INFO] Maven Archetype Packaging .......................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 15.014 s [INFO] Finished at: 2024-03-21T22:24:48Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project archetype-models: Could not resolve dependencies for project org.apache.maven.archetype:archetype-models:pom:3.3.0-SNAPSHOT: The following artifacts could not be resolved: org.codehaus.plexus:plexus-xml:jar:3.0.0 (absent): Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.codehaus.plexus:plexus-xml:jar:3.0.0 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 :archetype-models error: Bad exit status from /var/tmp/rpm-tmp.dIM5ti (%build) %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.dIM5ti (%build) RPM build warnings: RPM build errors: 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-archetype.spec'\n", 1)] Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/maven-archetype.spec'