2021-08-08 07:21:24 +02:00
<?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>
2021-11-23 16:25:07 +01:00
<name > file-age-rm</name>
<description > age dependent file remove</description>
<url > https://www.swingbe.de</url>
2021-08-08 07:21:24 +02:00
<groupId > de.begerad.file-age-rm</groupId>
<artifactId > file-age-rm</artifactId>
2021-10-01 15:32:30 +02:00
<version > 0.0.1</version>
2021-11-23 16:25:07 +01:00
<packaging > jar</packaging>
2021-08-08 07:21:24 +02:00
<properties >
2021-08-09 07:41:21 +02:00
<!-- https://maven.apache.org/general.html#encoding - warning -->
2021-08-08 07:21:24 +02:00
<project.build.sourceEncoding > UTF-8</project.build.sourceEncoding>
2021-11-23 16:25:07 +01:00
<!-- note that Maven Shade Plugin only works with Java from version 7 and up -->
2021-08-09 07:41:21 +02:00
<maven.compiler.source > 1.8</maven.compiler.source>
<maven.compiler.target > 1.8</maven.compiler.target>
2021-08-08 07:21:24 +02:00
</properties>
<dependencies >
2021-08-09 07:41:21 +02:00
<!-- junit 5, unit test -->
<dependency >
<groupId > org.junit.jupiter</groupId>
<artifactId > junit-jupiter-engine</artifactId>
<version > 5.7.2</version>
<scope > test</scope>
</dependency>
2021-08-08 07:21:24 +02:00
<dependency >
<groupId > org.apache.logging.log4j</groupId>
<artifactId > log4j-slf4j-impl</artifactId>
2021-08-09 07:41:21 +02:00
<version > 2.14.1</version>
2021-08-08 07:21:24 +02:00
</dependency>
</dependencies>
<build >
<plugins >
2021-08-09 07:41:21 +02:00
<!-- The default maven - surefire - plugin is outdated,
make sure update to the latest.-->
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-surefire-plugin</artifactId>
<version > 2.22.2</version>
</plugin>
2021-08-08 07:21:24 +02:00
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-shade-plugin</artifactId>
<version > 3.2.4</version>
<executions >
<execution >
2021-10-01 15:32:30 +02:00
<phase > package</phase>
2021-08-08 07:21:24 +02:00
<goals >
2021-10-01 15:32:30 +02:00
<!-- tells that it should be run in package phase -->
2021-08-08 07:21:24 +02:00
<goal > shade</goal>
</goals>
<configuration >
2021-10-01 15:32:30 +02:00
<filters >
<filter >
<artifact > *:*</artifact>
<excludes >
<exclude > META-INF/*.MF</exclude>
</excludes>
</filter>
</filters>
2021-08-08 07:21:24 +02:00
<shadedArtifactAttached > true</shadedArtifactAttached>
2021-10-01 15:32:30 +02:00
<shadedClassifierName > depds</shadedClassifierName>
2021-08-08 07:21:24 +02:00
<transformers >
2021-10-01 15:32:30 +02:00
<!-- configure resources transformer for Maven Shade Plugin with ManifestResourceTransformer that allows us to define a mainClass in the META - INF/MANIFEST.MF file of the jar file, making the jar file after building, can run standalone -->
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<!-- define some other information in the META - INF/MANIFEST.MF file inside the jar file -->
<manifestEntries >
<Main-Class > de.begerad.fileagerm.Main</Main-Class>
<Specification-Title > ${project.artifactId}</Specification-Title>
<Specification-Version > ${project.version}</Specification-Version>
<Implementation-Title > ${project.artifactId}</Implementation-Title>
<Implementation-Version > ${project.version}</Implementation-Version>
<Implementation-Vendor-Id > ${project.groupId}</Implementation-Vendor-Id>
</manifestEntries>
2021-08-08 07:21:24 +02:00
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>