Class 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 $
    • Constructor Detail

      • AbstractImportMojo

        public AbstractImportMojo()
    • Method Detail

      • importDependencies

        protected void importDependencies​(Importer importer,
                                          String databaseName,
                                          File hibernateConfig)
                                   throws Exception
        Parameters:
        importer - the importer
        databaseName - 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
      • installExtension

        protected void installExtension​(org.apache.maven.artifact.Artifact artifact,
                                        String namespace)
                                 throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException