Class AbstractSourceAndMetadataPackageMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    VaultMojo

    public abstract class AbstractSourceAndMetadataPackageMojo
    extends AbstractMetadataPackageMojo
    Commons ancestor for all mojos dealing with package source files and meta data files
    • Field Detail

      • excludes

        @Parameter(property="vault.excludes",
                   defaultValue="**/.vlt,**/.vltignore",
                   required=true)
        protected Set<String> excludes
        The file name patterns to exclude (in addition to the default ones if addDefaultExcludes. The format of each pattern is described in DirectoryScanner. The comparison is against the path relative to the according filter root. Since this is hardly predictable it is recommended to use only filename/directory name patterns here but not take into account file system hierarchies!

        Each value is either a regex pattern if enclosed within %regex[ and ], otherwise an Ant pattern.

      • addDefaultExcludes

        @Parameter(defaultValue="true")
        protected boolean addDefaultExcludes
        By default files like .gitignore, .cvsignore etc. are excluded which means they will not being copied. If you need them for a particular reason you can do that by settings this to false. This means all files like the following will be copied.
        • Misc: **/*~, **/#*#, **/.#*, **/%*%, **/._*
        • CVS: **/CVS, **/CVS/**, **/.cvsignore
        • RCS: **/RCS, **/RCS/**
        • SCCS: **/SCCS, **/SCCS/**
        • VSSercer: **/vssver.scc
        • MKS: **/project.pj
        • SVN: **/.svn, **/.svn/**
        • GNU: **/.arch-ids, **/.arch-ids/**
        • Bazaar: **/.bzr, **/.bzr/**
        • SurroundSCM: **/.MySCMServerInfo
        • Mac: **/.DS_Store
        • Serena Dimension: **/.metadata, **/.metadata/**
        • Mercurial: **/.hg, **/.hg/**
        • GIT: **/.git, **/.gitignore, **/.gitattributes, **/.git/**
        • Bitkeeper: **/BitKeeper, **/BitKeeper/**, **/ChangeSet, **/ChangeSet/**
        • Darcs: **/_darcs, **/_darcs/**, **/.darcsrepo, **/.darcsrepo/****/-darcs-backup*, **/.darcs-temp-mail
        Since:
        1.1.0
    • Constructor Detail

      • AbstractSourceAndMetadataPackageMojo

        public AbstractSourceAndMetadataPackageMojo()
    • Method Detail

      • getJcrSourceDirectory

        protected File getJcrSourceDirectory()
      • getJcrSourceDirectory

        protected static File getJcrSourceDirectory​(File[] jcrRootSourceDirectory,
                                                    File builtContentDirectory,
                                                    org.apache.maven.plugin.logging.Log log)