6 jun
2017

How to get docker-maven-plugin to work? Am getting a cannot find default setter in class error

I am getting the following error when attempting to add docker-maven-plugin by io.fabric8 to my spring project. How do I get around this? (I am on OSX)

[ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.21.0:build (default-cli) on project spring-boot-web: Unable to parse configuration of mojo io.fabric8:docker-maven-plugin:0.21.0:build for parameter image: Cannot find default setter in class io.fabric8.maven.docker.config.ImageConfiguration -> [Help 1]

The following is how I am declaring plugin:

        <plugin>
            <groupId>io.fabric8</groupId>
            <artifactId>docker-maven-plugin</artifactId>
            <version>0.21.0</version>
            <configuration>
                <dockerHost>unix:///var/run/docker.sock</dockerHost>
                <verbose>true</verbose>
                <images>
                    <image>${docker.image.prefix}/${docker.image.name}</image>
                    <build>
                        <dockerFileDir>${project.basedir}/src/main/docker/</dockerFileDir>

                        <assembly>
                            <descriptorRef>artifact</descriptorRef>
                        </assembly>
                        <tags>
                            <tag>latest</tag>
                            <tag>${project.version}</tag>
                        </tags>
                    </build>
                </images>
            </configuration>
        </plugin>

COMENTARIOS

DEJA TU COMENTARIO

© 2017 website by Rubit Corporation