Package fr.paris.lutece.maven
Class AbstractLuteceMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
fr.paris.lutece.maven.AbstractLuteceMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
AbstractLuteceWebappMojo,PackageMojo
public abstract class AbstractLuteceMojo
extends org.apache.maven.plugin.AbstractMojo
Abstracts functionnality common to all Lutece mojos.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final StringTimestamp appended to assembly file names.protected static final StringTime zone the archive timestamps are formatted in.protected static final Stringprotected static final String[]The files to exclude from zip archives.protected static final String[]The files to include in zip archives.protected static final String[]protected static final String[]protected static final Stringprotected static final Stringprotected FileThe directory containing the Java classes.protected static final Stringprotected static final Stringprotected static final Collection<String>protected FileThe directory containing the default configuration files.protected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringConstants used to create inclusion or exclusion rules, for the zip, jar or war building.protected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringArtifacts never shipped in WEB-INF/lib : transitive dependencies do not always carry a usable scope, so they are excluded by name as well.protected static final StringThe name of the lutece core packaging.protected static final StringThe name of the lutece core artifact type.protected static final StringThe name of the lutece directory.protected static final StringThe name of the lutece plugin packaging.protected static final StringThe name of the lutece plugin artifact type.protected static final StringThe name of the lutece site packaging.protected static final StringThe name of the lutece site artifact type.protected static final Stringprotected FileThe project's output directoryprotected static final String[]protected static final String[]protected static final String[]The files to exclude from webapp archives.protected static final String[]The files to include in webapp archives.protected static final String[]The files to exclude from webapp archives.protected static final String[]The files to includes from webapp archives.protected static final String[]protected static final String[]protected StringThe version of this plugin, so that the banner does not claim a hardcoded one.protected static final StringThe name of the pom packaging.protected org.apache.maven.project.MavenProjectThe maven project.protected List<org.apache.maven.project.MavenProject>The projects in the reactor for aggregation report.protected static final Stringprotected org.apache.maven.execution.MavenSessionThe maven sessionprotected FileThe directory containing the default user documentation.protected FileThe directory containing the database sql script.protected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringConstante use for output path directory.protected static final StringThe classifier used for the webapp artifact.protected FileThe source directory for webapp components.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intRecords that a module has finished exploding, and returns how many have.protected Set<org.apache.maven.artifact.Artifact>The jars already deployed to WEB-INF/lib, so that a library asked by several modules of a reactor is shipped once, in its highest version.protected ObjectgetSharedDirectoryLock(File sharedDirectory) Returns the lock guarding a directory several modules of the build write into.voidprotected voidvalidatePackaging(String... allowedPackagings) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.plugin.Mojo
execute
-
Field Details
-
LUTECE_PLUGIN_TYPE
The name of the lutece plugin artifact type.- See Also:
-
LUTECE_CORE_TYPE
The name of the lutece core artifact type.- See Also:
-
LUTECE_SITE_TYPE
The name of the lutece site artifact type.- See Also:
-
LUTECE_CORE_PACKAGING
The name of the lutece core packaging.- See Also:
-
LUTECE_PLUGIN_PACKAGING
The name of the lutece plugin packaging.- See Also:
-
LUTECE_SITE_PACKAGING
The name of the lutece site packaging.- See Also:
-
POM_PACKAGING
The name of the pom packaging.- See Also:
-
WEBAPP_CLASSIFIER
The classifier used for the webapp artifact.- See Also:
-
LUTECE_DIRECTORY
The name of the lutece directory.- See Also:
-
ARTIFACT_BUILD_CONFIG
- See Also:
-
JUNIT
Artifacts never shipped in WEB-INF/lib : transitive dependencies do not always carry a usable scope, so they are excluded by name as well.- See Also:
-
SERVLET_API
- See Also:
-
INCLUDE_PATTERN_ALL
Constants used to create inclusion or exclusion rules, for the zip, jar or war building.- See Also:
-
INCLUDE_PATTERN_SQL
- See Also:
-
INCLUDE_PATTERN_SRC
- See Also:
-
INCLUDE_PATTERN_WEBAPP
- See Also:
-
INCLUDE_PATTERN_RESOURCES
- See Also:
-
INCLUDE_PATTERN_SITE_USER
- See Also:
-
EXCLUDE_PATTERN_CLASSES
- See Also:
-
EXCLUDE_PATTERN_LIB
- See Also:
-
EXCLUDE_PATTERN_SVN
- See Also:
-
EXCLUDE_PATTERN_ASSEMBLY
- See Also:
-
EXCLUDE_PATTERN_TARGET
- See Also:
-
EXCLUDE_PATTERN_WEBAPP
- See Also:
-
EXCLUDE_PATTERN_JAVA
- See Also:
-
EXCLUDE_PATTERN_SITE
- See Also:
-
EXCLUDE_PATTERN_TEST
- See Also:
-
EXCLUDE_PATTERN_PACKAGE_HTML
- See Also:
-
EXCLUDE_PATTERN_RESOURCES
- See Also:
-
EXCLUDE_PATTERN_BUSINESS
- See Also:
-
EXCLUDE_PATTERN_WEB
- See Also:
-
EXCLUDE_PATTERN_SERVICE
- See Also:
-
EXCLUDE_PATTERN_UTILS
- See Also:
-
EXCLUDE_PATTERN_UTIL
- See Also:
-
EXCLUDE_PATTERN_WEBINF_TEST
- See Also:
-
PACKAGE_CLASSES_INCLUDES
-
PACKAGE_CLASSES_EXCLUDES
-
PACKAGE_WEBAPP_INCLUDES
The files to include in webapp archives. -
PACKAGE_WEBAPP_SITE_INCLUDES
-
PACKAGE_WEBAPP_EXCLUDES
The files to exclude from webapp archives. -
PACKAGE_WEBAPP_SITE_EXCLUDES
-
PACKAGE_WEBAPP_RESOURCES_INCLUDE
The files to includes from webapp archives. -
PACKAGE_WEBAPP_RESOURCES_EXCLUDES
The files to exclude from webapp archives. -
ASSEMBLY_WEBAPP_INCLUDES
The files to include in zip archives. -
ASSEMBLY_WEBAPP_SITE_INCLUDES
-
ASSEMBLY_WEBAPP_EXCLUDES
The files to exclude from zip archives. -
ASSEMBLY_WEBAPP_SITE_EXCLUDES
-
WEB_INF_SQL_PATH
Constante use for output path directory.- See Also:
-
BUILD_CONFIG_PATH
- See Also:
-
ANT_PATH
- See Also:
-
WEB_INF_CLASSES_SQL_PATH
- See Also:
-
META_INF_DIRECTORY
- See Also:
-
WEB_INF_DB_PROPERTIES_PATH
- See Also:
-
WEB_INF_BUILD_PROPERTIES_PATH
- See Also:
-
BUILD_PROPERTIES_FILE
- See Also:
-
ARCHIVE_TIMESTAMP_PATTERN
Timestamp appended to assembly file names. "HH" is the 24-hour clock : with "hh", an assembly built at 13:30 and one built at 01:30 produced the very same file name.- See Also:
-
ARCHIVE_TIMESTAMP_TIME_ZONE
Time zone the archive timestamps are formatted in. Pinning it keeps the file names readable for the French teams that operate these assemblies, and keeps them stable whatever the time zone of the machine that happens to run the build.- See Also:
-
DATABASE_VENDOR_NONE
- See Also:
-
DATABASE_VENDOR_AUTO
- See Also:
-
DATABASE_VENDORS
-
WEB_INF_DOC_XML_PATH
- See Also:
-
project
@Parameter(property="project", readonly=true, required=true) protected org.apache.maven.project.MavenProject projectThe maven project. -
session
@Parameter(defaultValue="${session}", readonly=true) protected org.apache.maven.execution.MavenSession sessionThe maven session -
classesDirectory
The directory containing the Java classes. -
defaultConfDirectory
@Parameter(property="defaultConfDirectory", defaultValue="${basedir}/src/conf/default") protected File defaultConfDirectoryThe directory containing the default configuration files. -
webappSourceDirectory
@Parameter(property="webappSourceDirectory", defaultValue="${basedir}/webapp", required=true) protected File webappSourceDirectoryThe source directory for webapp components. -
sqlDirectory
The directory containing the database sql script. -
siteDirectory
@Parameter(property="siteDirectory", defaultValue="${basedir}/src/site") protected File siteDirectoryThe directory containing the default user documentation. -
outputDirectory
The project's output directory -
reactorProjects
@Parameter(property="reactorProjects", readonly=true) protected List<org.apache.maven.project.MavenProject> reactorProjectsThe projects in the reactor for aggregation report. -
pluginVersion
The version of this plugin, so that the banner does not claim a hardcoded one.
-
-
Constructor Details
-
AbstractLuteceMojo
public AbstractLuteceMojo()
-
-
Method Details
-
validatePackaging
protected void validatePackaging(String... allowedPackagings) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
getDeployedJars
The jars already deployed to WEB-INF/lib, so that a library asked by several modules of a reactor is shipped once, in its highest version. On a single project nothing ever collides and this is only a record of what was copied.- Returns:
- the shared set, never null
-
countExplodedModules
protected int countExplodedModules()Records that a module has finished exploding, and returns how many have.- Returns:
- the number of modules done so far, this one included
-
logBanner
public void logBanner()
-