public class MavenProjectProperties extends Object implements ProjectProperties
MavenProject.| Modifier and Type | Field and Description |
|---|---|
static String |
PLUGIN_KEY
Used to identify this plugin when interacting with the maven system.
|
static String |
PLUGIN_NAME
Used for logging during main class inference and analysis of user configuration.
|
CACHE_DIRECTORY_NAME, EXPLODED_WAR_DIRECTORY_NAME| Modifier and Type | Method and Description |
|---|---|
JibContainerBuilder |
createContainerBuilder(RegistryImage baseImage)
Starts the containerization process.
|
List<Path> |
getClassFiles() |
Path |
getDefaultCacheDirectory() |
EventHandlers |
getEventHandlers() |
String |
getJarPluginName() |
String |
getMainClassFromJar() |
int |
getMajorJavaVersion() |
String |
getName() |
String |
getPluginName() |
static String |
getProperty(String propertyName,
org.apache.maven.project.MavenProject project,
org.apache.maven.execution.MavenSession session)
Gets a system property with the given name.
|
String |
getToolName() |
String |
getVersion() |
boolean |
isWarProject() |
void |
waitForLoggingThread() |
public static final String PLUGIN_NAME
public static final String PLUGIN_KEY
@Nullable public static String getProperty(String propertyName, @Nullable org.apache.maven.project.MavenProject project, @Nullable org.apache.maven.execution.MavenSession session)
propertyName - the name of the system propertypublic JibContainerBuilder createContainerBuilder(RegistryImage baseImage) throws IOException
ProjectPropertiescreateContainerBuilder in interface ProjectPropertiesbaseImage - the base imageJibContainerBuilder with classes, resources, and dependencies added to itIOException - if there is a problem walking the project filespublic List<Path> getClassFiles() throws IOException
getClassFiles in interface ProjectPropertiesIOExceptionpublic void waitForLoggingThread()
waitForLoggingThread in interface ProjectPropertiespublic EventHandlers getEventHandlers()
getEventHandlers in interface ProjectPropertiespublic String getToolName()
getToolName in interface ProjectPropertiespublic String getPluginName()
getPluginName in interface ProjectProperties@Nullable public String getMainClassFromJar()
getMainClassFromJar in interface ProjectPropertiespublic Path getDefaultCacheDirectory()
getDefaultCacheDirectory in interface ProjectPropertiespublic String getJarPluginName()
getJarPluginName in interface ProjectPropertiespublic boolean isWarProject()
isWarProject in interface ProjectPropertiespublic String getName()
getName in interface ProjectPropertiespublic String getVersion()
getVersion in interface ProjectPropertiespublic int getMajorJavaVersion()
getMajorJavaVersion in interface ProjectPropertiesCopyright © 2019. All rights reserved.