Package org.xwiki.tool.packager
Class PackageMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.xwiki.tool.extension.util.AbstractExtensionMojo
-
- org.xwiki.tool.utils.AbstractOldCoreMojo
-
- org.xwiki.tool.packager.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.utils.AbstractOldCoreMojo
hibernateConfig, oldCoreHelper, wiki
-
-
Constructor Summary
Constructors Constructor Description PackageMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
before()
void
executeInternal()
protected void
installJAR(org.apache.maven.artifact.Artifact artifact, File libDirectory)
protected boolean
isSkipExecution()
protected String
replaceProperty(String content, org.apache.velocity.VelocityContext velocityContext)
-
Methods inherited from class org.xwiki.tool.utils.AbstractOldCoreMojo
after
-
Methods inherited from class org.xwiki.tool.extension.util.AbstractExtensionMojo
execute, initializeExtensionMojoHelper
-
-
-
-
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.
-
-
Method Detail
-
before
protected void before() throws org.apache.maven.plugin.MojoExecutionException
- Overrides:
before
in classAbstractOldCoreMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
executeInternal
public void executeInternal() throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
executeInternal
in classorg.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 classorg.xwiki.tool.extension.util.AbstractExtensionMojo
-
-