Mock Version: 3.0 Mock Version: 3.0 Mock Version: 3.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/maven-enforcer.spec'], chrootPath='/var/lib/mock/module-javapackages-tools-201902-8050020220619051254-a78e116a-build-8439-1244/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=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/maven-enforcer.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/maven-enforcer-3.0.0~M2-2.module+oc8.5.0+73+10426fc9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/maven-enforcer.spec'], chrootPath='/var/lib/mock/module-javapackages-tools-201902-8050020220619051254-a78e116a-build-8439-1244/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=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/maven-enforcer.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.jnMYby + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf enforcer-3.0.0-M2 + /usr/bin/unzip -qq /builddir/build/SOURCES/enforcer-3.0.0-M2-source-release.zip + STATUS=0 + '[' 0 -ne 0 ']' + cd enforcer-3.0.0-M2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (0001-Port-to-Maven-3-API.patch): + echo 'Patch #0 (0001-Port-to-Maven-3-API.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file enforcer-rules/pom.xml patching file enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/AbstractBanDependencies.java patching file enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/BanTransitiveDependencies.java patching file enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/BannedPlugins.java patching file enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/DependencyConvergence.java patching file enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java patching file enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequireUpperBoundDeps.java patching file enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/utils/DependencyVersionMap.java patching file enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/utils/EnforcerRuleUtils.java patching file pom.xml + sed -i 's/shared\.artifact\.resolve/shared.transfer.artifact.resolve/' enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/utils/EnforcerRuleUtils.java + sed -i 's/shared\.artifact\.resolve/shared.transfer.artifact.resolve/' enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_remove_plugin :maven-enforcer-plugin + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_xpath_inject pom:build/pom:pluginManagement/pom:plugins ' maven-enforcer-plugin SYSTEM ' + sed -e 's|plexus-maven-plugin|plexus-component-metadata|' -e 's|descriptor|generate-metadata|' -i enforcer-api/pom.xml enforcer-rules/pom.xml + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.R8dpKx + umask 022 + cd /builddir/build/BUILD + cd enforcer-3.0.0-M2 + /usr/libexec/platform-python /usr/share/java-utils/mvn_build.py --xmvn-javadoc -f -s -f Executing: xmvn --batch-mode --offline -Dmaven.test.skip=true 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', '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.enforcer:enforcer-rules:jar:3.0.0-M2 [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.maven:maven-compat:jar -> duplicate declaration of version (?) @ org.apache.maven.enforcer:enforcer-rules:[unknown-version], /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/pom.xml, line 96, column 17 [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 Enforcer [pom] [INFO] Apache Maven Enforcer API [jar] [INFO] Apache Maven Enforcer Built-In Rules [jar] [INFO] Apache Maven Enforcer Plugin [maven-plugin] [INFO] [INFO] -----------------< org.apache.maven.enforcer:enforcer >----------------- [INFO] Building Apache Maven Enforcer 3.0.0-M2 [1/4] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ enforcer --- [INFO] [INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) @ enforcer --- [INFO] [INFO] ---------------< org.apache.maven.enforcer:enforcer-api >--------------- [INFO] Building Apache Maven Enforcer API 3.0.0-M2 [2/4] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ enforcer-api --- [INFO] [INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) @ enforcer-api --- [INFO] [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ enforcer-api --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-api/src/main/resources [INFO] Copying 5 resources [INFO] [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ enforcer-api --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 5 source files to /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-api/target/classes [INFO] [INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ enforcer-api --- [INFO] Not copying test resources [INFO] [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ enforcer-api --- [INFO] Not compiling test sources [INFO] [INFO] --- maven-surefire-plugin:2.22.0:test (default-test) @ enforcer-api --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-jar-plugin:3.1.0:jar (default-jar) @ enforcer-api --- [INFO] Building jar: /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-api/target/enforcer-api-3.0.0-M2.jar [INFO] [INFO] --------------< org.apache.maven.enforcer:enforcer-rules >-------------- [INFO] Building Apache Maven Enforcer Built-In Rules 3.0.0-M2 [3/4] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ enforcer-rules --- [INFO] [INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) @ enforcer-rules --- [INFO] [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ enforcer-rules --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/resources [INFO] Copying 5 resources [INFO] [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ enforcer-rules --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 43 source files to /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/target/classes [INFO] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java: Some input files use or override a deprecated API. [INFO] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java: Recompile with -Xlint:deprecation for details. [INFO] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java: /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java uses unchecked or unsafe operations. [INFO] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java: Recompile with -Xlint:unchecked for details. [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java:[69,57] package org.apache.maven.shared.transfer.artifact.resolve does not exist [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java:[70,57] package org.apache.maven.shared.transfer.artifact.resolve does not exist [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java:[172,5] cannot find symbol symbol: class ArtifactResolver location: class org.apache.maven.plugins.enforcer.RequirePluginVersions [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/utils/EnforcerRuleUtils.java:[33,57] package org.apache.maven.shared.transfer.artifact.resolve does not exist [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/utils/EnforcerRuleUtils.java:[34,57] package org.apache.maven.shared.transfer.artifact.resolve does not exist [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java:[1029,16] cannot find symbol symbol: class ArtifactResolverException location: class org.apache.maven.plugins.enforcer.RequirePluginVersions [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/utils/EnforcerRuleUtils.java:[50,5] cannot find symbol symbol: class ArtifactResolver location: class org.apache.maven.plugins.enforcer.utils.EnforcerRuleUtils [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java:[218,25] cannot find symbol symbol: class ArtifactResolver location: class org.apache.maven.plugins.enforcer.RequirePluginVersions [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java:[218,64] cannot find symbol symbol: class ArtifactResolver location: class org.apache.maven.plugins.enforcer.RequirePluginVersions [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java:[340,17] cannot find symbol symbol: class ArtifactResolverException location: class org.apache.maven.plugins.enforcer.RequirePluginVersions [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java:[549,17] cannot find symbol symbol: class ArtifactResolverException location: class org.apache.maven.plugins.enforcer.RequirePluginVersions [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/utils/EnforcerRuleUtils.java:[74,25] cannot find symbol symbol: class ArtifactResolver location: class org.apache.maven.plugins.enforcer.utils.EnforcerRuleUtils [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/utils/EnforcerRuleUtils.java:[74,64] cannot find symbol symbol: class ArtifactResolver location: class org.apache.maven.plugins.enforcer.utils.EnforcerRuleUtils [INFO] 13 errors [INFO] ------------------------------------------------------------- [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Skipping Apache Maven Enforcer [INFO] This project has been banned from the build due to previous failures. [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Apache Maven Enforcer 3.0.0-M2 ..................... SUCCESS [ 0.806 s] [INFO] Apache Maven Enforcer API .......................... SUCCESS [ 1.051 s] [INFO] Apache Maven Enforcer Built-In Rules ............... FAILURE [ 0.798 s] [INFO] Apache Maven Enforcer Plugin 3.0.0-M2 .............. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.001 s [INFO] Finished at: 2022-06-19T13:40:45+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project enforcer-rules: Compilation failure: Compilation failure: [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java:[69,57] package org.apache.maven.shared.transfer.artifact.resolve does not exist [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java:[70,57] package org.apache.maven.shared.transfer.artifact.resolve does not exist [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java:[172,5] cannot find symbol [ERROR] symbol: class ArtifactResolver [ERROR] location: class org.apache.maven.plugins.enforcer.RequirePluginVersions [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/utils/EnforcerRuleUtils.java:[33,57] package org.apache.maven.shared.transfer.artifact.resolve does not exist [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/utils/EnforcerRuleUtils.java:[34,57] package org.apache.maven.shared.transfer.artifact.resolve does not exist [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java:[1029,16] cannot find symbol [ERROR] symbol: class ArtifactResolverException [ERROR] location: class org.apache.maven.plugins.enforcer.RequirePluginVersions [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/utils/EnforcerRuleUtils.java:[50,5] cannot find symbol [ERROR] symbol: class ArtifactResolver [ERROR] location: class org.apache.maven.plugins.enforcer.utils.EnforcerRuleUtils [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java:[218,25] cannot find symbol [ERROR] symbol: class ArtifactResolver [ERROR] location: class org.apache.maven.plugins.enforcer.RequirePluginVersions [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java:[218,64] cannot find symbol [ERROR] symbol: class ArtifactResolver [ERROR] location: class org.apache.maven.plugins.enforcer.RequirePluginVersions [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java:[340,17] cannot find symbol [ERROR] symbol: class ArtifactResolverException [ERROR] location: class org.apache.maven.plugins.enforcer.RequirePluginVersions [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java:[549,17] cannot find symbol [ERROR] symbol: class ArtifactResolverException [ERROR] location: class org.apache.maven.plugins.enforcer.RequirePluginVersions [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/utils/EnforcerRuleUtils.java:[74,25] cannot find symbol [ERROR] symbol: class ArtifactResolver [ERROR] location: class org.apache.maven.plugins.enforcer.utils.EnforcerRuleUtils [ERROR] /builddir/build/BUILD/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/utils/EnforcerRuleUtils.java:[74,64] cannot find symbol [ERROR] symbol: class ArtifactResolver [ERROR] location: class org.apache.maven.plugins.enforcer.utils.EnforcerRuleUtils [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 :enforcer-rules error: Bad exit status from /var/tmp/rpm-tmp.R8dpKx (%build) Bad exit status from /var/tmp/rpm-tmp.R8dpKx (%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 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 --target noarch --nodeps /builddir/build/SPECS/maven-enforcer.spec