-
Notifications
You must be signed in to change notification settings - Fork 491
"java.lang.ExceptionInInitializerError ... java.lang.ArrayIndexOutOfBoundsException: 1 at org.codehaus.plexus.archiver.zip.AbstractZipArchiver" when using Java 9 #163
Comments
Thanks for the report. In the future, please post the exception messages / output in the issue itself, as anyone searching for similar issues on Github in the future won't be able to find anything behind a pastebin link. This seems to be the relevant part of the stacktrace:
From searching for that class and exception, I found mojohaus/nbm-maven-plugin#24 which pointed me towards https://cwiki.apache.org/confluence/display/MAVEN/Java+9+-+Jigsaw - it seems like a fair number of core Maven plugins are not yet ready for Java 9, or require updates to the version that this library pulls in in order to be compatible. |
in particular some of these dependencies might need updating to Java 9 compatible versions: https://github.com/spotify/dockerfile-maven/blob/v1.4.0/plugin/pom.xml#L54-L82 |
Thanks for your response, I assume no quick fix is possible? |
I haven't looked into it yet besides the comments above. We aren't using Java 9 ourselves much yet, so might not have an opportunity to figure it out right away - would definitely welcome any PRs or more investigation here. I'd start with trying to find the latest versions of the mentioned dependencies. |
i had the same stacktrace, following the advice from another issue fixed everything for me tl;dr: add the following to your plugin configuration
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
this isn't stale; the comment in #163 (comment) should fix it, someone just needs to make a PR |
docker-client also needs to be updated to work with Java 9+, see spotify/docker-client#1068 |
Did not realize this was already reported in #77, but this can be closed now too: see #77 (comment) |
Hi everyone, I'm using spring boot 2.0 with java 9. I wanted to use this plugin but without any luck so far. When I'm calling:
mvn dockerfile:build
I get nulls (java.lang.ExceptionInInitializerError: null)Here's my full error: https://pastebin.com/BZwmHMrB
Full error with debug flag (-e -X): https://pastebin.com/rvyiEz1h
Here's my POM file
Here's my
mvn -v
The text was updated successfully, but these errors were encountered: