Package com.xpn.xwiki.tool.backup
Class AbstractImportMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.xwiki.tool.extension.util.AbstractExtensionMojo
-
- org.xwiki.tool.utils.AbstractOldCoreMojo
-
- com.xpn.xwiki.tool.backup.AbstractImportMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
ImportMojo
public abstract class AbstractImportMojo extends AbstractOldCoreMojo
Maven 2 plugin to generate XWiki data folder (database and extensions).- Since:
- 9.0RC1, 8.4.2
- Version:
- $Id: a2fcd680e1211633a273adbb431b2e12f379f636 $
-
-
Field Summary
Fields Modifier and Type Field 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
-
Fields inherited from class org.xwiki.tool.utils.AbstractOldCoreMojo
hibernateConfig, oldCoreHelper, wiki
-
-
Constructor Summary
Constructors Constructor Description AbstractImportMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class org.xwiki.tool.utils.AbstractOldCoreMojo
after, before
-
Methods inherited from class org.xwiki.tool.extension.util.AbstractExtensionMojo
execute, executeInternal, initializeExtensionMojoHelper, isSkipExecution
-
-
-
-
Field Detail
-
MPKEYPREFIX
public static final String MPKEYPREFIX
- See Also:
- Constant Field Values
-
MPNAME_NAME
public static final String MPNAME_NAME
- See Also:
- Constant Field Values
-
MPNAME_SUMMARY
public static final String MPNAME_SUMMARY
- See Also:
- Constant Field Values
-
MPNAME_WEBSITE
public static final String MPNAME_WEBSITE
- See Also:
- Constant Field Values
-
MPNAME_FEATURES
public static final String MPNAME_FEATURES
- See Also:
- Constant Field Values
-
installUser
@Parameter(defaultValue="XWiki.superadmin") protected String installUser
The reference of the user who installed the extensions.
-
-
Method Detail
-
importDependencies
protected void importDependencies(Importer importer, String databaseName, File hibernateConfig) throws Exception
- Parameters:
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)- Throws:
Exception
- failed to import dependencies
-
installXAR
protected void installXAR(org.apache.maven.artifact.Artifact artifact, Importer importer, XWikiContext xcontext) throws Exception
- Throws:
Exception
-
installExtension
protected void installExtension(org.apache.maven.artifact.Artifact artifact, String namespace) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-