@VisibleForTesting
  Optional<Xpp3Dom> getSpringBootRepackageConfiguration() {
    Plugin springBootPlugin =
        project.getPlugin("org.springframework.boot:spring-boot-maven-plugin");
    if (springBootPlugin != null) {
      for (PluginExecution execution : springBootPlugin.getExecutions()) {
        if (execution.getGoals().contains("repackage")) {
          Xpp3Dom configuration = (Xpp3Dom) execution.getConfiguration();
          if (configuration == null) {
            return Optional.of(new Xpp3Dom("configuration"));
          }

          boolean skip = Boolean.parseBoolean(getChildValue(configuration, "skip").orElse("false"));
          return skip ? Optional.empty() : Optional.of(configuration);
        }
      }
    }
    return Optional.empty();
  }
Returns Spring Boot {@code <configuration>} if the Spring Boot plugin is configured to run the
{@code repackage} goal to create a Spring Boot artifact.
jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/MavenProjectProperties.java