concord-server-db
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.walmartlabs.concord.server</groupId> <artifactId>concord-server-db</artifactId> <version>2.32.0</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.walmartlabs.concord.server</groupId> <artifactId>parent</artifactId> <version>2.32.0</version> <relativePath>../pom.xml</relativePath> </parent> <artifactId>concord-server-db</artifactId> <packaging>jar</packaging> <name>${project.groupId}:${project.artifactId}</name> <properties> <db.image>library/postgres:10.4-alpine</db.image> <db.baseDir>${project.build.directory}/db</db.baseDir> <db.changeLogPath>com/walmartlabs/concord/server/db/liquibase.xml</db.changeLogPath> <db.host>localhost</db.host> <db.username>postgres</db.username> <db.password>q1</db.password> </properties> <dependencies> <dependency> <groupId>com.walmartlabs.concord.server</groupId> <artifactId>concord-server-sdk</artifactId> </dependency> <dependency> <groupId>com.walmartlabs.concord.server</groupId> <artifactId>liquibase-ext</artifactId> </dependency> <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> </dependency> <dependency> <groupId>javax.inject</groupId> <artifactId>javax.inject</artifactId> </dependency> <dependency> <groupId>com.google.inject</groupId> <artifactId>guice</artifactId> </dependency> <dependency> <groupId>com.zaxxer</groupId> <artifactId>HikariCP</artifactId> </dependency> <dependency> <groupId>org.jooq</groupId> <artifactId>jooq</artifactId> </dependency> <dependency> <groupId>org.liquibase</groupId> <artifactId>liquibase-core</artifactId> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> </dependency> <dependency> <groupId>io.dropwizard.metrics</groupId> <artifactId>metrics-core</artifactId> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.testcontainers</groupId> <artifactId>postgresql</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <testResources> <testResource> <directory>src/test/resources</directory> <filtering>false</filtering> </testResource> <testResource> <directory>src/test/filtered-resources</directory> <filtering>true</filtering> </testResource> </testResources> <plugins> <plugin> <groupId>org.eclipse.sisu</groupId> <artifactId>sisu-maven-plugin</artifactId> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <id>reserve-ports</id> <phase>generate-sources</phase> <goals> <goal>reserve-network-port</goal> </goals> <configuration> <portNames> <portName>db.port</portName> </portNames> </configuration> </execution> </executions> </plugin> <plugin> <groupId>io.fabric8</groupId> <artifactId>docker-maven-plugin</artifactId> <extensions>true</extensions> <executions> <execution> <id>start</id> <phase>generate-sources</phase> <goals> <goal>start</goal> </goals> </execution> <execution> <id>stop</id> <phase>prepare-package</phase> <goals> <goal>stop</goal> </goals> </execution> </executions> <configuration> <images> <image> <name>${db.image}</name> <alias>db</alias> <run> <ports> <port>${db.port}:5432</port> </ports> <env> <POSTGRES_PASSWORD>${db.password}</POSTGRES_PASSWORD> <POSTGRES_INITDB_ARGS>--no-sync</POSTGRES_INITDB_ARGS> </env> <wait> <log>(?s).*ready for start up.*ready to accept connections.*</log> <time>60000</time> </wait> </run> </image> </images> </configuration> </plugin> <plugin> <groupId>org.liquibase</groupId> <artifactId>liquibase-maven-plugin</artifactId> <version>${liquibase.version}</version> <executions> <execution> <phase>generate-sources</phase> <goals> <goal>update</goal> </goals> </execution> </executions> <configuration> <changeLogFile>src/main/resources/${db.changeLogPath}</changeLogFile> <driver>org.postgresql.Driver</driver> <url>jdbc:postgresql://${db.host}:${db.port}/postgres</url> <username>${db.username}</username> <password>${db.password}</password> <promptOnNonLocalDatabase>false</promptOnNonLocalDatabase> <contexts>codegen</contexts> <expressionVariables> <superuserAvailable>true</superuserAvailable> <createExtensionAvailable>true</createExtensionAvailable> </expressionVariables> </configuration> </plugin> <plugin> <groupId>org.jooq</groupId> <artifactId>jooq-codegen-maven</artifactId> <executions> <execution> <phase>generate-sources</phase> <goals> <goal>generate</goal> </goals> </execution> </executions> <configuration> <logging>WARN</logging> <jdbc> <driver>org.postgresql.Driver</driver> <url>jdbc:postgresql://${db.host}:${db.port}/postgres</url> <user>${db.username}</user> <password>${db.password}</password> </jdbc> <generator> <database> <name>org.jooq.meta.postgres.PostgresDatabase</name> <inputSchema>public</inputSchema> <includes>.*</includes> <excludes>DATABASECHANGELOG.*</excludes> </database> <target> <packageName>com.walmartlabs.concord.server.jooq</packageName> <directory>target/generated-sources/jooq</directory> </target> <generate> <deprecationOnUnknownTypes>false</deprecationOnUnknownTypes> </generate> </generator> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <configuration> <skip>true</skip> <check /> </configuration> </plugin> </plugins> </build> <profiles> <profile> <id>looper</id> <activation> <activeByDefault>false</activeByDefault> </activation> <properties> <db.host>${env.DB_CONTAINER_NAME}</db.host> <db.port>5432</db.port> </properties> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <id>reserve-ports</id> <phase>none</phase> </execution> </executions> </plugin> <plugin> <groupId>io.fabric8</groupId> <artifactId>docker-maven-plugin</artifactId> <extensions>true</extensions> <configuration> <skip>true</skip> </configuration> </plugin> </plugins> </build> </profile> </profiles> </project>