public abstract class AbstractLuteceWebappMojo extends AbstractLuteceMojo
Modifier and Type | Field and Description |
---|---|
protected Set<org.apache.maven.artifact.Artifact> |
artifacts
The set of artifacts required by this project, including transitive
dependencies.
|
protected File |
localConfDirectory
The directory containing the local, user-specific configuration files.
|
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
The local repository.
|
protected org.apache.maven.artifact.metadata.ArtifactMetadataSource |
metadataSource
The artifact metadata source.
|
protected List<org.apache.maven.artifact.repository.ArtifactRepository> |
remoteRepositories
The remote repositories.
|
protected org.apache.maven.artifact.resolver.ArtifactResolver |
resolver
The artifact resolver.
|
protected File |
testWebappDirectory
The directory where to explode the test webapp.
|
artifactCollector, ASSEMBLY_WEBAPP_EXCLUDES, ASSEMBLY_WEBAPP_INCLUDES, ASSEMBLY_WEBAPP_SITE_EXCLUDES, ASSEMBLY_WEBAPP_SITE_INCLUDES, classesDirectory, defaultConfDirectory, EXCLUDE_PATTERN_ASSEMBLY, EXCLUDE_PATTERN_BUSINESS, EXCLUDE_PATTERN_CLASSES, EXCLUDE_PATTERN_JAVA, EXCLUDE_PATTERN_LIB, EXCLUDE_PATTERN_PACKAGE_HTML, EXCLUDE_PATTERN_RESOURCES, EXCLUDE_PATTERN_SERVICE, EXCLUDE_PATTERN_SITE, EXCLUDE_PATTERN_SVN, EXCLUDE_PATTERN_TARGET, EXCLUDE_PATTERN_TEST, EXCLUDE_PATTERN_UTIL, EXCLUDE_PATTERN_UTILS, EXCLUDE_PATTERN_WEB, EXCLUDE_PATTERN_WEBAPP, EXCLUDE_PATTERN_WEBINF_TEST, INCLUDE_PATTERN_ALL, INCLUDE_PATTERN_RESOURCES, INCLUDE_PATTERN_SITE_USER, INCLUDE_PATTERN_SQL, INCLUDE_PATTERN_SRC, INCLUDE_PATTERN_WEBAPP, logger, LUTECE_CORE_PACKAGING, LUTECE_CORE_TYPE, LUTECE_DIRECTORY, LUTECE_PLUGIN_PACKAGING, LUTECE_PLUGIN_TYPE, LUTECE_SITE_PACKAGING, multiProjectArtifacts, multiProjectArtifactsCopied, outputDirectory, PACKAGE_CLASSES_EXCLUDES, PACKAGE_CLASSES_INCLUDES, PACKAGE_WEBAPP_EXCLUDES, PACKAGE_WEBAPP_INCLUDES, PACKAGE_WEBAPP_RESOURCES_EXCLUDES, PACKAGE_WEBAPP_RESOURCES_INCLUDE, PACKAGE_WEBAPP_SITE_EXCLUDES, PACKAGE_WEBAPP_SITE_INCLUDES, POM_PACKAGING, project, reactorProjects, siteDirectory, sqlDirectory, WEB_INF_DOC_XML_PATH, WEB_INF_SQL_PATH, WEBAPP_CLASSIFIER, webappSourceDirectory
Constructor and Description |
---|
AbstractLuteceWebappMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
addToExplodedWebapp(org.apache.maven.artifact.Artifact luteceArtifact,
File webappDir)
Adds a Lutece artifact to an exploded webapp.
|
protected void |
copyThirdPartyJars(File webappDir)
Copy third-party JARs to an exploded webapp directory.
|
protected void |
explodeConfigurationFiles(File targetDir) |
protected void |
explodeWebapp(File targetDir)
Creates an exploded webapp structure from the current project.
|
protected Set<org.apache.maven.artifact.Artifact> |
filterArtifacts(org.apache.maven.artifact.resolver.filter.ArtifactFilter filter)
Filters the project's set of artifacts with an ArtifactFilter.
|
protected File |
getRootProjectBuildDirectory()
Used for multiproject, return the output directory ( /target/lutece/ ) of root project.
|
protected File |
getRootProjectBuildDirectoryTarget()
Used for multiproject, return the output directory ( /target ) of root project.
|
enableLogging
getLog, getPluginContext, setLog, setPluginContext
protected File localConfDirectory
protected Set<org.apache.maven.artifact.Artifact> artifacts
protected org.apache.maven.artifact.resolver.ArtifactResolver resolver
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
protected List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories
protected org.apache.maven.artifact.metadata.ArtifactMetadataSource metadataSource
protected File testWebappDirectory
protected void explodeWebapp(File targetDir) throws org.apache.maven.plugin.MojoExecutionException
targetDir
- the destination directory.org.apache.maven.plugin.MojoExecutionException
- if an error occurs while exploding the webapp.protected void explodeConfigurationFiles(File targetDir) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void copyThirdPartyJars(File webappDir) throws org.apache.maven.plugin.MojoExecutionException
webappDir
- the webapp directoryorg.apache.maven.plugin.MojoExecutionException
- if an error occurs while copying the files.protected void addToExplodedWebapp(org.apache.maven.artifact.Artifact luteceArtifact, File webappDir) throws org.apache.maven.plugin.MojoExecutionException
luteceArtifact
- the Lutece artifact.webappDir
- the exploded webapp's base directory.org.apache.maven.plugin.MojoExecutionException
- if an error occurs while unpacking.protected Set<org.apache.maven.artifact.Artifact> filterArtifacts(org.apache.maven.artifact.resolver.filter.ArtifactFilter filter)
type
- the type to retain.protected File getRootProjectBuildDirectory()
protected File getRootProjectBuildDirectoryTarget()
Copyright © 2006–2015 Mairie de Paris. All rights reserved.