Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```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>
- <groupId>###</groupId>
- <artifactId>###</artifactId>
- <packaging>pom</packaging>
- <version>6.0.0.1-SNAPSHOT</version>
- <modules>
- <module>api</module>
- <module>impl</module>
- <module>db</module>
- <module>model</module>
- </modules>
- <name>###</name>
- <description>Microservice</description>
- <properties>
- <build.number>-1</build.number>
- <java.version>11</java.version>
- <maven.compiler.source>${java.version}</maven.compiler.source>
- <maven.compiler.target>${java.version}</maven.compiler.target>
- <deployable.module>impl</deployable.module>
- <spring-cloud.version>Hoxton.SR1</spring-cloud.version>
- <spring-boot.version>2.2.4.RELEASE</spring-boot.version>
- <spring-data-envers.version>2.1.1.RELEASE</spring-data-envers.version>
- <spring-security-test.version>5.2.2.RELEASE</spring-security-test.version>
- <postgresql.version>42.2.10</postgresql.version>
- <orika.version>1.5.4</orika.version>
- <orika-spring-boot-starter.version>1.9.0</orika-spring-boot-starter.version>
- <openapi.version>1.2.32</openapi.version>
- <h2.version>1.4.200</h2.version>
- <classgraph.version>4.8.44</classgraph.version>
- <maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
- <surefire.version>3.0.0-M4</surefire.version>
- <spring-boot-maven-plugin.version>2.2.5.RELEASE</spring-boot-maven-plugin.version>
- </properties>
- <dependencyManagement>
- <dependencies>
- <!-- Spring -->
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-dependencies</artifactId>
- <version>${spring-cloud.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-dependencies</artifactId>
- <version>${spring-boot.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <dependency>
- <groupId>org.springdoc</groupId>
- <artifactId>springdoc-openapi-ui</artifactId>
- <version>${openapi.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.data</groupId>
- <artifactId>spring-data-envers</artifactId>
- <version>${spring-data-envers.version}</version>
- </dependency>
- <!-- Database -->
- <dependency>
- <groupId>org.postgresql</groupId>
- <artifactId>postgresql</artifactId>
- <version>${postgresql.version}</version>
- </dependency>
- <!-- Orika mapper -->
- <dependency>
- <groupId>ma.glasnost.orika</groupId>
- <artifactId>orika-core</artifactId>
- <version>${orika.version}</version>
- </dependency>
- <dependency>
- <groupId>net.rakugakibox.spring.boot</groupId>
- <artifactId>orika-spring-boot-starter</artifactId>
- <version>${orika-spring-boot-starter.version}</version>
- </dependency>
- <!-- Tests -->
- <dependency>
- <groupId>com.h2database</groupId>
- <artifactId>h2</artifactId>
- <version>${h2.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.springframework.security</groupId>
- <artifactId>spring-security-test</artifactId>
- <version>${spring-security-test.version}</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
- <build>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>com.github.wvengen</groupId>
- <artifactId>proguard-maven-plugin</artifactId>
- <executions>
- <execution>
- <phase>package</phase>
- <goals><goal>proguard</goal></goals>
- </execution>
- </executions>
- <configuration>
- <libs>
- <lib>../proguard/libs</lib>
- </libs>
- <proguardVersion>${proguard-base.version}</proguardVersion>
- <outjar>${project.build.finalName}.jar</outjar>
- <obfuscate>true</obfuscate>
- <proguardInclude>../proguard/proguard.conf</proguardInclude>
- <injarNotExistsSkip>true</injarNotExistsSkip>
- </configuration>
- <dependencies>
- <dependency>
- <groupId>net.sf.proguard</groupId>
- <artifactId>proguard-base</artifactId>
- <version>${proguard-base.version}</version>
- </dependency>
- </dependencies>
- </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>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>${surefire.version}</version>
- <configuration>
- <excludes>
- <exclude>none</exclude>
- </excludes>
- <includes>
- <include>**/*Test.java</include>
- <include>**/*IT.java</include>
- </includes>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <compilerArgs>
- <arg>-parameters</arg>
- </compilerArgs>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>${maven-jar-plugin.version}</version>
- <configuration>
- <archive>
- <manifest>
- <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
- <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
- </manifest>
- <manifestEntries>
- <Build-Number>${build.number}</Build-Number>
- </manifestEntries>
- </archive>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement