← Back to issue list

maven plugin crashes with base core18

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1813637
Type
issue
State
closed
Author
~ondrak
Labels
—
Created
Updated
Closed

Current evaluation

Fixed by snapcore/snapcraft#2453, merged as commit 41facca0a, correcting JRE defaults for Ant, Maven, and Gradle plugins.

Resolution: closed resolved

Reason: The maintainer linked PR #2453, which was merged as commit 41facca0a and fixed the Maven plugin’s JRE defaults for base-specific builds.

Evaluated by: mr-cal-bot

No scores available.

Issue body

snapcraft 3.0.1 maven plugin crashes when used with base: core18 Same project builds fine for cpore16 stacktrace: File "/snap/snapcraft/2374/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/_runner.py", line 137, in _run_scriptlet scriptlet_name, function_call.strip() File "/snap/snapcraft/2374/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/_runner.py", line 193, in _handle_builtin_function function(**function_args) File "/snap/snapcraft/2374/lib/python3.5/site-packages/snapcraft/plugins/maven.py", line 243, in build self._create_symlinks() File "/snap/snapcraft/2374/lib/python3.5/site-packages/snapcraft/plugins/maven.py", line 263, in _create_symlinks )[0] IndexError: list index out of range snapcraft.yaml base: core18 parts: opengrok: plugin: maven source: https://github.com/OpenGrok/OpenGrok.git source-type: git source-tag: '1.1' maven-options: - -DskipTests=true - -Dmaven.javadoc.skip=false - -B - -V maven-targets: - plugins build-packages: - xmlstarlet - libxml2-utils - subversion - python3-venv - python3-pip override-build: | snapcraftctl build echo "opengrok built successfully" snapcraftctl set-version $(git describe --tags)

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed by snapcore/snapcraft#2453, merged as commit 41facca0a, correcting JRE defaults for Ant, Maven, and Gradle plugins.
stealth/space-bunny-alpha — closed resolved The Maven plugin's core18 IndexError was fixed by merged PR #2453 (commit 41facca0a), which corrected Java runtime defaults and path handling.
stealth/space-bunny-alpha — closed stale Snapcraft 3.0.1’s Maven plugin IndexError on core18 was closed without resolution due to inactivity; no fixing PR or commit was recorded.
qwen/qwen3.6-35b-a3b — — Closed without resolution due to inactivity. The maven plugin caused an IndexError when building with base core18 in snapcraft 3.0.1, while core16 worked. No fix was provided.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The maven plugin IndexError with core18 base remains unfixed, likely abandoned due to inactivity and superseded by newer versions.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcore/snapcraft#2453 (confidence 99%)

    The linked PR matches commit 41facca0a and updates the affected plugin defaults.

Related issues

Issue Project State Summary Similarity
#2364 maven plugin: add support for bases snapcraft merged PR snapcraft#2364 merged as commit b4aebc678, making the Maven plugin base-aware with support for core16 and core18, resolving Launchpad bug #1794793 (18 files, +778/-345).
77%
#1813636 ant maven and gradle plugins referene mysterious core19 snapcraft (launchpad) closed Resolved by merged PR #2453 (commit 41facca0a), correcting JRE defaults and removing erroneous core19 references from the Ant, Maven, and Gradle plugins.
76%
#4657 feat(core22): maven plugin snapcraft merged Merged core22 Maven plugin support into Snapcraft through PR #4657, resolving in commit 952ecb172 after approval from three reviewers.
75%
#2453 ant, maven and gradle plugins: use correct defaults for jre snapcraft merged Merged PR #2453 (commit 41facca0a) fixed Ant, Maven, and Gradle JRE defaults, corrected OpenJDK path globbing, covered core16/core18, and removed the core19 typo.
73%