Updating - Docker Maven Plugin configuration "cannot find assemblies"

Hi all, I’m looking to update Bloomreach to 14.7.12 (from 14.5.0, with the idea being updating to 15 at some point). Unfortunately I’m having a problem on the build command:

[ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.33.0:remove (Delete docker image) on project *project*: Unable to parse configuration of mojo io.fabric8:docker-maven-plugin:0.33.0:remove for parameter assemblies: Cannot find 'assemblies' in class io.fabric8.maven.docker.config.BuildImageConfiguration

The docker image runs ok on 14.5.0, I’ve checked the release notes and as far as I’ve seen everything should be ok - is there something I’m missing? Any pointers would be greatly appreciated :slight_smile:

HAve you made any customizations to the docker profile?

Hi, I’m getting the same error message after upgrade to 15.1.2 from 15.1.0 and I haven’t made any customization in the profile

Hi jasper thanks for responding, the docker.build profile is slightly different to the default:

    <profile>
      <id>docker.build</id>      
      <dependencies>
        <dependency>
          <groupId>${project.groupId}</groupId>
          <artifactId>${project.artifactId}-cms</artifactId>
          <version>${project.version}</version>
          <type>war</type>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>${project.groupId}</groupId>
          <artifactId>${project.artifactId}-webapp</artifactId>
          <version>${project.version}</version>
          <type>war</type>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>com.onehippo.cms7</groupId>
          <artifactId>hippo-addon-targeting-shared-api</artifactId>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>org.apache.logging.log4j</groupId>
          <artifactId>log4j-slf4j-impl</artifactId>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>org.slf4j</groupId>
          <artifactId>jcl-over-slf4j</artifactId>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>org.apache.logging.log4j</groupId>
          <artifactId>log4j-api</artifactId>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>org.apache.logging.log4j</groupId>
          <artifactId>log4j-core</artifactId>           
          <scope>provided</scope>
        </dependency>              
      </dependencies>
    </profile>

Out of curiosity I have tried a clean install and checked a few things, including specifying the 0.33.0 version of the docker-maven-plugin which resulted in the same error. I had tried more updated versions of the plugin without success however, so I’m thinking that there’s something else either directly or in addition.

Hi,
In versions 14.7.9 and 15.1.1 we bumped the io.fabric8:docker-maven-plugin from 0.33.0 to 0.40.2 and started to use <assemblies> in the default configuration (projects inherit that from our release pom). AFAICS that should work, the plugin does support it… at least it’s documented like that in fabric8io/docker-maven-plugin

Regards, Jeroen