Closed kamilgregorczyk closed 6 years ago
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:
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.<clinit> (AbstractZipArchiver.java:116)
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance (Constructor.java:488)
From searching for that class and exception, I found https://github.com/mojohaus/nbm-maven-plugin/issues/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 https://github.com/spotify/dockerfile-maven/issues/77
tl;dr: add the following to your plugin configuration
<dependencies>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-archiver</artifactId>
<version>3.4</version>
</dependency>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>javax.activation-api</artifactId>
<version>1.2.0</version>
</dependency>
</dependencies>
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 https://github.com/spotify/dockerfile-maven/issues/163#issuecomment-379775227 should fix it, someone just needs to make a PR
docker-client also needs to be updated to work with Java 9+, see https://github.com/spotify/docker-client/pull/1068
Did not realize this was already reported in #77, but this can be closed now too: see https://github.com/spotify/dockerfile-maven/issues/77#issuecomment-427489783
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