Advertisement
Guest User

root-pom.xml

a guest
Dec 5th, 2020
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 8.08 KB | None | 0 0
  1. ```xml
  2. <?xml version="1.0" encoding="UTF-8"?>
  3. <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">
  4.     <modelVersion>4.0.0</modelVersion>
  5.  
  6.  
  7.     <groupId>###</groupId>
  8.     <artifactId>###</artifactId>
  9.     <packaging>pom</packaging>
  10.     <version>6.0.0.1-SNAPSHOT</version>
  11.     <modules>
  12.         <module>api</module>
  13.         <module>impl</module>
  14.         <module>db</module>
  15.         <module>model</module>
  16.     </modules>
  17.     <name>###</name>
  18.     <description>Microservice</description>
  19.  
  20.     <properties>
  21.         <build.number>-1</build.number>
  22.         <java.version>11</java.version>
  23.         <maven.compiler.source>${java.version}</maven.compiler.source>
  24.         <maven.compiler.target>${java.version}</maven.compiler.target>
  25.         <deployable.module>impl</deployable.module>
  26.  
  27.         <spring-cloud.version>Hoxton.SR1</spring-cloud.version>
  28.         <spring-boot.version>2.2.4.RELEASE</spring-boot.version>
  29.         <spring-data-envers.version>2.1.1.RELEASE</spring-data-envers.version>
  30.         <spring-security-test.version>5.2.2.RELEASE</spring-security-test.version>
  31.         <postgresql.version>42.2.10</postgresql.version>
  32.         <orika.version>1.5.4</orika.version>
  33.         <orika-spring-boot-starter.version>1.9.0</orika-spring-boot-starter.version>
  34.         <openapi.version>1.2.32</openapi.version>
  35.         <h2.version>1.4.200</h2.version>
  36.         <classgraph.version>4.8.44</classgraph.version>
  37.         <maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
  38.         <surefire.version>3.0.0-M4</surefire.version>
  39.         <spring-boot-maven-plugin.version>2.2.5.RELEASE</spring-boot-maven-plugin.version>
  40.  
  41.     </properties>
  42.  
  43.     <dependencyManagement>
  44.         <dependencies>
  45.             <!--    Spring     -->
  46.             <dependency>
  47.                 <groupId>org.springframework.cloud</groupId>
  48.                 <artifactId>spring-cloud-dependencies</artifactId>
  49.                 <version>${spring-cloud.version}</version>
  50.                 <type>pom</type>
  51.                 <scope>import</scope>
  52.             </dependency>
  53.             <dependency>
  54.                 <groupId>org.springframework.boot</groupId>
  55.                 <artifactId>spring-boot-dependencies</artifactId>
  56.                 <version>${spring-boot.version}</version>
  57.                 <type>pom</type>
  58.                 <scope>import</scope>
  59.             </dependency>
  60.             <dependency>
  61.                 <groupId>org.springdoc</groupId>
  62.                 <artifactId>springdoc-openapi-ui</artifactId>
  63.                 <version>${openapi.version}</version>
  64.             </dependency>
  65.             <dependency>
  66.                 <groupId>org.springframework.data</groupId>
  67.                 <artifactId>spring-data-envers</artifactId>
  68.                 <version>${spring-data-envers.version}</version>
  69.             </dependency>
  70.  
  71.             <!--    Database     -->
  72.             <dependency>
  73.                 <groupId>org.postgresql</groupId>
  74.                 <artifactId>postgresql</artifactId>
  75.                 <version>${postgresql.version}</version>
  76.             </dependency>
  77.  
  78.             <!--    Orika mapper    -->
  79.             <dependency>
  80.                 <groupId>ma.glasnost.orika</groupId>
  81.                 <artifactId>orika-core</artifactId>
  82.                 <version>${orika.version}</version>
  83.             </dependency>
  84.             <dependency>
  85.                 <groupId>net.rakugakibox.spring.boot</groupId>
  86.                 <artifactId>orika-spring-boot-starter</artifactId>
  87.                 <version>${orika-spring-boot-starter.version}</version>
  88.             </dependency>
  89.  
  90.             <!--    Tests    -->
  91.             <dependency>
  92.                 <groupId>com.h2database</groupId>
  93.                 <artifactId>h2</artifactId>
  94.                 <version>${h2.version}</version>
  95.                 <scope>test</scope>
  96.             </dependency>
  97.             <dependency>
  98.                 <groupId>org.springframework.security</groupId>
  99.                 <artifactId>spring-security-test</artifactId>
  100.                 <version>${spring-security-test.version}</version>
  101.                 <scope>test</scope>
  102.             </dependency>
  103.         </dependencies>
  104.     </dependencyManagement>
  105.  
  106.     <build>
  107.         <pluginManagement>
  108.             <plugins>
  109.                 <plugin>
  110.                     <groupId>com.github.wvengen</groupId>
  111.                     <artifactId>proguard-maven-plugin</artifactId>
  112.                     <executions>
  113.                         <execution>
  114.                             <phase>package</phase>
  115.                             <goals><goal>proguard</goal></goals>
  116.                         </execution>
  117.                     </executions>
  118.                     <configuration>
  119.                         <libs>
  120.                             <lib>../proguard/libs</lib>
  121.                         </libs>
  122.                         <proguardVersion>${proguard-base.version}</proguardVersion>
  123.                         <outjar>${project.build.finalName}.jar</outjar>
  124.                         <obfuscate>true</obfuscate>
  125.                         <proguardInclude>../proguard/proguard.conf</proguardInclude>
  126.                         <injarNotExistsSkip>true</injarNotExistsSkip>
  127.                     </configuration>
  128.                     <dependencies>
  129.                         <dependency>
  130.                             <groupId>net.sf.proguard</groupId>
  131.                             <artifactId>proguard-base</artifactId>
  132.                             <version>${proguard-base.version}</version>
  133.                         </dependency>
  134.                     </dependencies>
  135.                 </plugin>
  136.                 <plugin>
  137.                     <groupId>org.springframework.boot</groupId>
  138.                     <artifactId>spring-boot-maven-plugin</artifactId>
  139.                     <version>${spring-boot-maven-plugin.version}</version>
  140.                     <executions>
  141.                         <execution>
  142.                             <goals>
  143.                                 <goal>repackage</goal>
  144.                             </goals>
  145.                         </execution>
  146.                     </executions>
  147.                 </plugin>
  148.                 <plugin>
  149.                     <groupId>org.apache.maven.plugins</groupId>
  150.                     <artifactId>maven-surefire-plugin</artifactId>
  151.                     <version>${surefire.version}</version>
  152.                     <configuration>
  153.                         <excludes>
  154.                             <exclude>none</exclude>
  155.                         </excludes>
  156.                         <includes>
  157.                             <include>**/*Test.java</include>
  158.                             <include>**/*IT.java</include>
  159.                         </includes>
  160.                     </configuration>
  161.                 </plugin>
  162.             </plugins>
  163.         </pluginManagement>
  164.         <plugins>
  165.             <plugin>
  166.                 <groupId>org.apache.maven.plugins</groupId>
  167.                 <artifactId>maven-compiler-plugin</artifactId>
  168.                 <configuration>
  169.                     <compilerArgs>
  170.                         <arg>-parameters</arg>
  171.                     </compilerArgs>
  172.                 </configuration>
  173.             </plugin>
  174.             <plugin>
  175.                 <groupId>org.apache.maven.plugins</groupId>
  176.                 <artifactId>maven-jar-plugin</artifactId>
  177.                 <version>${maven-jar-plugin.version}</version>
  178.                 <configuration>
  179.                     <archive>
  180.                         <manifest>
  181.                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  182.                             <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  183.                         </manifest>
  184.                         <manifestEntries>
  185.                             <Build-Number>${build.number}</Build-Number>
  186.                         </manifestEntries>
  187.                     </archive>
  188.                 </configuration>
  189.             </plugin>
  190.         </plugins>
  191.     </build>
  192.  
  193. </project>
  194.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement