public class ReplacementsMaven extends Object implements Replacements
The replacements which are based on the plug-in properties, the
MavenProject
, the environment variables (see System.getenv()
)
and the system properties (see System.getProperties()
).
If the value of a variable is requested by calling the
getValue(String)
method the lookup of the variable is performed the
following way:
MavenProject
properties (see
MavenProject.getProperties()
)? If yes, return the value.MavenProject
as property? If yes,
return the value.null
.
public ReplacementsMaven(Map<Object,Object> pluginProperties, org.apache.maven.project.MavenProject project, org.apache.maven.settings.Settings settings, Map<String,String> environment, Map<Object,Object> systemProperties)
Creates replacements.
pluginProperties
- The properties of the plug-in configuration.project
- The Maven project.settings
- The settings of the local Maven installation.environment
- The environment variables.systemProperties
- The system properties.IllegalArgumentException
- If any of the parameters are null
.public String getValue(String name) throws ReplacementException
getValue
in interface Replacements
ReplacementException
Copyright © 2015–2019. All rights reserved.