185 lines
7.6 KiB
XML
185 lines
7.6 KiB
XML
<?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.baeldung</groupId>
|
|
<artifactId>parent-modules</artifactId>
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
</parent>
|
|
<artifactId>libraries-data</artifactId>
|
|
<name>libraries-data</name>
|
|
<packaging>jar</packaging>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.esotericsoftware</groupId>
|
|
<artifactId>kryo</artifactId>
|
|
<version>${kryo.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.h2database</groupId>
|
|
<artifactId>h2</artifactId>
|
|
<version>${h2.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>${junit.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.goldmansachs.reladomo</groupId>
|
|
<artifactId>reladomo</artifactId>
|
|
<version>${reladomo.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.goldmansachs.reladomo</groupId>
|
|
<artifactId>reladomo-test-util</artifactId>
|
|
<version>${reladomo.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.j256.ormlite</groupId>
|
|
<artifactId>ormlite-jdbc</artifactId>
|
|
<version>${ormlite.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.kafka</groupId>
|
|
<artifactId>kafka-streams</artifactId>
|
|
<version>${kafka.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.kafka</groupId>
|
|
<artifactId>kafka-clients</artifactId>
|
|
<version>${kafka.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-log4j12</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.kafka</groupId>
|
|
<artifactId>kafka-clients</artifactId>
|
|
<version>${kafka.version}</version>
|
|
<classifier>test</classifier>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>${maven-compiler-plugin.version}</version>
|
|
<configuration>
|
|
<source>1.8</source>
|
|
<target>1.8</target>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- Reladomo -->
|
|
<plugin>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<version>1.8</version>
|
|
<executions>
|
|
<execution>
|
|
<id>generateMithra</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<tasks>
|
|
<property name="plugin_classpath" refid="maven.plugin.classpath"/>
|
|
<taskdef name="gen-reladomo" classpath="plugin_classpath"
|
|
classname="com.gs.fw.common.mithra.generator.MithraGenerator"/>
|
|
<gen-reladomo
|
|
xml="${project.basedir}/src/main/resources/reladomo/ReladomoClassList.xml"
|
|
generateGscListMethod="true"
|
|
generatedDir="${project.build.directory}/generated-sources/reladomo"
|
|
nonGeneratedDir="${project.basedir}/src/main/java"/>
|
|
|
|
<taskdef name="gen-ddl"
|
|
classname="com.gs.fw.common.mithra.generator.dbgenerator.MithraDbDefinitionGenerator"
|
|
loaderRef="reladomoGenerator">
|
|
<classpath refid="maven.plugin.classpath"/>
|
|
</taskdef>
|
|
<gen-ddl
|
|
xml="${project.basedir}/src/main/resources/reladomo/ReladomoClassList.xml"
|
|
generatedDir="${project.build.directory}/generated-db/sql"
|
|
databaseType="postgres"/>
|
|
</tasks>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.goldmansachs.reladomo</groupId>
|
|
<artifactId>reladomogen</artifactId>
|
|
<version>${reladomo.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.goldmansachs.reladomo</groupId>
|
|
<artifactId>reladomo-gen-util</artifactId>
|
|
<version>${reladomo.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
<version>3.0.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>add-source</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>add-source</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sources>
|
|
<source>${project.build.directory}/generated-sources/reladomo</source>
|
|
</sources>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>add-resource</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>add-resource</goal>
|
|
</goals>
|
|
<configuration>
|
|
<resources>
|
|
<resource>
|
|
<directory>${project.build.directory}/generated-db/</directory>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<!-- /Reladomo-->
|
|
|
|
</plugins>
|
|
</build>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>Apache Staging</id>
|
|
<url>https://repository.apache.org/content/groups/staging</url>
|
|
</repository>
|
|
</repositories>
|
|
<properties>
|
|
<kryo.version>4.0.1</kryo.version>
|
|
<h2.version>1.4.196</h2.version>
|
|
<reladomo.version>16.5.1</reladomo.version>
|
|
<junit.version>4.12</junit.version>
|
|
<maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
|
|
<ormlite.version>5.0</ormlite.version>
|
|
<kafka.version>1.0.0</kafka.version>
|
|
</properties>
|
|
</project> |