Class PostgresqlStartupMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- dk.kosmisk.postgresql.maven.plugin.PostgresqlAbstractMojo
-
- dk.kosmisk.postgresql.maven.plugin.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 PostgresqlAbstractMojoMojo for starting an PostgreSQL instance before integration test- Author:
- Source (source (at) kosmisk.dk)
-
-
Field Summary
Fields Modifier and Type Field Description protected StringartifactIdPostgreSQL binary package artifactprotected StringgroupIdPostgreSQL binary package groupprotected booleanoverwriteUnpack even if a version has already been unpackedprotected StringpasswordPassword for database ownerprotected List<File>scriptsScripts to be loaded to setup databaseprotected Map<String,String>settingsMap of parameters to be set in postgresql.confprotected StringuserUser to own databaseprotected StringversionPostgreSQL binary package version-
Fields inherited from class dk.kosmisk.postgresql.maven.plugin.PostgresqlAbstractMojo
ARTIFACT_UNPACKED, DATABASES_STOP_COMMANDS, folder, name, port, portProperty
-
-
Constructor Summary
Constructors Constructor Description PostgresqlStartupMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()-
Methods inherited from class dk.kosmisk.postgresql.maven.plugin.PostgresqlAbstractMojo
classifier, getProject, getPropertyName, resolvePort, scriptExtension, skip
-
-
-
-
Field Detail
-
user
@Parameter(defaultValue="${user.name}") protected String userUser to own database
-
password
@Parameter(defaultValue="${user.name}") protected String passwordPassword for database owner
-
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 versionPostgreSQL binary package version
-
overwrite
@Parameter(defaultValue="false") protected boolean overwrite
Unpack even if a version has already been unpacked
-
-