2019-12-05 09:56:52 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2021-05-06 12:57:07 -04:00
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
2020-03-15 08:52:24 -04:00
|
|
|
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">
|
2019-11-02 07:40:05 -04:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>core-java-jar</artifactId>
|
|
|
|
<packaging>jar</packaging>
|
2024-03-15 17:50:09 -04:00
|
|
|
<name>core-java-jar</name>
|
2021-08-02 14:57:15 -04:00
|
|
|
|
2019-11-02 07:40:05 -04:00
|
|
|
<parent>
|
2020-05-25 10:15:48 -04:00
|
|
|
<groupId>com.baeldung.core-java-modules</groupId>
|
|
|
|
<artifactId>core-java-modules</artifactId>
|
2019-11-02 07:40:05 -04:00
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.unix4j</groupId>
|
|
|
|
<artifactId>unix4j-command</artifactId>
|
|
|
|
<version>${unix4j.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.googlecode.grep4j</groupId>
|
|
|
|
<artifactId>grep4j</artifactId>
|
|
|
|
<version>${grep4j.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<!-- web -->
|
|
|
|
<!-- marshalling -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
<artifactId>jackson-databind</artifactId>
|
|
|
|
<version>${jackson.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
<version>${lombok.version}</version>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.javamoney</groupId>
|
|
|
|
<artifactId>moneta</artifactId>
|
|
|
|
<version>${javamoney.moneta.version}</version>
|
|
|
|
</dependency>
|
2022-07-10 22:09:49 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.mockito</groupId>
|
|
|
|
<artifactId>mockito-junit-jupiter</artifactId>
|
|
|
|
<version>${mockito.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2019-11-02 07:40:05 -04:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
2019-12-05 09:56:52 -05:00
|
|
|
<finalName>core-java-jar</finalName>
|
2019-11-02 07:40:05 -04:00
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
2021-09-25 23:28:09 -04:00
|
|
|
<version>${maven-dependency-plugin.version}</version>
|
2019-11-02 07:40:05 -04:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>copy-dependencies</id>
|
|
|
|
<phase>prepare-package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>copy-dependencies</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<outputDirectory>${project.build.directory}/libs</outputDirectory>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
<version>${maven-jar-plugin.version}</version>
|
|
|
|
<configuration>
|
|
|
|
<archive>
|
|
|
|
<manifest>
|
|
|
|
<addClasspath>true</addClasspath>
|
|
|
|
<classpathPrefix>libs/</classpathPrefix>
|
2020-01-16 07:48:48 -05:00
|
|
|
<mainClass>com.baeldung.executable.ExecutableMavenJar</mainClass>
|
2019-11-02 07:40:05 -04:00
|
|
|
</manifest>
|
|
|
|
</archive>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
2021-09-25 23:28:09 -04:00
|
|
|
<version>${maven-assembly-plugin.version}</version>
|
2019-11-02 07:40:05 -04:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>single</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<archiveBaseDirectory>${project.basedir}</archiveBaseDirectory>
|
|
|
|
<archive>
|
|
|
|
<manifest>
|
2020-01-16 07:48:48 -05:00
|
|
|
<mainClass>com.baeldung.executable.ExecutableMavenJar</mainClass>
|
2019-11-02 07:40:05 -04:00
|
|
|
</manifest>
|
|
|
|
</archive>
|
|
|
|
<descriptorRefs>
|
|
|
|
<descriptorRef>jar-with-dependencies</descriptorRef>
|
|
|
|
</descriptorRefs>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
|
|
<version>${maven-shade-plugin.version}</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>shade</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<shadedArtifactAttached>true</shadedArtifactAttached>
|
|
|
|
<transformers>
|
2021-05-06 12:57:07 -04:00
|
|
|
<transformer
|
|
|
|
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
2020-01-16 07:48:48 -05:00
|
|
|
<mainClass>com.baeldung.executable.ExecutableMavenJar</mainClass>
|
2019-11-02 07:40:05 -04:00
|
|
|
</transformer>
|
|
|
|
</transformers>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.jolira</groupId>
|
|
|
|
<artifactId>onejar-maven-plugin</artifactId>
|
|
|
|
<version>${onejar-maven-plugin.version}</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<configuration>
|
2020-01-16 07:48:48 -05:00
|
|
|
<mainClass>com.baeldung.executable.ExecutableMavenJar</mainClass>
|
2019-11-02 07:40:05 -04:00
|
|
|
<attachToBuild>true</attachToBuild>
|
|
|
|
<filename>${project.build.finalName}-onejar.${project.packaging}</filename>
|
|
|
|
</configuration>
|
|
|
|
<goals>
|
|
|
|
<goal>one-jar</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
<version>${spring-boot-maven-plugin.version}</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>repackage</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<classifier>spring-boot</classifier>
|
2020-01-16 07:48:48 -05:00
|
|
|
<mainClass>com.baeldung.executable.ExecutableMavenJar</mainClass>
|
2019-11-02 07:40:05 -04:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<executable>java</executable>
|
|
|
|
<mainClass>com.baeldung.outofmemoryerror.OutOfMemoryGCLimitExceed</mainClass>
|
|
|
|
<arguments>
|
|
|
|
<argument>-Xmx300m</argument>
|
|
|
|
<argument>-XX:+UseParallelGC</argument>
|
|
|
|
<argument>-classpath</argument>
|
2023-07-25 02:34:39 -04:00
|
|
|
<classpath/>
|
2019-11-02 07:40:05 -04:00
|
|
|
<argument>com.baeldung.outofmemoryerror.OutOfMemoryGCLimitExceed</argument>
|
|
|
|
</arguments>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
|
|
<version>${maven-javadoc-plugin.version}</version>
|
|
|
|
<configuration>
|
2020-01-15 15:23:26 -05:00
|
|
|
<source>${source.version}</source>
|
|
|
|
<target>${target.version}</target>
|
2019-11-02 07:40:05 -04:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>integration</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>test</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<excludes>
|
|
|
|
<exclude>**/*ManualTest.java</exclude>
|
|
|
|
</excludes>
|
|
|
|
<includes>
|
|
|
|
<include>**/*IntegrationTest.java</include>
|
|
|
|
<include>**/*IntTest.java</include>
|
|
|
|
</includes>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
|
|
|
<systemPropertyVariables>
|
|
|
|
<test.mime>json</test.mime>
|
|
|
|
</systemPropertyVariables>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>run-benchmarks</id>
|
|
|
|
<!-- <phase>integration-test</phase> -->
|
|
|
|
<phase>none</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<classpathScope>test</classpathScope>
|
|
|
|
<executable>java</executable>
|
|
|
|
<arguments>
|
|
|
|
<argument>-classpath</argument>
|
2023-07-25 02:34:39 -04:00
|
|
|
<classpath/>
|
2019-11-02 07:40:05 -04:00
|
|
|
<argument>org.openjdk.jmh.Main</argument>
|
|
|
|
<argument>.*</argument>
|
|
|
|
</arguments>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2022-03-13 05:18:44 -04:00
|
|
|
|
2019-11-02 07:40:05 -04:00
|
|
|
</profiles>
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<!-- util -->
|
|
|
|
<unix4j.version>0.4</unix4j.version>
|
|
|
|
<grep4j.version>1.8.7</grep4j.version>
|
2022-07-10 22:09:49 -04:00
|
|
|
<mockito.version>4.6.1</mockito.version>
|
2019-11-02 07:40:05 -04:00
|
|
|
<!-- maven plugins -->
|
|
|
|
<javamoney.moneta.version>1.1</javamoney.moneta.version>
|
2023-11-27 23:38:53 -05:00
|
|
|
<maven-javadoc-plugin.version>3.6.2</maven-javadoc-plugin.version>
|
2019-11-02 07:40:05 -04:00
|
|
|
<onejar-maven-plugin.version>1.4.4</onejar-maven-plugin.version>
|
|
|
|
<maven-shade-plugin.version>3.1.1</maven-shade-plugin.version>
|
2021-09-25 23:28:09 -04:00
|
|
|
<maven-assembly-plugin.version>3.3.0</maven-assembly-plugin.version>
|
|
|
|
<maven-dependency-plugin.version>3.2.0</maven-dependency-plugin.version>
|
2019-11-02 07:40:05 -04:00
|
|
|
<spring-boot-maven-plugin.version>2.0.3.RELEASE</spring-boot-maven-plugin.version>
|
2020-01-15 15:23:26 -05:00
|
|
|
<source.version>1.8</source.version>
|
|
|
|
<target.version>1.8</target.version>
|
2019-11-02 07:40:05 -04:00
|
|
|
</properties>
|
2019-12-05 09:56:52 -05:00
|
|
|
|
2022-09-13 11:52:49 -04:00
|
|
|
</project>
|