Package org.apache.maven.project
Class ReactorModelPool
java.lang.Object
org.apache.maven.project.ReactorModelPool
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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the model by its GAV or (since 4.0.0) by its GA if there is only one.private static String
getGroupId
(Model model) private String
getVersion
(Model model) (package private) void
-
Field Details
-
modelsByGa
-
modelsByPath
-
-
Constructor Details
-
ReactorModelPool
ReactorModelPool()
-
-
Method Details
-
get
Get the model by its GAV or (since 4.0.0) by its GA if there is only one.- Parameters:
groupId
- nevernull
artifactId
- nevernull
version
- can benull
- Returns:
- the matching model or
null
- Throws:
IllegalStateException
- if version was null and multiple modules share the same groupId + artifactId
-
getVersion
-
put
-
getGroupId
-