Files
datawave/contrib/datawave-utils/code-style/pom.xml
Daniel Roberts 72b9dcb28a Fixes read/assert-properties mojo warn messages (#3738)
Updates the read-properties and assert-properties maven plugins to use
Mojo assertions.
This removes the Mojo warning messages seen when using the plugins. 

Updates the compiler options to use the release flag which enforces a
tighter java 11 byte code enforcement than using the source and target
flags.

https://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-release.html

Performed minor code quality cleanup:
 * Used try-with-resources loops
* Refactored mixed string concat and append usage to only .append
methods with StringBuilder.
 * Marked final objects as final
 * Removed dep on StringUtils
2026-07-23 15:55:19 +00:00

88 lines
3.8 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</groupId>
<artifactId>datawave-code-style</artifactId>
<version>1.0.2-SNAPSHOT</version>
<packaging>jar</packaging>
<name>DataWave Code Formatter</name>
<description>This pom configures the formatter-maven-plugin to format the code
according to the DataWave code style.</description>
<url>https://code.nsa.gov/datawave-utils</url>
<licenses>
<license>
<name>The Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<scm>
<connection>scm:git:https://github.com/NationalSecurityAgency/datawave.git</connection>
<developerConnection>scm:git:[email protected]:NationalSecurityAgency/datawave.git</developerConnection>
<tag>HEAD</tag>
<url>https://github.com/NationalSecurityAgency/datawave</url>
</scm>
<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>
<maven.compiler.release>11</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.3.1</version>
<configuration>
<tagNameFormat>@{project.artifactId}_@{project.version}</tagNameFormat>
<releaseProfiles>dist</releaseProfiles>
<arguments>-Ddist</arguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.6.3</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>
</plugins>
</build>
</project>