org.ajax4jsf.builder.mojo
Class AssemblyLibraryMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.ajax4jsf.builder.mojo.AbstractCDKMojo
org.ajax4jsf.builder.mojo.AssemblyLibraryMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class AssemblyLibraryMojo
- extends AbstractCDKMojo
This plugin assembly full components library from modules, included in parent
project. Steps to create library : 1. Got parent project, and check modules
included in them. 2. For every module , build project and got it properties.
3. Resolve module artifact, check for "jar" type and include/exclude
criteria. for accepted modules, unpack it to classes directory, and put
config files in separate directories. 4. Append unpacked directory to
resources, included in result jar. 5. Merge all META-INF/faces-config.xml ,
*.tld, *.taglib.xml , resources-config.xml into ones. 6. append dependencies
of included projects to this.
- Author:
- shura
Fields inherited from class org.ajax4jsf.builder.mojo.AbstractCDKMojo |
classpathElements, compileSourceRoots, componentConfigDirectory, converterConfigDirectory, facesConfigInclude, key, library, outputDirectory, outputJavaDirectory, outputResourcesDirectory, outputTestsDirectory, project, resourcesInclude, taglibInclude, templatesDirectory, validatorConfigDirectory, velocity |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssemblyLibraryMojo
public AssemblyLibraryMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
setupParentProject
protected void setupParentProject()
throws org.apache.maven.plugin.MojoFailureException
- Check parent project, build if nesessary.
- Throws:
org.apache.maven.plugin.MojoFailureException
getArchiverManager
public org.codehaus.plexus.archiver.manager.ArchiverManager getArchiverManager()
- Returns:
- the archiverManager
setArchiverManager
public void setArchiverManager(org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager)
- Parameters:
archiverManager
- the archiverManager to set
getBuildDirectory
public java.io.File getBuildDirectory()
- Returns:
- the buildDirectory
setBuildDirectory
public void setBuildDirectory(java.io.File buildDirectory)
- Parameters:
buildDirectory
- the buildDirectory to set
getFactory
public org.apache.maven.artifact.factory.ArtifactFactory getFactory()
- Returns:
- the factory
setFactory
public void setFactory(org.apache.maven.artifact.factory.ArtifactFactory factory)
- Parameters:
factory
- the factory to set
getLocalRepository
public org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()
- Returns:
- the localRepository
setLocalRepository
public void setLocalRepository(org.apache.maven.artifact.repository.ArtifactRepository localRepository)
- Parameters:
localRepository
- the localRepository to set
getMavenProjectBuilder
public org.apache.maven.project.MavenProjectBuilder getMavenProjectBuilder()
- Returns:
- the mavenProjectBuilder
setMavenProjectBuilder
public void setMavenProjectBuilder(org.apache.maven.project.MavenProjectBuilder mavenProjectBuilder)
- Parameters:
mavenProjectBuilder
- the mavenProjectBuilder to set
getParentProject
public org.apache.maven.project.MavenProject getParentProject()
- Returns:
- the parentProject
setParentProject
public void setParentProject(org.apache.maven.project.MavenProject parentProject)
- Parameters:
parentProject
- the parentProject to set
getReactorProjects
public java.util.List getReactorProjects()
- Returns:
- the reactorProjects
setReactorProjects
public void setReactorProjects(java.util.List reactorProjects)
- Parameters:
reactorProjects
- the reactorProjects to set
getResolver
public org.apache.maven.artifact.resolver.ArtifactResolver getResolver()
- Returns:
- the resolver
setResolver
public void setResolver(org.apache.maven.artifact.resolver.ArtifactResolver resolver)
- Parameters:
resolver
- the resolver to set
Copyright © 2009. All Rights Reserved.