public static MavenProjectProperties getForProject(
      PluginDescriptor jibPluginDescriptor,
      MavenProject project,
      MavenSession session,
      Log log,
      TempDirectoryProvider tempDirectoryProvider,
      Collection<JibMavenPluginExtension<?>> injectedExtensions) {
    Preconditions.checkNotNull(jibPluginDescriptor);
    Supplier<List<JibMavenPluginExtension<?>>> extensionLoader =
        () -> {
          List<JibMavenPluginExtension<?>> extensions = new ArrayList<>();
          for (JibMavenPluginExtension<?> extension :
              ServiceLoader.load(JibMavenPluginExtension.class)) {
            extensions.add(extension);
          }
          return extensions;
        };
    return new MavenProjectProperties(
        jibPluginDescriptor,
        project,
        session,
        log,
        tempDirectoryProvider,
        injectedExtensions,
        extensionLoader);
  }
Static factory method for {@link MavenProjectProperties}.

@param jibPluginDescriptor the jib-maven-plugin plugin descriptor
@param project the {@link MavenProject} for the plugin.
@param session the {@link MavenSession} for the plugin.
@param log the Maven {@link Log} to log messages during Jib execution
@param tempDirectoryProvider temporary directory provider
@param injectedExtensions the extensions injected into the Mojo
@return a MavenProjectProperties from the given project and logger.
jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/MavenProjectProperties.java