Class PackageMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="package",
          defaultPhase=PACKAGE,
          requiresDependencyResolution=RUNTIME,
          requiresProject=true,
          threadSafe=true)
    public class PackageMojo
    extends AbstractOldCoreMojo
    Create a runnable XWiki instance using Jetty as the Servlet Container and HSQLDB as the Database.
    Since:
    3.4M1
    Version:
    $Id: bcd90f83b2ecdf2915f5ad06a732f353e1a23c1c $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories
      List of remote repositories to be used by the plugin to resolve dependencies.
      protected org.apache.maven.repository.RepositorySystem repositorySystem
      * Used to look up Artifacts in the remote repository.
      • Fields inherited from class org.xwiki.tool.extension.util.AbstractExtensionMojo

        container, disabledComponents, extensionHelper, extensionOverrides, localRepository, permanentDirectory, project, recommendedVersions, session, skip
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Constructor Summary

      Constructors 
      Constructor Description
      PackageMojo()  
    • Field Detail

      • repositorySystem

        @Component
        protected org.apache.maven.repository.RepositorySystem repositorySystem
        * Used to look up Artifacts in the remote repository.
      • remoteRepositories

        @Parameter(property="project.remoteArtifactRepositories")
        protected List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories
        List of remote repositories to be used by the plugin to resolve dependencies.
    • Constructor Detail

      • PackageMojo

        public PackageMojo()
    • Method Detail

      • before

        protected void before()
                       throws org.apache.maven.plugin.MojoExecutionException
        Overrides:
        before in class AbstractOldCoreMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • executeInternal

        public void executeInternal()
                             throws org.apache.maven.plugin.MojoExecutionException
        Specified by:
        executeInternal in class org.xwiki.tool.extension.util.AbstractExtensionMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • installJAR

        protected void installJAR​(org.apache.maven.artifact.Artifact artifact,
                                  File libDirectory)
                           throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • isSkipExecution

        protected boolean isSkipExecution()
        Overrides:
        isSkipExecution in class org.xwiki.tool.extension.util.AbstractExtensionMojo
      • replaceProperty

        protected String replaceProperty​(String content,
                                         org.apache.velocity.VelocityContext velocityContext)