@Mojo(name="package",
defaultPhase=PACKAGE,
requiresDependencyResolution=COMPILE,
threadSafe=true)
public class VaultMojo
extends AbstractSourceAndMetadataPackageMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
escapeString
Expression preceded with this String won't be interpolated.
|
protected org.apache.maven.execution.MavenSession |
session |
addDefaultExcludes, excludesclassifier, outputTimestamp, project| Constructor and Description |
|---|
VaultMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFileSetToArchive(org.apache.maven.shared.filtering.MavenResourcesExecution mavenResourcesExecution,
ContentPackageArchiver archiver,
org.codehaus.plexus.archiver.util.DefaultFileSet fileSet)
Adds a fileSet to the archiver and optionally applies some filtering.
|
protected void |
addFileToArchive(org.apache.maven.shared.filtering.MavenResourcesExecution mavenResourcesExecution,
ContentPackageArchiver archiver,
File sourceFile,
String destFileName)
Adds a file to the archiver and optionally applies some filtering.
|
protected @NotNull org.codehaus.plexus.archiver.util.DefaultFileSet |
createFileSet(@NotNull File directory,
@NotNull String prefix)
Creates a
FileSet for the archiver |
protected @NotNull org.codehaus.plexus.archiver.util.DefaultFileSet |
createFileSet(@NotNull File directory,
@NotNull String prefix,
List<String> additionalExcludes)
Creates a
FileSet for the archiver |
void |
execute()
Executes this mojo
|
protected static Collection<File> |
getUncoveredFiles(File sourceDirectory,
Collection<String> excludes,
String prefix,
Collection<String> coveredFileNames)
Checks if some files (optionally prefixed) below the given source directory are not listed in coveredFiles
|
protected org.apache.maven.shared.filtering.MavenResourcesExecution |
setupMavenResourcesExecution() |
getJcrSourceDirectory, getJcrSourceDirectorygetFirstExistingDirectory, getMetaInfVaultSourceDirectory, getMetaInfVaultSourceDirectory, setPrefix@Parameter(property="vault.escapeString") protected String escapeString
\${foo} will be replaced with ${foo}.@Parameter(defaultValue="${session}",
readonly=true,
required=false)
protected org.apache.maven.execution.MavenSession session
@NotNull
protected @NotNull org.codehaus.plexus.archiver.util.DefaultFileSet createFileSet(@NotNull
@NotNull File directory,
@NotNull
@NotNull String prefix)
FileSet for the archiverdirectory - the directoryprefix - the prefix@NotNull
protected @NotNull org.codehaus.plexus.archiver.util.DefaultFileSet createFileSet(@NotNull
@NotNull File directory,
@NotNull
@NotNull String prefix,
List<String> additionalExcludes)
FileSet for the archiverdirectory - the directoryprefix - the prefixadditionalExcludes - excludesprotected void addFileToArchive(org.apache.maven.shared.filtering.MavenResourcesExecution mavenResourcesExecution,
ContentPackageArchiver archiver,
File sourceFile,
String destFileName)
throws org.apache.maven.shared.filtering.MavenFilteringException
mavenResourcesExecution - archiver - sourceFile - destFileName - org.apache.maven.shared.filtering.MavenFilteringException - in case filtering failedprotected void addFileSetToArchive(org.apache.maven.shared.filtering.MavenResourcesExecution mavenResourcesExecution,
ContentPackageArchiver archiver,
org.codehaus.plexus.archiver.util.DefaultFileSet fileSet)
throws org.apache.maven.shared.filtering.MavenFilteringException
mavenResourcesExecution - archiver - fileSet - org.apache.maven.shared.filtering.MavenFilteringException - in case filtering failedprotected org.apache.maven.shared.filtering.MavenResourcesExecution setupMavenResourcesExecution()
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected static Collection<File> getUncoveredFiles(File sourceDirectory, Collection<String> excludes, String prefix, Collection<String> coveredFileNames)
sourceDirectory - the source directoryprefix - the optional prefix to prepend to the relative file name before comparing with coveredFileNamescoveredFileNames - the covered file names (should have relative file names), might have OS specific separatorsentryNames.Copyright © 2020 The Apache Software Foundation. All rights reserved.