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 |
|---|---|
void |
configureEventHandlers(Containerizer containerizer)
Adds the plugin's event handlers to a containerizer.
|
JibContainerBuilder |
createContainerBuilder(RegistryImage baseImage,
AbsoluteUnixPath appRoot,
ContainerizingMode containerizingMode)
Starts the containerization process.
|
List<Path> |
getClassFiles() |
Path |
getDefaultCacheDirectory() |
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 |
isOffline() |
boolean |
isWarProject()
Gets whether or not the given project is a war project.
|
void |
log(LogEvent logEvent) |
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 propertyproject - the Maven projectsession - the Maven sessionpublic JibContainerBuilder createContainerBuilder(RegistryImage baseImage, AbsoluteUnixPath appRoot, ContainerizingMode containerizingMode) throws IOException
ProjectPropertiescreateContainerBuilder in interface ProjectPropertiesbaseImage - the base imageappRoot - root directory in the image where the app will be placedcontainerizingMode - mode to containerize the appJibContainerBuilder 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 void configureEventHandlers(Containerizer containerizer)
ProjectPropertiesconfigureEventHandlers in interface ProjectPropertiescontainerizer - the containerizer to add event handlers topublic void log(LogEvent logEvent)
log 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()
war and gwt-app.isWarProject in interface ProjectPropertiestrue if the project is a war project, false if notpublic String getName()
getName in interface ProjectPropertiespublic String getVersion()
getVersion in interface ProjectPropertiespublic int getMajorJavaVersion()
getMajorJavaVersion in interface ProjectPropertiespublic boolean isOffline()
isOffline in interface ProjectPropertiesCopyright © 2019. All rights reserved.