public abstract class AbstractFabric8Mojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected File |
appConfigDir
The folder used for defining project specific files
|
protected File |
kubernetesSourceJson
The source kubernetes JSON file
|
protected File |
zipFile
Name of the created app zip file
|
| Constructor and Description |
|---|
AbstractFabric8Mojo() |
| Modifier and Type | Method and Description |
|---|---|
protected URLClassLoader |
createClassLoader(List<String> classpathElements,
String... paths) |
protected static URLClassLoader |
createURLClassLoader(Collection<URL> jars) |
protected URLClassLoader |
getCompileClassLoader() |
JsonSchema |
getEnvironmentVariableJsonSchema() |
Map<String,String> |
getEnvironmentVariableProperties()
Returns all the environment variable properties defined in the pom.xml which are prefixed with "fabric8.env."
|
File |
getKubernetesJson() |
org.apache.maven.project.MavenProject |
getProject() |
Integer |
getReplicas() |
protected URLClassLoader |
getTestClassLoader() |
File |
getZipFile() |
protected boolean |
hasConfigDir() |
boolean |
isIgnoreProject() |
protected boolean |
isPom(org.apache.maven.project.MavenProject reactorProject)
Returns true if this project is a pom packaging project
|
protected boolean |
isPomProject() |
protected InputStream |
loadPluginResource(String iconRef) |
protected boolean |
shouldGenerateForThisProject() |
getLog, getPluginContext, setLog, setPluginContext@Parameter(property="fabric8.zip.file",
defaultValue="${project.build.directory}/${project.artifactId}-${project.version}-app.zip")
protected File zipFile
@Parameter(property="appConfigDir",
defaultValue="${basedir}/src/main/fabric8")
protected File appConfigDir
@Parameter(property="kubernetesSourceJson",
defaultValue="${basedir}/src/main/fabric8/kubernetes.json")
protected File kubernetesSourceJson
protected static URLClassLoader createURLClassLoader(Collection<URL> jars)
public File getKubernetesJson()
public org.apache.maven.project.MavenProject getProject()
public Integer getReplicas()
public boolean isIgnoreProject()
public File getZipFile()
protected boolean isPom(org.apache.maven.project.MavenProject reactorProject)
protected InputStream loadPluginResource(String iconRef) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected URLClassLoader getCompileClassLoader() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected URLClassLoader getTestClassLoader() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected URLClassLoader createClassLoader(List<String> classpathElements, String... paths) throws MalformedURLException
MalformedURLExceptionprotected boolean hasConfigDir()
protected boolean isPomProject()
protected boolean shouldGenerateForThisProject()
public Map<String,String> getEnvironmentVariableProperties()
public JsonSchema getEnvironmentVariableJsonSchema() throws IOException, org.apache.maven.plugin.MojoExecutionException
IOExceptionorg.apache.maven.plugin.MojoExecutionExceptionCopyright © 2011–2015 Red Hat. All rights reserved.