246 lines
7.5 KiB
XML
246 lines
7.5 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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
<version>3.4.6</version>
|
|
<relativePath/> <!-- lookup parent from repository -->
|
|
</parent>
|
|
<groupId>ru.nbch</groupId>
|
|
<artifactId>credit-tracker</artifactId>
|
|
<version>0.2</version>
|
|
<name>credit_tracker</name>
|
|
<description>Credit Tracker Application</description>
|
|
|
|
<properties>
|
|
<java.version>17</java.version>
|
|
<git.info.prefix>git_info</git.info.prefix>
|
|
<git.info.filename>git.properties</git.info.filename>
|
|
<registry.url>10.230.238.56:5000</registry.url>
|
|
<!-- <registry.url>rh8-vm3.nbki.msk:5000</registry.url>-->
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.mybatis.spring.boot</groupId>
|
|
<artifactId>mybatis-spring-boot-starter</artifactId>
|
|
<version>3.0.4</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.postgresql</groupId>
|
|
<artifactId>postgresql</artifactId>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.ibm.db2</groupId>
|
|
<artifactId>jcc</artifactId>
|
|
<version>12.1.0.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-api</artifactId>
|
|
<version>2.0.7</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-classic</artifactId>
|
|
<version>1.4.12</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-core</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-core</artifactId>
|
|
<version>1.5.12</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-lang3</artifactId>
|
|
<version>3.17.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-io</groupId>
|
|
<artifactId>commons-io</artifactId>
|
|
<version>2.18.0</version>
|
|
</dependency>
|
|
<!-- JAXB API -->
|
|
<dependency>
|
|
<groupId>jakarta.xml.bind</groupId>
|
|
<artifactId>jakarta.xml.bind-api</artifactId>
|
|
<version>4.0.2</version>
|
|
</dependency>
|
|
<!--JAXB runtime implementation: eclipse moxy-->
|
|
<dependency>
|
|
<groupId>org.eclipse.persistence</groupId>
|
|
<artifactId>org.eclipse.persistence.moxy</artifactId>
|
|
<version>4.0.2</version>
|
|
</dependency>
|
|
<!-- Activation dependency needed for JAXB -->
|
|
<dependency>
|
|
<groupId>com.sun.activation</groupId>
|
|
<artifactId>jakarta.activation</artifactId>
|
|
<version>2.0.1</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>co.elastic.apm</groupId>
|
|
<artifactId>apm-agent-api</artifactId>
|
|
<version>1.43.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.internetitem</groupId>
|
|
<artifactId>logback-elasticsearch-appender</artifactId>
|
|
<version>1.6</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.logstash.logback</groupId>
|
|
<artifactId>logstash-logback-encoder</artifactId>
|
|
<version>7.4</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.mybatis.spring.boot</groupId>
|
|
<artifactId>mybatis-spring-boot-starter-test</artifactId>
|
|
<version>3.0.4</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<finalName>credit-tracker</finalName>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<configuration>
|
|
<annotationProcessorPaths>
|
|
<path>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
</path>
|
|
</annotationProcessorPaths>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<configuration>
|
|
<excludes>
|
|
<exclude>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>pl.project13.maven</groupId>
|
|
<artifactId>git-commit-id-plugin</artifactId>
|
|
<version>4.9.10</version>
|
|
<executions>
|
|
<execution>
|
|
<id>get-the-git-infos</id>
|
|
<goals>
|
|
<goal>revision</goal>
|
|
</goals>
|
|
<phase>compile</phase>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<failOnNoGitDirectory>false</failOnNoGitDirectory>
|
|
<dotGitDirectory>${project.basedir}/${git.info.relative.dir}</dotGitDirectory>
|
|
<generateGitPropertiesFile>true</generateGitPropertiesFile>
|
|
<generateGitPropertiesFilename>
|
|
${project.build.outputDirectory}/${git.info.filename}
|
|
</generateGitPropertiesFilename>
|
|
<prefix>${git.info.prefix}</prefix>
|
|
<includeOnlyProperties>
|
|
<includeOnlyProperty>${git.info.prefix}.commit.id</includeOnlyProperty>
|
|
<includeOnlyProperty>${git.info.prefix}.branch</includeOnlyProperty>
|
|
<includeOnlyProperty>${git.info.prefix}.build.version</includeOnlyProperty>
|
|
<includeOnlyProperty>${git.info.prefix}.build.time</includeOnlyProperty>
|
|
<includeOnlyProperty>${git.info.prefix}.closest.tag.name</includeOnlyProperty>
|
|
</includeOnlyProperties>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
<version>0.45.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>Build and deploy docker container</id>
|
|
<phase>install</phase>
|
|
<goals>
|
|
<goal>build</goal>
|
|
<goal>push</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<images>
|
|
<image>
|
|
<name>${project.artifactId}:${project.version}</name>
|
|
<registry>${registry.url}</registry>
|
|
<build>
|
|
<dockerFile>${project.basedir}/Dockerfile</dockerFile>
|
|
<assembly>
|
|
<inline>
|
|
<files>
|
|
<file>
|
|
<source>${project.build.directory}/${project.build.finalName}.jar</source>
|
|
<outputDirectory>.</outputDirectory>
|
|
</file>
|
|
<file>
|
|
<source>${project.basedir}/apm-agent/elastic-apm-agent-1.45.0.jar</source>
|
|
<outputDirectory>.</outputDirectory>
|
|
</file>
|
|
<file>
|
|
<source>${project.basedir}/start-credit-tracker.sh</source>
|
|
<outputDirectory>.</outputDirectory>
|
|
</file>
|
|
<file>
|
|
<source>${project.basedir}/credit-tracker.properties</source>
|
|
<outputDirectory>.</outputDirectory>
|
|
</file>
|
|
<file>
|
|
<source>${project.basedir}/monitoring-request.xsd</source>
|
|
<outputDirectory>.</outputDirectory>
|
|
</file>
|
|
<file>
|
|
<source>${project.basedir}/signal-package.xsd</source>
|
|
<outputDirectory>.</outputDirectory>
|
|
</file>
|
|
</files>
|
|
</inline>
|
|
</assembly>
|
|
<tags>
|
|
<tag>${project.version}</tag>
|
|
</tags>
|
|
</build>
|
|
</image>
|
|
</images>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|