Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove fails with type incompatibility with gson - Java 11 #1354

Open
Na3blis opened this issue Jun 19, 2020 · 1 comment
Open

Remove fails with type incompatibility with gson - Java 11 #1354

Na3blis opened this issue Jun 19, 2020 · 1 comment

Comments

@Na3blis
Copy link

Na3blis commented Jun 19, 2020

Description

Running a mvn clean with docker-maven-plugin configured with <removeNamePattern>${project.artifactId}:*</removeNamePattern> and

                            <execution>
                                <id>docker-remove</id>
                                <goals>
                                    <goal>remove</goal>
                                </goals>
                                <phase>clean</phase>
                            </execution>

causes the build to fail with the following error:
A type incompatibility occurred while executing io.fabric8:docker-maven-plugin:0.31.0:remove: class com.google.gson.JsonNull cannot be cast to class com.google.gson.JsonArray (com.google.gson.JsonNull and com.google.gson.JsonArray are in unnamed module of loader org.codehaus.plexus.classworlds.realm.ClassRealm

Info

  • d-m-p version : .31 (also tried .33)
  • Maven version (mvn -v) : 3.6.3
  • Docker version : engine 19.03.8 - docker desktop 2.2.0.5
  • If it's a bug, how to reproduce :
    Create a java 11 project with d-m-p setup to remove images on mvn clean. Untag an existing image so that it now displays none under tag. Run mvn clean
    NOTE
    This only started to happen when we updated to java 11, though one user had it occur on a java 8 project. It seems to be related to have an image tagged with none. If we manually delete any none tagged images, the issue goes away
@Na3blis
Copy link
Author

Na3blis commented Jul 15, 2020

PR fix for this #1355

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant