public abstract class AbstractLiferayMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected File |
appServerClassesPortalDir |
protected File |
appServerLibGlobalDir |
protected File |
appServerLibPortalDir |
protected File |
appServerPortalDir |
protected File |
appServerTldPortalDir |
protected org.codehaus.plexus.archiver.manager.ArchiverManager |
archiverManager |
protected org.apache.maven.artifact.factory.ArtifactFactory |
artifactFactory |
protected org.apache.maven.artifact.resolver.ArtifactResolver |
artifactResolver |
protected static boolean |
initialized |
protected String |
liferayVersion |
protected org.apache.maven.artifact.repository.ArtifactRepository |
localArtifactRepository |
protected String |
pluginType |
static float |
PORTAL_VERSION_6_1 |
static float |
PORTAL_VERSION_6_2 |
protected org.apache.maven.project.MavenProject |
project |
protected org.apache.maven.project.MavenProjectBuilder |
projectBuilder |
protected List |
remoteArtifactRepositories |
protected File |
workDir |
| Constructor and Description |
|---|
AbstractLiferayMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDependencyToClassPath(List<String> classPath,
org.apache.maven.model.Dependency dependency) |
protected void |
copyLibraryDependencies(File libDir,
org.apache.maven.artifact.Artifact artifact) |
protected void |
copyLibraryDependencies(File libDir,
org.apache.maven.artifact.Artifact artifact,
boolean dependencyAddVersion,
boolean dependencyAddClassifier,
boolean copyTransitive) |
protected org.apache.maven.model.Dependency |
createDependency(String groupId,
String artifactId,
String version,
String classifier,
String type) |
protected abstract void |
doExecute() |
void |
execute() |
protected void |
executeTool(String toolClassName,
ClassLoader classLoader,
String[] args) |
protected float |
getPortalMajorVersion() |
protected ClassLoader |
getProjectClassLoader() |
protected List<String> |
getProjectClassPath() |
protected ClassLoader |
getToolsClassLoader() |
protected List<String> |
getToolsClassPath() |
protected void |
initPortalProperties() |
protected void |
initUtils() |
protected boolean |
isLiferayProject() |
protected org.apache.maven.artifact.Artifact |
resolveArtifact(org.apache.maven.model.Dependency dependency) |
protected URI |
resolveArtifactFileURI(org.apache.maven.model.Dependency dependency) |
protected org.apache.maven.project.MavenProject |
resolveProject(org.apache.maven.artifact.Artifact artifact) |
protected ClassLoader |
toClassLoader(List<String> classPath) |
public static final float PORTAL_VERSION_6_1
public static final float PORTAL_VERSION_6_2
protected static boolean initialized
protected File appServerClassesPortalDir
protected File appServerLibGlobalDir
protected File appServerLibPortalDir
protected File appServerPortalDir
protected File appServerTldPortalDir
protected org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager
protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
protected org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver
protected String liferayVersion
protected org.apache.maven.artifact.repository.ArtifactRepository localArtifactRepository
protected String pluginType
protected org.apache.maven.project.MavenProject project
protected org.apache.maven.project.MavenProjectBuilder projectBuilder
protected List remoteArtifactRepositories
protected File workDir
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void addDependencyToClassPath(List<String> classPath, org.apache.maven.model.Dependency dependency) throws Exception
Exceptionprotected void copyLibraryDependencies(File libDir, org.apache.maven.artifact.Artifact artifact) throws Exception
Exceptionprotected void copyLibraryDependencies(File libDir, org.apache.maven.artifact.Artifact artifact, boolean dependencyAddVersion, boolean dependencyAddClassifier, boolean copyTransitive) throws Exception
Exceptionprotected org.apache.maven.model.Dependency createDependency(String groupId, String artifactId, String version, String classifier, String type)
protected void executeTool(String toolClassName, ClassLoader classLoader, String[] args) throws Exception
Exceptionprotected float getPortalMajorVersion()
protected ClassLoader getProjectClassLoader() throws Exception
Exceptionprotected ClassLoader getToolsClassLoader() throws Exception
Exceptionprotected boolean isLiferayProject()
protected org.apache.maven.artifact.Artifact resolveArtifact(org.apache.maven.model.Dependency dependency)
throws Exception
Exceptionprotected URI resolveArtifactFileURI(org.apache.maven.model.Dependency dependency) throws Exception
Exceptionprotected org.apache.maven.project.MavenProject resolveProject(org.apache.maven.artifact.Artifact artifact)
throws Exception
Exceptionprotected ClassLoader toClassLoader(List<String> classPath) throws Exception
ExceptionCopyright © 2015. All Rights Reserved.