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/javamail.spec'], chrootPath='/var/lib/mock/module-javapackages-tools-201902-8050020220619040035-a78e116a-build-7986-1238/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/javamail.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/javamail-1.6.2-2.module+oc8.5.0+71+a3bc5605.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps --nocheck /builddir/build/SPECS/javamail.spec'], chrootPath='/var/lib/mock/module-javapackages-tools-201902-8050020220619040035-a78e116a-build-7986-1238/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 --nocheck /builddir/build/SPECS/javamail.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.9gbUUd + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf javamail-1.6.2 + /usr/bin/mkdir -p javamail-1.6.2 + cd javamail-1.6.2 + /usr/bin/gzip -dc /builddir/build/SOURCES/javamail-1.6.2.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + pushd javamail-JAVAMAIL-1_6_2 ~/build/BUILD/javamail-1.6.2/javamail-JAVAMAIL-1_6_2 ~/build/BUILD/javamail-1.6.2 + find -name module-info.java -delete + mv CONTRIBUTING.md LICENSE.txt README.md android ant-common.xml build.properties build.xml client copyright-exclude demo doc dsn gimap imap javadoc logging mail mail.sig mailapi mailapijar mailhandler mbox mbox.xml outlook parent-distrib pom.xml pop3 project.properties project.xml publish servlet siggen sigtest smtp taglib update_version webapp .. + popd ~/build/BUILD/javamail-1.6.2 + rm -rf javamail-JAVAMAIL-1_6_2 Patch #0 (0000-Disable-tests-that-use-networking.patch): + echo 'Patch #0 (0000-Disable-tests-that-use-networking.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file mail/src/test/java/com/sun/mail/util/WriteTimeoutSocketTest.java + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_xpath_remove 'pom:arg[text()='\''-Werror'\'']' mail + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_change_dep javax.activation:activation 'com.sun.mail:android-activation:${mail.version}' mail + cp -p android/mail/src/main/java/com/sun/mail/handlers/handler_base.java mail/src/main/java/com/sun/mail/handlers/handler_base.java + rm -f mail/src/test/java/com/sun/mail/handlers/TextXmlTest.java + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_disable_module mail android + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_disable_module dsn + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_remove_plugin :animal-sniffer-maven-plugin android + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_xpath_remove /pom:project/pom:profiles + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_remove_plugin -r org.glassfish.hk2:osgiversion-maven-plugin + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_xpath_inject /pom:project/pom:properties '1.6.2' + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_xpath_inject /pom:project/pom:build/pom:plugins/pom:plugin/pom:configuration/pom:instructions '<_nouses>true' + /usr/libexec/platform-python /usr/share/java-utils/mvn_alias.py com.sun.mail:mailapi javax.mail:mailapi + /usr/libexec/platform-python /usr/share/java-utils/mvn_alias.py com.sun.mail:javax.mail javax.mail:mail org.eclipse.jetty.orbit:javax.mail.glassfish + /usr/libexec/platform-python /usr/share/java-utils/mvn_file.py 'com.sun.mail:{javax.mail}' javamail/@1 javamail/mail + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.oFCOZg + umask 022 + cd /builddir/build/BUILD + cd javamail-1.6.2 + /usr/libexec/platform-python /usr/share/java-utils/mvn_build.py --xmvn-javadoc -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... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] JavaMail API distribution [pom] [INFO] Android support for JavaMail [pom] [INFO] JavaBeans Activation Framework fork for Android [jar] [INFO] JavaMail API [jar] [INFO] JavaMail API (no providers) [jar] [INFO] JavaMail API jar [jar] [INFO] JavaMail API smtp provider [jar] [INFO] JavaMail API imap provider [jar] [INFO] JavaMail API Gmail IMAP provider [jar] [INFO] JavaMail API pop3 provider [jar] [INFO] JavaMail API logging handler [jar] [INFO] [INFO] --------------------------< com.sun.mail:all >-------------------------- [INFO] Building JavaMail API distribution 1.6.2 [1/11] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-version) @ all --- [INFO] [INFO] --- build-helper-maven-plugin:1.9.1:add-source (add-source) @ all --- [INFO] Source directory: /builddir/build/BUILD/javamail-1.6.2/target/sources added. [INFO] Source directory: /builddir/build/BUILD/javamail-1.6.2/target/classes added. [INFO] [INFO] --- maven-bundle-plugin:3.5.0:manifest (osgi-manifest) @ all --- [WARNING] Ignoring project type pom - supportedProjectTypes = [jar, bundle] [INFO] [INFO] --- maven-source-plugin:3.0.1:jar-no-fork (attach-sources) @ all --- [INFO] [INFO] ------------------------< com.sun.mail:android >------------------------ [INFO] Building Android support for JavaMail 1.6.2 [2/11] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-version) @ android --- [INFO] [INFO] --- build-helper-maven-plugin:1.9.1:add-source (add-source) @ android --- [INFO] Source directory: /builddir/build/BUILD/javamail-1.6.2/android/target/sources added. [INFO] Source directory: /builddir/build/BUILD/javamail-1.6.2/android/target/classes added. [INFO] [INFO] --- maven-bundle-plugin:3.5.0:manifest (osgi-manifest) @ android --- [WARNING] Ignoring project type pom - supportedProjectTypes = [jar, bundle] [INFO] [INFO] --- maven-source-plugin:3.0.1:jar-no-fork (attach-sources) @ android --- [INFO] [INFO] ------------------< com.sun.mail:android-activation >------------------- [INFO] Building JavaBeans Activation Framework fork for Android 1.6.2 [3/11] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-version) @ android-activation --- [INFO] [INFO] --- build-helper-maven-plugin:1.9.1:add-source (add-source) @ android-activation --- [INFO] Source directory: /builddir/build/BUILD/javamail-1.6.2/android/activation/target/sources added. [INFO] Source directory: /builddir/build/BUILD/javamail-1.6.2/android/activation/target/classes added. [INFO] [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ android-activation --- [INFO] Using 'iso-8859-1' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ android-activation --- [INFO] Compiling 24 source files to /builddir/build/BUILD/javamail-1.6.2/android/activation/target/classes [INFO] [INFO] --- maven-bundle-plugin:3.5.0:manifest (osgi-manifest) @ android-activation --- [WARNING] Manifest com.sun.mail:android-activation:jar:1.6.2 : No translation found for macro: activation.osgiversion [INFO] [INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ android-activation --- [INFO] Not copying test resources [INFO] [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ android-activation --- [INFO] Not compiling test sources [INFO] [INFO] --- maven-surefire-plugin:2.22.0:test (default-test) @ android-activation --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-jar-plugin:3.1.0:jar (default-jar) @ android-activation --- [INFO] Building jar: /builddir/build/BUILD/javamail-1.6.2/android/activation/target/android-activation.jar [INFO] [INFO] --- maven-source-plugin:3.0.1:jar-no-fork (attach-sources) @ android-activation --- [INFO] Building jar: /builddir/build/BUILD/javamail-1.6.2/android/activation/target/android-activation-1.6.2-sources.jar [INFO] [INFO] ----------------------< com.sun.mail:javax.mail >----------------------- [INFO] Building JavaMail API 1.6.2 [4/11] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-version) @ javax.mail --- [INFO] [INFO] --- build-helper-maven-plugin:1.9.1:add-source (add-source) @ javax.mail --- [INFO] Source directory: /builddir/build/BUILD/javamail-1.6.2/mail/target/sources added. [INFO] Source directory: /builddir/build/BUILD/javamail-1.6.2/mail/target/classes added. [INFO] [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ javax.mail --- [INFO] Using 'iso-8859-1' encoding to copy filtered resources. [INFO] Copying 10 resources [INFO] [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ javax.mail --- [INFO] Compiling 239 source files to /builddir/build/BUILD/javamail-1.6.2/mail/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /builddir/build/BUILD/javamail-1.6.2/mail/src/main/java/com/sun/mail/handlers/text_plain.java:[52,8] com.sun.mail.handlers.text_plain is not abstract and does not override abstract method getTransferData(java.awt.datatransfer.DataFlavor,javax.activation.DataSource) in javax.activation.DataContentHandler [ERROR] /builddir/build/BUILD/javamail-1.6.2/mail/src/main/java/com/sun/mail/handlers/message_rfc822.java:[55,8] com.sun.mail.handlers.message_rfc822 is not abstract and does not override abstract method getTransferData(java.awt.datatransfer.DataFlavor,javax.activation.DataSource) in javax.activation.DataContentHandler [ERROR] /builddir/build/BUILD/javamail-1.6.2/mail/src/main/java/com/sun/mail/handlers/image_gif.java:[50,8] com.sun.mail.handlers.image_gif is not abstract and does not override abstract method getTransferData(java.awt.datatransfer.DataFlavor,javax.activation.DataSource) in javax.activation.DataContentHandler [ERROR] /builddir/build/BUILD/javamail-1.6.2/mail/src/main/java/com/sun/mail/handlers/multipart_mixed.java:[50,8] com.sun.mail.handlers.multipart_mixed is not abstract and does not override abstract method getTransferData(java.awt.datatransfer.DataFlavor,javax.activation.DataSource) in javax.activation.DataContentHandler [INFO] 4 errors [INFO] ------------------------------------------------------------- [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Skipping JavaMail API distribution [INFO] This project has been banned from the build due to previous failures. [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] JavaMail API distribution 1.6.2 .................... SUCCESS [ 0.607 s] [INFO] Android support for JavaMail ....................... SUCCESS [ 0.006 s] [INFO] JavaBeans Activation Framework fork for Android .... SUCCESS [ 1.343 s] [INFO] JavaMail API ....................................... FAILURE [ 1.593 s] [INFO] JavaMail API (no providers) ........................ SKIPPED [INFO] JavaMail API jar ................................... SKIPPED [INFO] JavaMail API smtp provider ......................... SKIPPED [INFO] JavaMail API imap provider ......................... SKIPPED [INFO] JavaMail API Gmail IMAP provider ................... SKIPPED [INFO] JavaMail API pop3 provider ......................... SKIPPED [INFO] JavaMail API logging handler 1.6.2 ................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.857 s [INFO] Finished at: 2022-06-19T12:25:43+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project javax.mail: Compilation failure: Compilation failure: [ERROR] /builddir/build/BUILD/javamail-1.6.2/mail/src/main/java/com/sun/mail/handlers/text_plain.java:[52,8] com.sun.mail.handlers.text_plain is not abstract and does not override abstract method getTransferData(java.awt.datatransfer.DataFlavor,javax.activation.DataSource) in javax.activation.DataContentHandler [ERROR] /builddir/build/BUILD/javamail-1.6.2/mail/src/main/java/com/sun/mail/handlers/message_rfc822.java:[55,8] com.sun.mail.handlers.message_rfc822 is not abstract and does not override abstract method getTransferData(java.awt.datatransfer.DataFlavor,javax.activation.DataSource) in javax.activation.DataContentHandler [ERROR] /builddir/build/BUILD/javamail-1.6.2/mail/src/main/java/com/sun/mail/handlers/image_gif.java:[50,8] com.sun.mail.handlers.image_gif is not abstract and does not override abstract method getTransferData(java.awt.datatransfer.DataFlavor,javax.activation.DataSource) in javax.activation.DataContentHandler [ERROR] /builddir/build/BUILD/javamail-1.6.2/mail/src/main/java/com/sun/mail/handlers/multipart_mixed.java:[50,8] com.sun.mail.handlers.multipart_mixed is not abstract and does not override abstract method getTransferData(java.awt.datatransfer.DataFlavor,javax.activation.DataSource) in javax.activation.DataContentHandler [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 :javax.mail error: Bad exit status from /var/tmp/rpm-tmp.oFCOZg (%build) Bad exit status from /var/tmp/rpm-tmp.oFCOZg (%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 --nocheck /builddir/build/SPECS/javamail.spec