title: How to tag an image with fabric8-maven-plugin?
body: <p>I want to build a Docker image with the fabric8-maven-plugin and push it to a custom registry (<code>gcr.io/&lt;myid&gt;/demo123</code>). However, the maven plugin always uses the project's group/artifact id for deriving the image tag. I thought I can configure the tag manually via the <code>&lt;name&gt;</code> tag of <code>&lt;image&gt;</code>, but this doesn't work... any ideas? </p>
  
  <p>Executing the maven goal <code>fabric8:build</code> results in</p>
  
  <pre><code>[INFO] F8: Successfully tagged example/demo:snapshot-180210-220255-0223
  [INFO] F8: [example/demo:snapshot-180210-220255-0223] "spring-boot": Built image sha256:003d6
  [INFO] F8: [example/demo:snapshot-180210-220255-0223] "spring-boot": Tag with latest
  </code></pre>
  
  <p>This is my pom.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
  &lt;groupId&gt;com.example&lt;/groupId&gt;
  &lt;artifactId&gt;demo&lt;/artifactId&gt;
  &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  &lt;packaging&gt;jar&lt;/packaging&gt;
  
  &lt;name&gt;demo&lt;/name&gt;
  &lt;description&gt;Demo project for Spring Boot&lt;/description&gt;
  
  &lt;parent&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
      &lt;version&gt;1.5.10.RELEASE&lt;/version&gt;
      &lt;relativePath/&gt; &lt;!-- lookup parent from repository --&gt;
  &lt;/parent&gt;
  
  &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
      &lt;java.version&gt;1.8&lt;/java.version&gt;
  &lt;/properties&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-actuator&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
          &lt;artifactId&gt;lombok&lt;/artifactId&gt;
          &lt;optional&gt;true&lt;/optional&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;io.fabric8&lt;/groupId&gt;
              &lt;artifactId&gt;fabric8-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.5.33&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;verbose&gt;true&lt;/verbose&gt;
                  &lt;images&gt;
                      &lt;image&gt;
                          &lt;name&gt;gcr.io/myid/demo123&lt;/name&gt;
                      &lt;/image&gt;
                  &lt;/images&gt;
              &lt;/configuration&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;fmp&lt;/id&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;resource&lt;/goal&gt;
                          &lt;goal&gt;build&lt;/goal&gt;
                          &lt;goal&gt;push&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p></p>
  
  <p>Thanks in advance!</p>
  
  <hr>
  
  <p>Solution: <a href="https://github.com/fabric8io/fabric8-maven-plugin/issues/1180" rel="nofollow noreferrer">https://github.com/fabric8io/fabric8-maven-plugin/issues/1180</a></p>