public class MavenEnricherContext extends Object implements EnricherContext
| Modifier and Type | Class and Description |
|---|---|
static class |
MavenEnricherContext.Builder |
| Modifier and Type | Method and Description |
|---|---|
Configuration |
getConfiguration()
The configuration specific to the enricher.
|
List<Dependency> |
getDependencies(boolean transitive)
Gets dependencies defined in build tool
|
String |
getDockerJsonConfigString(org.apache.maven.settings.Settings settings,
String serverId) |
GroupArtifactVersion |
getGav()
Get the current artifact with its parameters
|
io.fabric8.maven.docker.util.Logger |
getLog()
Get Logger.
|
Map<String,String> |
getProcessingInstructions() |
org.apache.maven.project.MavenProject |
getProject() |
ProjectClassLoaders |
getProjectClassLoaders()
Get various class loaders used in the projects
|
File |
getProjectDirectory()
Base directory of the project.
|
Object |
getProperty(String key)
Gets a system property used in project.
|
org.apache.maven.settings.Server |
getServer(org.apache.maven.settings.Settings settings,
String serverId) |
org.apache.maven.settings.Settings |
getSettings() |
boolean |
hasPlugin(String groupId,
String artifactId)
Check if a given plugin is present
|
Path |
resolvePath(String path)
Resolves the path string against the project directory
|
void |
setProcessingInstructions(Map<String,String> instruction) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDependencyVersion, hasDependencypublic Configuration getConfiguration()
EnricherContextgetConfiguration in interface EnricherContextpublic org.apache.maven.settings.Settings getSettings()
public Map<String,String> getProcessingInstructions()
getProcessingInstructions in interface EnricherContextpublic void setProcessingInstructions(Map<String,String> instruction)
setProcessingInstructions in interface EnricherContextpublic io.fabric8.maven.docker.util.Logger getLog()
EnricherContextgetLog in interface EnricherContextpublic GroupArtifactVersion getGav()
EnricherContextgetGav in interface EnricherContextpublic File getProjectDirectory()
EnricherContextgetProjectDirectory in interface EnricherContextpublic Path resolvePath(String path)
EnricherContextresolvePath in interface EnricherContextpath - the path string to resolvePath.resolve(String)public List<Dependency> getDependencies(boolean transitive)
EnricherContextgetDependencies in interface EnricherContexttransitive - if transitive deps should be returned.public boolean hasPlugin(String groupId, String artifactId)
EnricherContexthasPlugin in interface EnricherContextgroupId - group id of plugin to check. If null any group will be considered.artifactId - of plugin to checkpublic ProjectClassLoaders getProjectClassLoaders()
EnricherContextgetProjectClassLoaders in interface EnricherContextpublic Object getProperty(String key)
EnricherContextgetProperty in interface EnricherContextkey - name of propertypublic org.apache.maven.project.MavenProject getProject()
public String getDockerJsonConfigString(org.apache.maven.settings.Settings settings, String serverId)
public org.apache.maven.settings.Server getServer(org.apache.maven.settings.Settings settings,
String serverId)
Copyright © 2020. All rights reserved.