Mock Version: 1.3.4 Mock Version: 1.3.4 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/httpcomponents-core.spec'], nspawn_args=[]shell=Falseuid=996env={'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/module-javapackages-tools-201902-8020020200511215637-af5e9d52-build-39349-7020/root'gid=135user='mockbuild'timeout=86400logger=printOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/httpcomponents-core.spec'] with env {'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/httpcomponents-core-4.4.12-2.module_el8.2.0+327+08258b18.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/httpcomponents-core.spec'], nspawn_args=[]shell=Falseuid=996env={'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/module-javapackages-tools-201902-8020020200511215637-af5e9d52-build-39349-7020/root'gid=135user='mockbuild'timeout=86400logger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/httpcomponents-core.spec'] with env {'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.4sQLyz + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf httpcomponents-core-4.4.12 + /usr/bin/gzip -dc /builddir/build/SOURCES/httpcomponents-core-4.4.12-src.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd httpcomponents-core-4.4.12 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (0001-Port-to-mockito-2.patch): + echo 'Patch #0 (0001-Port-to-mockito-2.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file httpcore-nio/src/test/java/org/apache/http/impl/nio/pool/TestBasicNIOConnPool.java patching file httpcore-nio/src/test/java/org/apache/http/nio/pool/TestNIOConnPool.java patching file httpcore-nio/src/test/java/org/apache/http/nio/protocol/TestHttpAsyncService.java + sed -i /Thread.sleep/s/100/2000/ httpcore-nio/src/test/java/org/apache/http/nio/integration/TestHttpAsyncHandlers.java + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_remove_plugin :maven-checkstyle-plugin + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_remove_plugin :apache-rat-plugin + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_remove_plugin :maven-source-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_disable_module httpcore-osgi + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_disable_module httpcore-ab + for module in httpcore httpcore-nio + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_xpath_remove pom:project/pom:packaging httpcore + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_xpath_inject pom:project 'bundle' httpcore + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_remove_plugin :maven-jar-plugin httpcore + /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.apache.httpcomponents.httpcore <_nouses>true ' httpcore + for module in httpcore httpcore-nio + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_xpath_remove pom:project/pom:packaging httpcore-nio + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_xpath_inject pom:project 'bundle' httpcore-nio + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_remove_plugin :maven-jar-plugin httpcore-nio + /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.apache.httpcomponents.httpcore-nio <_nouses>true ' httpcore-nio + /usr/libexec/platform-python /usr/share/java-utils/mvn_file.py ':{*}' httpcomponents/@1 + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.8o1mkF + umask 022 + cd /builddir/build/BUILD + cd httpcomponents-core-4.4.12 + /usr/libexec/platform-python /usr/share/java-utils/mvn_build.py --xmvn-javadoc Executing: xmvn --batch-mode --offline verify org.fedoraproject.xmvn:xmvn-mojo:install org.fedoraproject.xmvn:xmvn-mojo:javadoc org.fedoraproject.xmvn:xmvn-mojo:builddep ['xmvn', '--batch-mode', '--offline', 'verify', '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.httpcomponents:httpcore:bundle:4.4.12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-site-plugin is missing. @ org.apache.httpcomponents:httpcomponents-core:4.4.12, /builddir/build/BUILD/httpcomponents-core-4.4.12/pom.xml, line 126, column 15 [WARNING] 'build.plugins.plugin.version' for com.agilejava.docbkx:docbkx-maven-plugin is missing. @ org.apache.httpcomponents:httpcomponents-core:4.4.12, /builddir/build/BUILD/httpcomponents-core-4.4.12/pom.xml, line 129, column 15 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.apache.httpcomponents:httpcore-nio:bundle:4.4.12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-site-plugin is missing. @ org.apache.httpcomponents:httpcomponents-core:4.4.12, /builddir/build/BUILD/httpcomponents-core-4.4.12/pom.xml, line 126, column 15 [WARNING] 'build.plugins.plugin.version' for com.agilejava.docbkx:docbkx-maven-plugin is missing. @ org.apache.httpcomponents:httpcomponents-core:4.4.12, /builddir/build/BUILD/httpcomponents-core-4.4.12/pom.xml, line 129, column 15 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.apache.httpcomponents:httpcomponents-core:pom:4.4.12 [WARNING] 'build.pluginManagement.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-project-info-reports-plugin @ org.apache.httpcomponents:httpcomponents-parent:9, /usr/share/maven-poms/httpcomponents-project.pom, line 629, column 17 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-site-plugin is missing. @ line 126, column 15 [WARNING] 'build.plugins.plugin.version' for com.agilejava.docbkx:docbkx-maven-plugin is missing. @ line 129, 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 HttpComponents Core [pom] [INFO] Apache HttpCore [bundle] [INFO] Apache HttpCore NIO [bundle] [INFO] [INFO] -----------< org.apache.httpcomponents:httpcomponents-core >------------ [INFO] Building Apache HttpComponents Core 4.4.12 [1/3] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ httpcomponents-core --- [INFO] [INFO] --- build-helper-maven-plugin:1.9.1:parse-version (parse-version) @ httpcomponents-core --- [INFO] [INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) @ httpcomponents-core --- [INFO] [INFO] -----------------< org.apache.httpcomponents:httpcore >----------------- [INFO] Building Apache HttpCore 4.4.12 [2/3] [INFO] -------------------------------[ bundle ]------------------------------- [INFO] [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ httpcore --- [INFO] [INFO] --- build-helper-maven-plugin:1.9.1:parse-version (parse-version) @ httpcore --- [INFO] [INFO] --- build-helper-maven-plugin:1.9.1:add-source (add-source) @ httpcore --- [INFO] Source directory: /builddir/build/BUILD/httpcomponents-core-4.4.12/httpcore/src/main/java-deprecated added. [INFO] [INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) @ httpcore --- [INFO] [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ httpcore --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 5 resources [INFO] [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ httpcore --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 256 source files to /builddir/build/BUILD/httpcomponents-core-4.4.12/httpcore/target/classes [INFO] /builddir/build/BUILD/httpcomponents-core-4.4.12/httpcore/src/main/java/org/apache/http/protocol/HttpService.java: Some input files use or override a deprecated API. [INFO] /builddir/build/BUILD/httpcomponents-core-4.4.12/httpcore/src/main/java/org/apache/http/protocol/HttpService.java: Recompile with -Xlint:deprecation for details. [INFO] [INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ httpcore --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 7 resources [INFO] Copying 5 resources [INFO] [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ httpcore --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 86 source files to /builddir/build/BUILD/httpcomponents-core-4.4.12/httpcore/target/test-classes [INFO] /builddir/build/BUILD/httpcomponents-core-4.4.12/httpcore/src/test/java/org/apache/http/util/TestLangUtils.java: Some input files use or override a deprecated API. [INFO] /builddir/build/BUILD/httpcomponents-core-4.4.12/httpcore/src/test/java/org/apache/http/util/TestLangUtils.java: Recompile with -Xlint:deprecation for details. [INFO] /builddir/build/BUILD/httpcomponents-core-4.4.12/httpcore/src/test/java/org/apache/http/pool/TestRouteSpecificPool.java: /builddir/build/BUILD/httpcomponents-core-4.4.12/httpcore/src/test/java/org/apache/http/pool/TestRouteSpecificPool.java uses unchecked or unsafe operations. [INFO] /builddir/build/BUILD/httpcomponents-core-4.4.12/httpcore/src/test/java/org/apache/http/pool/TestRouteSpecificPool.java: Recompile with -Xlint:unchecked for details. [INFO] [INFO] --- maven-surefire-plugin:2.22.0:test (default-test) @ httpcore --- [WARNING] Missing POM for org.apache.maven.surefire:surefire-junit4:jar:2.22.0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Skipping Apache HttpComponents Core [INFO] This project has been banned from the build due to previous failures. [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Apache HttpComponents Core 4.4.12 .................. SUCCESS [ 0.592 s] [INFO] Apache HttpCore .................................... FAILURE [ 3.397 s] [INFO] Apache HttpCore NIO 4.4.12 ......................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.658 s [INFO] Finished at: 2020-05-15T02:15:27Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on project httpcore: Unable to generate classpath: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing: [ERROR] ---------- [ERROR] 1) org.apache.maven.surefire:surefire-junit4:jar:2.22.0 [ERROR] [ERROR] Try downloading the file manually from the project website. [ERROR] [ERROR] Then, install it using the command: [ERROR] mvn install:install-file -DgroupId=org.apache.maven.surefire -DartifactId=surefire-junit4 -Dversion=2.22.0 -Dpackaging=jar -Dfile=/path/to/file [ERROR] [ERROR] Alternatively, if you host your own repository you can deploy the file there: [ERROR] mvn deploy:deploy-file -DgroupId=org.apache.maven.surefire -DartifactId=surefire-junit4 -Dversion=2.22.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] [ERROR] [ERROR] Path to dependency: [ERROR] 1) dummy:dummy:jar:1.0 [ERROR] 2) org.apache.maven.surefire:surefire-junit4:jar:2.22.0 [ERROR] [ERROR] ---------- [ERROR] 1 required artifact is missing. [ERROR] [ERROR] for artifact: [ERROR] dummy:dummy:jar:1.0 [ERROR] [ERROR] from the specified remote repositories: [ERROR] central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false) [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/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :httpcore error: Bad exit status from /var/tmp/rpm-tmp.8o1mkF (%build) Bad exit status from /var/tmp/rpm-tmp.8o1mkF (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 89, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 582, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/httpcomponents-core.spec