public abstract class AbstractImportMojo extends AbstractOldCoreMojo
Modifier and Type | Field and Description |
---|---|
protected String |
installUser
The reference of the user who installed the extensions.
|
static String |
MPKEYPREFIX |
static String |
MPNAME_FEATURES |
static String |
MPNAME_NAME |
static String |
MPNAME_SUMMARY |
static String |
MPNAME_WEBSITE |
hibernateConfig, oldCoreHelper, wiki
Constructor and Description |
---|
AbstractImportMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
importDependencies(Importer importer,
String databaseName,
File hibernateConfig) |
protected void |
installExtension(org.apache.maven.artifact.Artifact artifact,
String namespace) |
protected void |
installXAR(org.apache.maven.artifact.Artifact artifact,
Importer importer,
XWikiContext xcontext) |
after, before
execute, executeInternal, initializeExtensionMojoHelper, isSkipExecution
public static final String MPKEYPREFIX
public static final String MPNAME_NAME
public static final String MPNAME_SUMMARY
public static final String MPNAME_WEBSITE
public static final String MPNAME_FEATURES
@Parameter(defaultValue="XWiki.superadmin") protected String installUser
protected void importDependencies(Importer importer, String databaseName, File hibernateConfig) throws Exception
importer
- the importerdatabaseName
- some database name (TODO: find out what this name is really)hibernateConfig
- the Hibernate config fill containing the database definition (JDBC driver, username and
password, etc)Exception
- failed to import dependenciesprotected void installXAR(org.apache.maven.artifact.Artifact artifact, Importer importer, XWikiContext xcontext) throws Exception
Exception
protected void installExtension(org.apache.maven.artifact.Artifact artifact, String namespace) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
Copyright © 2004–2019 XWiki. All rights reserved.