@Override
  public void execute() throws MojoExecutionException {
    checkJibVersion();
    MavenProject project = getProject();
    // Ignore pom projects
    if ("pom".equals(project.getPackaging())) {
      return;
    }

    SkaffoldInitOutput skaffoldInitOutput = new SkaffoldInitOutput();
    skaffoldInitOutput.setImage(getTargetImage());
    skaffoldInitOutput.setProject(project.getGroupId() + ":" + project.getArtifactId());
    System.out.println();
    System.out.println("BEGIN JIB JSON");
    try {
      System.out.println(skaffoldInitOutput.getJsonString());
    } catch (IOException ex) {
      throw new MojoExecutionException(ex.getMessage(), ex);
    }
  }
Prints out to.image configuration and project name, used for Jib project detection in Skaffold.

<p>Expected use: {@code ./mvnw jib:_skaffold-init -q}
jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/skaffold/InitMojo.java