Package org.apache.maven.model.building
Interface TransformerContext
public interface TransformerContext
Context used to transform a pom file.
- Since:
- 4.0.0
- Author:
- Robert Scholte
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetRawModel
(String groupId, String artifactId) Get the model from the reactor based on the groupId and artifactId, will be used for reactor dependenciesgetRawModel
(Path pomFile) Get the model based on the path, will be used to resolve the parent based on relativePathgetUserProperty
(String key) Get the value of the commandline argument-Dkey=value
-
Field Details
-
KEY
Key to get the TransformerContext from the SessionData
-
-
Method Details
-
getUserProperty
Get the value of the commandline argument-Dkey=value
- Parameters:
key
-- Returns:
-
getRawModel
Get the model based on the path, will be used to resolve the parent based on relativePath- Parameters:
pomFile
- the path to the pomFile- Returns:
- the model, otherwise
null
-
getRawModel
Get the model from the reactor based on the groupId and artifactId, will be used for reactor dependencies- Parameters:
groupId
- the groupIdartifactId
- the artifactId- Returns:
- the model, otherwise
null
- Throws:
IllegalStateException
- if multiple versions of the same GA are part of the reactor
-