Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 9.24 KB | None | 0 0
  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <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">
  3.     <modelVersion>4.0.0</modelVersion>
  4.  
  5.     <groupId>com.audi.awsi.awsisecsol.service.aia-transformation-service</groupId>
  6.     <artifactId>AIA-Transformation-Service-project</artifactId>
  7.     <version>1.0.0-SNAPSHOT</version>
  8.     <packaging>pom</packaging>
  9.  
  10.     <parent>
  11.         <groupId>com.audi.awsi.service</groupId>
  12.         <artifactId>awsi-service-parent</artifactId>
  13.         <version>1.1.0</version>
  14.     </parent>
  15.  
  16.     <properties>
  17.         <!-- Framework -->
  18.         <spring.boot.version>2.1.3.RELEASE</spring.boot.version>
  19.  
  20.         <!-- AWSI Library -->
  21.         <awsi.service.library.version>2.1.1</awsi.service.library.version>
  22.  
  23.         <!-- Libraries -->
  24.         <swagger.version>1.5.22</swagger.version>
  25.         <swagger-ui.version>3.20.9</swagger-ui.version>
  26.         <restassured.version>3.3.0</restassured.version>
  27.         <cucumber-vm.version>1.2.5</cucumber-vm.version>
  28.         <jaxb.version>2.3.0</jaxb.version>
  29.  
  30.         <!-- Build tools -->
  31.         <maven.compiler-plugin.version>3.8.0</maven.compiler-plugin.version>
  32.         <maven.jar-plugin.version>3.1.1</maven.jar-plugin.version>
  33.         <maven.dependency-plugin.version>3.1.1</maven.dependency-plugin.version>
  34.         <maven.surefire-plugin.version>2.22.1</maven.surefire-plugin.version>
  35.         <maven.failsafe-plugin.version>2.22.1</maven.failsafe-plugin.version>
  36.         <maven.swagger-plugin.version>3.1.7</maven.swagger-plugin.version>
  37.  
  38.         <jvm-test-arguments>
  39.             --illegal-access=permit
  40.         </jvm-test-arguments>
  41.  
  42.         <!-- Misc -->
  43.         <project.build.javaVersion>11</project.build.javaVersion>
  44.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  45.         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  46.     </properties>
  47.  
  48.     <modules>
  49.         <module>AIA-Transformation-Service</module>
  50.         <module>AIA-Transformation-Service-st</module>
  51.         <module>AIA-Transformation-Service-lt</module>
  52.     </modules>
  53.  
  54.     <dependencyManagement>
  55.         <dependencies>
  56.             <dependency>
  57.                 <groupId>com.audi.awsi.selfservice.service.template.library</groupId>
  58.                 <artifactId>awsi-base</artifactId>
  59.                 <version>${awsi.service.library.version}</version>
  60.             </dependency>
  61.             <dependency>
  62.                 <groupId>com.audi.awsi.selfservice.service.template.library</groupId>
  63.                 <artifactId>awsi-actuator</artifactId>
  64.                 <version>${awsi.service.library.version}</version>
  65.             </dependency>
  66.             <dependency>
  67.                 <groupId>com.audi.awsi.selfservice.service.template.library</groupId>
  68.                 <artifactId>awsi-jwt-authentication</artifactId>
  69.                 <version>${awsi.service.library.version}</version>
  70.             </dependency>
  71.             <!-- start of jaxb -->
  72.             <!-- jaxb got removed with java 11 modules -->
  73.             <dependency>
  74.                 <groupId>javax.xml.bind</groupId>
  75.                 <artifactId>jaxb-api</artifactId>
  76.                 <version>${jaxb.version}</version>
  77.             </dependency>
  78.             <dependency>
  79.                 <groupId>com.sun.xml.bind</groupId>
  80.                 <artifactId>jaxb-impl</artifactId>
  81.                 <version>${jaxb.version}</version>
  82.             </dependency>
  83.             <!-- end of jaxb -->
  84.         </dependencies>
  85.     </dependencyManagement>
  86.  
  87.     <build>
  88.         <plugins>
  89.             <plugin>
  90.                 <groupId>org.apache.maven.plugins</groupId>
  91.                 <artifactId>maven-dependency-plugin</artifactId>
  92.                 <version>2.10</version>
  93.                 <configuration>
  94.                     <artifactItems>
  95.                         <artifactItem>
  96.                             <groupId>${project.groupId}</groupId>
  97.                             <artifactId>AIA-Transformation-Service</artifactId>
  98.                             <version>${project.version}</version>
  99.                             <type>jar</type>
  100.                             <destFileName>service.jar</destFileName>
  101.                         </artifactItem>
  102.                     </artifactItems>
  103.                     <outputDirectory>target</outputDirectory>
  104.                     <overWriteIfNewer>true</overWriteIfNewer>
  105.                 </configuration>
  106.             </plugin>
  107.         </plugins>
  108.  
  109.         <pluginManagement>
  110.             <plugins>
  111.                 <plugin>
  112.                     <groupId>org.apache.maven.plugins</groupId>
  113.                     <artifactId>maven-compiler-plugin</artifactId>
  114.                     <version>${maven.compiler-plugin.version}</version>
  115.                     <configuration>
  116.                         <source>${project.build.javaVersion}</source>
  117.                         <target>${project.build.javaVersion}</target>
  118.                     </configuration>
  119.                 </plugin>
  120.  
  121.                 <plugin>
  122.                     <groupId>org.apache.maven.plugins</groupId>
  123.                     <artifactId>maven-jar-plugin</artifactId>
  124.                     <version>${maven.jar-plugin.version}</version>
  125.                 </plugin>
  126.  
  127.                 <plugin>
  128.                     <groupId>org.apache.maven.plugins</groupId>
  129.                     <artifactId>maven-surefire-plugin</artifactId>
  130.                     <configuration>
  131.                         <forkCount>1</forkCount>
  132.                         <reuseForks>true</reuseForks>
  133.                         <argLine>${jvm-test-arguments}</argLine>
  134.                     </configuration>
  135.                     <version>${maven.surefire-plugin.version}</version>
  136.                 </plugin>
  137.  
  138.                 <plugin>
  139.                     <groupId>org.apache.maven.plugins</groupId>
  140.                     <artifactId>maven-failsafe-plugin</artifactId>
  141.                     <version>${maven.failsafe-plugin.version}</version>
  142.                     <configuration>
  143.                         <includes>
  144.                             <include>**/*IT.java</include>
  145.                         </includes>
  146.                         <forkCount>1</forkCount>
  147.                         <reuseForks>true</reuseForks>
  148.                         <argLine>${jvm-test-arguments}</argLine>
  149.                         <additionalClasspathElements>
  150.                             <additionalClasspathElement>${basedir}/target/classes</additionalClasspathElement>
  151.                         </additionalClasspathElements>
  152.                     </configuration>
  153.                     <executions>
  154.                         <execution>
  155.                             <goals>
  156.                                 <goal>integration-test</goal>
  157.                                 <goal>verify</goal>
  158.                             </goals>
  159.                         </execution>
  160.                     </executions>
  161.                 </plugin>
  162.  
  163.                 <plugin>
  164.                     <groupId>org.springframework.boot</groupId>
  165.                     <artifactId>spring-boot-maven-plugin</artifactId>
  166.                 </plugin>
  167.  
  168.                 <plugin>
  169.                     <groupId>com.github.kongchen</groupId>
  170.                     <artifactId>swagger-maven-plugin</artifactId>
  171.                     <version>${maven.swagger-plugin.version}</version>
  172.                     <executions>
  173.                         <execution>
  174.                             <phase>process-classes</phase>
  175.                             <goals>
  176.                                 <goal>generate</goal>
  177.                             </goals>
  178.                         </execution>
  179.                     </executions>
  180.                 </plugin>
  181.             </plugins>
  182.         </pluginManagement>
  183.     </build>
  184.  
  185.     <profiles>
  186.         <profile>
  187.             <id>release</id>
  188.             <build>
  189.                 <plugins>
  190.                     <plugin>
  191.                         <groupId>org.apache.maven.plugins</groupId>
  192.                         <artifactId>maven-enforcer-plugin</artifactId>
  193.                         <executions>
  194.                             <execution>
  195.                                 <id>enforce-no-snapshots</id>
  196.                                 <goals>
  197.                                     <goal>enforce</goal>
  198.                                 </goals>
  199.                                 <configuration>
  200.                                     <rules>
  201.                                         <requireReleaseVersion>
  202.                                             <message>No SNAPSHOT versions allowed!</message>
  203.                                         </requireReleaseVersion>
  204.                                         <requireReleaseDeps>
  205.                                             <message>No SNAPSHOT dependencies allowed!</message>
  206.                                         </requireReleaseDeps>
  207.                                     </rules>
  208.                                     <fail>true</fail>
  209.                                 </configuration>
  210.                             </execution>
  211.                         </executions>
  212.                     </plugin>
  213.                 </plugins>
  214.             </build>
  215.         </profile>
  216.     </profiles>
  217. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement