You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 1
at io.openliberty.tools.maven.server.StartDebugMojoSupport.convertServerEnvToProperties (StartDebugMojoSupport.java:761)
at io.openliberty.tools.maven.server.StartDebugMojoSupport.mergeServerEnvFileAndEnvMavenProps (StartDebugMojoSupport.java:694)
at io.openliberty.tools.maven.server.StartDebugMojoSupport.copyConfigFiles (StartDebugMojoSupport.java:592)
at io.openliberty.tools.maven.server.CreateServerMojo.doExecute (CreateServerMojo.java:88)
The text was updated successfully, but these errors were encountered:
kgibm
changed the title
liberty:create error Array index out of range: 1
liberty:create error "Array index out of range: 1" in StartDebugMojoSupport.convertServerEnvToProperties
Oct 5, 2022
@kgibm Looks like an easy fix. The code only expects comment lines starting with # or lines with key=value. The blank line doesn't fit either scenario. I'll get this fixed in the next minor fix release.
Using
io.openliberty.tools:liberty-maven-plugin:3.7
, steps to reproduce:git clone https://github.com/kgibm/libertydiag
cd libertydiag
src/main/liberty/config/server.env
and add a blank line to the top so that the file contents are:./mvnw -X clean package
Blank lines should work: https://openliberty.io/docs/latest/reference/config/server-configuration-overview.html#server-env
The text was updated successfully, but these errors were encountered: