Class PostgresqlStartupMojo

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

    @Mojo(threadSafe=true,
          name="startup",
          defaultPhase=PRE_INTEGRATION_TEST,
          requiresProject=false)
    public class PostgresqlStartupMojo
    extends PostgresqlAbstractMojo
    Mojo for starting an PostgreSQL instance before integration test
    Author:
    Source (source (at) kosmisk.dk)
    • Field Detail

      • user

        @Parameter(defaultValue="${user.name}")
        protected String user
        User to own database
      • password

        @Parameter(defaultValue="${user.name}")
        protected String password
        Password for database owner
      • scripts

        @Parameter
        protected List<File> scripts
        Scripts to be loaded to setup database
      • settings

        @Parameter
        protected Map<String,​String> settings
        Map of parameters to be set in postgresql.conf
      • groupId

        @Parameter(defaultValue="dk.kosmisk")
        protected String groupId
        PostgreSQL binary package group
      • artifactId

        @Parameter(defaultValue="postgresql-binary")
        protected String artifactId
        PostgreSQL binary package artifact
      • version

        @Parameter(defaultValue="LATEST",
                   required=true)
        protected String version
        PostgreSQL binary package version
      • overwrite

        @Parameter(defaultValue="false")
        protected boolean overwrite
        Unpack even if a version has already been unpacked
    • Constructor Detail

      • PostgresqlStartupMojo

        public PostgresqlStartupMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException