apache / maven-mvnd

Apache Maven Daemon
https://maven.apache.org/
Apache License 2.0
2.85k stars 205 forks source link

2.0.0-beta-1: java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 #1048

Open wendigo opened 1 week ago

wendigo commented 1 week ago

Works on 1.0.x (empty string = all projects):

mvnd --version
Apache Maven Daemon (mvnd) 1.0.1 darwin-aarch64 native client (621c13a190faf99724130a4dd0b8ec473a9cde44)
mvnd --clean -pl ""

Fails on 2.0.0-beta-1:

mvnd --version
Apache Maven Daemon (mvnd) 2.0.0-beta-1 darwin-aarch64 native client (74cdaf62b224d5345b4a471317115911fc01f936)
mvnd --clean -pl ""
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
cstamas commented 1 week ago

This is Maven4:

$ mvn -V -pl "" validate
Apache Maven 4.0.0-beta-3 (e92f645c2749eb2a4f5a8843cf01e7441e4b559f)
Maven home: /home/cstamas/.sdkman/candidates/maven/4.0.0-beta-3
Java version: 21.0.3, vendor: Eclipse Adoptium, runtime: /home/cstamas/.sdkman/candidates/java/21.0.3-tem
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "6.9.5-200.fc40.x86_64", arch: "amd64", family: "unix"
[ERROR] Error executing Maven.
[ERROR] Index 0 out of bounds for length 0
$