Public bug reported: A number of recent tests for snapcraft have failed with:
``` [[1;34mINFO[m] Downloaded from central: https://repo.maven.apache.org/maven2/com/google/collections/google-collections/1.0/google-collections-1.0.jar (640 kB at 1.1 MB/s) [[1;34mINFO[m] Changes detected - recompiling the module! [[1;33mWARNING[m] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! [[1;34mINFO[m] Compiling 1 source file to /home/ubuntu/autopkgtest_tmp/tmpwxlcylj8/parts/m/build/target/classes [[1;34mINFO[m] ------------------------------------------------------------- [[1;31mERROR[m] COMPILATION ERROR : [[1;34mINFO[m] ------------------------------------------------------------- [[1;31mERROR[m] Source option 1.5 is no longer supported. Use 1.6 or later. [[1;31mERROR[m] Target option 1.5 is no longer supported. Use 1.6 or later. [[1;34mINFO[m] 2 errors [[1;34mINFO[m] ------------------------------------------------------------- [[1;34mINFO[m] [1m------------------------------------------------------------------------[m [[1;34mINFO[m] [1;31mBUILD FAILURE[m [[1;34mINFO[m] [1m------------------------------------------------------------------------[m [[1;34mINFO[m] Total time: 13.402 s [[1;34mINFO[m] Finished at: 2018-03-27T02:59:37Z [[1;34mINFO[m] Final Memory: 14M/35M [[1;34mINFO[m] [1m------------------------------------------------------------------------[m [[1;31mERROR[m] Failed to execute goal [32morg.apache.maven.plugins:maven-compiler-plugin:3.1:compile[m [1m(default-compile)[m on project [36mmy-app[m: [1;31mCompilation failure[m: Compilation failure: [[1;31mERROR[m] Source option 1.5 is no longer supported. Use 1.6 or later. [[1;31mERROR[m] Target option 1.5 is no longer supported. Use 1.6 or later. [[1;31mERROR[m] -> [1m[Help 1][m [[1;31mERROR[m] [[1;31mERROR[m] To see the full stack trace of the errors, re-run Maven with the [1m-e[m switch. [[1;31mERROR[m] Re-run Maven using the [1m-X[m switch to enable full debug logging. [[1;31mERROR[m] [[1;31mERROR[m] For more information about the errors and possible solutions, please read the following articles: [[1;31mERROR[m] [1m[Help 1][m http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException mvn package -s /home/ubuntu/autopkgtest_tmp/tmpwxlcylj8/parts/m/m2/settings.xml -DskipTests Traceback (most recent call last): File "/usr/lib/python3/dist-packages/snapcraft/_baseplugin.py", line 204, in run return common.run(cmd, cwd=cwd, **kwargs) File "/usr/lib/python3/dist-packages/snapcraft/internal/common.py", line 64, in run subprocess.check_call(['/bin/sh', f.name] + cmd, **kwargs) File "/usr/lib/python3.6/subprocess.py", line 291, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/bin/sh', '/home/ubuntu/autopkgtest_tmp/tmp3kxkzlkg', 'mvn', 'package', '-s', '/home/ubuntu/autopkgtest_tmp/tmpwxlcylj8/parts/m/m2/settings.xml', '-DskipTests']' returned non-zero exit status 1. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/bin/snapcraft", line 11, in <module> load_entry_point('snapcraft==2.40+18.4.3', 'console_scripts', 'snapcraft')() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 587, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2800, in load_entry_point return ep.load() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2431, in load return self.resolve() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2437, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/lib/python3/dist-packages/snapcraft/cli/__main__.py", line 43, in <module> run(prog_name='snapcraft') File "/usr/lib/python3/dist-packages/click/core.py", line 722, in __call__ return self.main(*args, **kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python3/dist-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python3/dist-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 81, in build _execute('build', parts, **kwargs) File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 33, in _execute lifecycle.execute(command, project_options, parts) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 80, in execute _Executor(config, project_options).run(step, part_names) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 191, in run self._run_step(step, part, part_names) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 236, in _run_step getattr(part, step)() File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 368, in build self.plugin.build() File "/usr/lib/python3/dist-packages/snapcraft/plugins/maven.py", line 96, in build self.run(mvn_cmd + self.options.maven_options) File "/usr/lib/python3/dist-packages/snapcraft/_baseplugin.py", line 208, in run exit_code=process_error.returncode) from process_error snapcraft.internal.errors.SnapcraftPluginCommandError: Failed to run 'mvn package -s /home/ubuntu/autopkgtest_tmp/tmpwxlcylj8/parts/m/m2/settings.xml -DskipTests' for 'm': Exited with code 1. Verify that the part is using the correct parameters and try again. }}} Traceback (most recent call last): File "/tmp/autopkgtest.Mf8WiN/build.NGm/src/tests/integration/plugins_java/test_maven_plugin.py", line 26, in test_build_maven_plugin self.run_snapcraft('build', 'maven-with-options') File "/tmp/autopkgtest.Mf8WiN/build.NGm/src/tests/integration/__init__.py", line 156, in run_snapcraft env=env) File "/usr/lib/python3.6/subprocess.py", line 336, in check_output **kwargs).stdout File "/usr/lib/python3.6/subprocess.py", line 418, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['/usr/bin/snapcraft', '-d', 'build']' returned non-zero exit status 2. ---------------------------------------------------------------------- Ran 2 tests in 1754.155s FAILED (errors=1) ``` As this seems to be some kind of external breakage, I've marked the snapcraft tests as bad so that other packages aren't held because of it. ** Affects: snapcraft (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1759283 Title: snapcraft adt broken on maven test To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/snapcraft/+bug/1759283/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
