apache / apache/maven

[MNG-7944] Execution default of goal org.apache.maven.plugins:maven-assembly-plugin:3.6.0:single failed: Index 2 out of bounds for length 2

Open
#8,726 7 comments 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
5.3k
Forks
3.1k
Avg merge
20h 42m
Merged PRs (30d)
297

Description

**[Filipe Roque](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=froque)** opened **[MNG-7944](https://issues.apache.org/jira/browse/MNG-7944?redirect=false)** and commented

It only affects apache-maven-4.0.0-alpha-8

pom.xml

```java

4.0.0

org.example
mvn4-assembly-index
1.0-SNAPSHOT


17
17
UTF-8



org.ehcache
ehcache
3.10.8




org.apache.maven.plugins
maven-assembly-plugin
3.6.0


src/main/assembly/descriptor.xml

false



package

single






```

descriptor.xml

```java

assembly

dir

false
.


/
false
runtime


```

```java
❯ /opt/maven/apache-maven-4.0.0-alpha-8/bin/mvn -q package
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.6.0:single (default) on project mvn4-assembly-index: Execution default of goal org.apache.maven.plugins:maven-assembly-plugin:3.6.0:single failed: Index 2 out of bounds for length 2 -> [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 verbose output
[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/PluginExecutionException

```

---

**Affects:** 4.0.0-alpha-8

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with the supplied pom.xml and descriptor.xml using apache-maven-4.0.0-alpha-8 and the maven-assembly-plugin 3.6.0. Compare the execution with other Maven versions or configurations, then confirm that packaging the dependency set completes without the index error and that the reported case is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.