Class ReactorModelPool

java.lang.Object
org.apache.maven.project.ReactorModelPool

class ReactorModelPool extends Object
Holds all Models that are known to the reactor. This allows the project builder to resolve imported Models from the reactor when building another project's effective model.
  • Field Details

  • Constructor Details

    • ReactorModelPool

      ReactorModelPool()
  • Method Details

    • get

      public Model get(String groupId, String artifactId, String version)
      Get the model by its GAV or (since 4.0.0) by its GA if there is only one.
      Parameters:
      groupId - never null
      artifactId - never null
      version - can be null
      Returns:
      the matching model or null
      Throws:
      IllegalStateException - if version was null and multiple modules share the same groupId + artifactId
    • getVersion

      private String getVersion(Model model)
    • put

      void put(Path pomFile, Model model)
    • getGroupId

      private static String getGroupId(Model model)