mirror of
https://github.com/NationalSecurityAgency/datawave.git
synced 2026-11-10 17:31:14 -10:00
418 lines
18 KiB
XML
418 lines
18 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>
|
|
<groupId>gov.nsa.datawave.microservice</groupId>
|
|
<artifactId>datawave-microservice-configcheck</artifactId>
|
|
<version>7.0.1-SNAPSHOT</version>
|
|
<name>${project.artifactId}</name>
|
|
<distributionManagement>
|
|
<repository>
|
|
<id>github-datawave</id>
|
|
<name>GitHub Datawave Apache Maven Packages</name>
|
|
<url>https://maven.pkg.github.com/NationalSecurityAgency/datawave</url>
|
|
</repository>
|
|
</distributionManagement>
|
|
<properties>
|
|
<java.version>11</java.version>
|
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
|
<maven.compiler.target>${java.version}</maven.compiler.target>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
<skipITs>${skipTests}</skipITs>
|
|
<skipTests>false</skipTests>
|
|
<skipUTs>${skipTests}</skipUTs>
|
|
<spotbugs.excludes.file />
|
|
<surefire.forkCount>1</surefire.forkCount>
|
|
<surefire.maxMemory>2048m</surefire.maxMemory>
|
|
<surefire.minMemory>128m</surefire.minMemory>
|
|
<surefire.reuseForks>false</surefire.reuseForks>
|
|
<!-- 2.14.X is the maximum version of jackson without snakeyaml version 2 causing spring-boot 2.7.1 conflict -->
|
|
<version.jackson>2.14.3</version.jackson>
|
|
<version.junit5>5.12.0</version.junit5>
|
|
<version.junit5.platform>1.12.0</version.junit5.platform>
|
|
<version.log4j>2.26.1</version.log4j>
|
|
<version.slf4j>2.0.17</version.slf4j>
|
|
<version.snakeyaml>1.33</version.snakeyaml>
|
|
<version.spring.boot>2.7.1</version.spring.boot>
|
|
</properties>
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<!-- Don't sort the import scope dependencies. The first declared version of a dependency in dependencyManagement will prevail. -->
|
|
<?SORTPOM IGNORE?>
|
|
<!-- snakeyaml >= 1.33 needed for jackson-dataformat-yaml 2.14.X -->
|
|
<dependency>
|
|
<groupId>org.yaml</groupId>
|
|
<artifactId>snakeyaml</artifactId>
|
|
<version>${version.snakeyaml}</version>
|
|
</dependency>
|
|
<!-- jackson-bom import to override the versions of jackson dependencies used in spring-boot -->
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson</groupId>
|
|
<artifactId>jackson-bom</artifactId>
|
|
<version>${version.jackson}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-bom</artifactId>
|
|
<version>${version.slf4j}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-bom</artifactId>
|
|
<version>${version.log4j}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-dependencies</artifactId>
|
|
<version>${version.spring.boot}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
<?SORTPOM RESUME?>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter</artifactId>
|
|
<version>${version.spring.boot}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter</artifactId>
|
|
<version>${version.junit5}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter-api</artifactId>
|
|
<version>${version.junit5}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter-engine</artifactId>
|
|
<version>${version.junit5}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter-params</artifactId>
|
|
<version>${version.junit5}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.junit.platform</groupId>
|
|
<artifactId>junit-platform-commons</artifactId>
|
|
<version>${version.junit5.platform}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.junit.platform</groupId>
|
|
<artifactId>junit-platform-engine</artifactId>
|
|
<version>${version.junit5.platform}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.junit.platform</groupId>
|
|
<artifactId>junit-platform-launcher</artifactId>
|
|
<version>${version.junit5.platform}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.junit.platform</groupId>
|
|
<artifactId>junit-platform-suite</artifactId>
|
|
<version>${version.junit5.platform}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.junit.vintage</groupId>
|
|
<artifactId>junit-vintage-engine</artifactId>
|
|
<version>${version.junit5}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-databind</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
|
<artifactId>jackson-dataformat-yaml</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-slf4j2-impl</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-api</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter</artifactId>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>commons-logging</groupId>
|
|
<artifactId>commons-logging</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-slf4j-impl</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-logging</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-log4j2</artifactId>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-slf4j-impl</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>jakarta.xml.bind</groupId>
|
|
<artifactId>jakarta.xml.bind-api</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>*</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
</dependencies>
|
|
<repositories>
|
|
<repository>
|
|
<releases>
|
|
<enabled>true</enabled>
|
|
</releases>
|
|
<snapshots>
|
|
<enabled>false</enabled>
|
|
</snapshots>
|
|
<id>github-datawave</id>
|
|
<url>https://maven.pkg.github.com/NationalSecurityAgency/datawave</url>
|
|
</repository>
|
|
</repositories>
|
|
<pluginRepositories>
|
|
<pluginRepository>
|
|
<releases>
|
|
<enabled>true</enabled>
|
|
</releases>
|
|
<snapshots>
|
|
<enabled>false</enabled>
|
|
</snapshots>
|
|
<id>github-datawave</id>
|
|
<url>https://maven.pkg.github.com/NationalSecurityAgency/datawave</url>
|
|
</pluginRepository>
|
|
</pluginRepositories>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>com.diffplug.spotless</groupId>
|
|
<artifactId>spotless-maven-plugin</artifactId>
|
|
<version>2.43.0</version>
|
|
<configuration>
|
|
<java>
|
|
<removeUnusedImports />
|
|
<importOrder>
|
|
<order>\#java,\#javax,\#,java,javax,org,com,</order>
|
|
</importOrder>
|
|
<excludes>
|
|
<exclude>**/thrift/*.java</exclude>
|
|
</excludes>
|
|
</java>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>apply</goal>
|
|
</goals>
|
|
<phase>process-sources</phase>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.github.ekryd.sortpom</groupId>
|
|
<artifactId>sortpom-maven-plugin</artifactId>
|
|
<version>4.0.0</version>
|
|
<configuration>
|
|
<predefinedSortOrder>recommended_2008_06</predefinedSortOrder>
|
|
<createBackupFile>false</createBackupFile>
|
|
<lineSeparator>\n</lineSeparator>
|
|
<spaceBeforeCloseEmptyElement>true</spaceBeforeCloseEmptyElement>
|
|
<expandEmptyElements>false</expandEmptyElements>
|
|
<nrOfIndentSpace>4</nrOfIndentSpace>
|
|
<sortDependencies>scope,groupId,artifactId</sortDependencies>
|
|
<sortPlugins>groupId,artifactId</sortPlugins>
|
|
<sortProperties>true</sortProperties>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>sort-pom</id>
|
|
<goals>
|
|
<goal>sort</goal>
|
|
</goals>
|
|
<phase>process-sources</phase>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.github.spotbugs</groupId>
|
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
|
<version>4.9.2.0</version>
|
|
<configuration>
|
|
<effort>Max</effort>
|
|
<threshold>High</threshold>
|
|
<xmlOutput>true</xmlOutput>
|
|
<excludeFilterFile>${spotbugs.excludes.file}</excludeFilterFile>
|
|
</configuration>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-to-slf4j</artifactId>
|
|
<version>${version.log4j}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.maven.doxia</groupId>
|
|
<artifactId>doxia-sink-api</artifactId>
|
|
<version>2.0.0</version>
|
|
</dependency>
|
|
</dependencies>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>check</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>net.revelc.code.formatter</groupId>
|
|
<artifactId>formatter-maven-plugin</artifactId>
|
|
<version>2.23.0</version>
|
|
<configuration>
|
|
<configFile>eclipse/Eclipse-Datawave-Codestyle.xml</configFile>
|
|
<lineEnding>LF</lineEnding>
|
|
<removeTrailingWhitespace>true</removeTrailingWhitespace>
|
|
<compilerSource>${maven.compiler.source}</compilerSource>
|
|
<compilerCompliance>${maven.compiler.source}</compilerCompliance>
|
|
<compilerTargetPlatform>${maven.compiler.target}</compilerTargetPlatform>
|
|
</configuration>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>gov.nsa.datawave</groupId>
|
|
<artifactId>datawave-code-style</artifactId>
|
|
<version>1.0.1</version>
|
|
</dependency>
|
|
</dependencies>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>format</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
<version>3.5.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>enforce-maven</id>
|
|
<goals>
|
|
<goal>enforce</goal>
|
|
</goals>
|
|
<configuration>
|
|
<rules>
|
|
<requireMavenVersion>
|
|
<version>3.6.3</version>
|
|
</requireMavenVersion>
|
|
</rules>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>enforce-banned-dependencies</id>
|
|
<goals>
|
|
<goal>enforce</goal>
|
|
</goals>
|
|
<configuration>
|
|
<rules>
|
|
<bannedDependencies>
|
|
<excludes>
|
|
<exclude>log4j:log4j</exclude>
|
|
<exclude>org.slf4j:slf4j-log4j12</exclude>
|
|
<exclude>ch.qos.logback:logback-classic</exclude>
|
|
</excludes>
|
|
</bannedDependencies>
|
|
</rules>
|
|
<fail>true</fail>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>3.5.2</version>
|
|
<configuration>
|
|
<skipTests>${skipUTs}</skipTests>
|
|
<reuseForks>${surefire.reuseForks}</reuseForks>
|
|
<forkCount>${surefire.forkCount}</forkCount>
|
|
<threadCount>1</threadCount>
|
|
<threadCountClasses>1</threadCountClasses>
|
|
<threadCountMethods>0</threadCountMethods>
|
|
<threadCountSuites>0</threadCountSuites>
|
|
<argLine>-XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Dfile.encoding=UTF8 -Duser.timezone=GMT -Xms${surefire.minMemory} -Xmx${surefire.maxMemory} -Dapple.awt.UIElement=true -Djava.security.krb5.realm= -Djava.security.krb5.kdc=</argLine>
|
|
<redirectTestOutputToFile>true</redirectTestOutputToFile>
|
|
<runOrder>random</runOrder>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<version>${version.spring.boot}</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>repackage</goal>
|
|
</goals>
|
|
<configuration>
|
|
<executable>true</executable>
|
|
<mainClass>datawave.microservice.configcheck.ConfigCheckApplication</mainClass>
|
|
<embeddedLaunchScriptProperties>
|
|
<inlinedConfScript>${basedir}/src/main/resources/launch.conf</inlinedConfScript>
|
|
</embeddedLaunchScriptProperties>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|