Advertisement
Guest User

Untitled

a guest
Apr 16th, 2019
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 44.64 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/maven-v4_0_0.xsd">
  3.     <modelVersion>4.0.0</modelVersion>
  4.  
  5.     <groupId>com.y</groupId>
  6.     <artifactId>y</artifactId>
  7.     <version>0.0.1-SNAPSHOT</version>
  8.     <packaging>jar</packaging>
  9.     <name>y</name>
  10.  
  11.     <repositories>
  12.         <!-- jhipster-needle-maven-repository -->
  13.     </repositories>
  14.  
  15.     <pluginRepositories>
  16.         <!-- jhipster-needle-maven-plugin-repository -->
  17.     </pluginRepositories>
  18.  
  19.     <!-- jhipster-needle-distribution-management -->
  20.  
  21.     <properties>
  22.         <!-- Build properties -->
  23.         <maven.version>3.0.0</maven.version>
  24.         <java.version>11</java.version>
  25.         <node.version>v10.15.3</node.version>
  26.         <npm.version>6.9.0</npm.version>
  27.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  28.         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  29.         <project.testresult.directory>${project.build.directory}/test-results</project.testresult.directory>
  30.         <maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
  31.         <maven.compiler.source>${java.version}</maven.compiler.source>
  32.         <maven.compiler.target>${java.version}</maven.compiler.target>
  33.         <argLine>-Djava.security.egd=file:/dev/./urandom -Xmx256m</argLine>
  34.         <m2e.apt.activation>jdt_apt</m2e.apt.activation>
  35.         <run.addResources>false</run.addResources>
  36.         <!-- These remain empty unless the corresponding profile is active -->
  37.         <profile.no-liquibase />
  38.         <profile.swagger />
  39.         <profile.tls />
  40.  
  41.         <!-- Dependency versions -->
  42.         <jhipster-dependencies.version>3.0.0</jhipster-dependencies.version>
  43.         <!-- The spring-boot version should match the one managed by
  44.        https://mvnrepository.com/artifact/io.github.jhipster/jhipster-dependencies/${jhipster-dependencies.version} -->
  45.         <spring-boot.version>2.1.4.RELEASE</spring-boot.version>
  46.         <!-- The hibernate version should match the one managed by
  47.        https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-dependencies/${spring-boot.version} -->
  48.         <hibernate.version>5.3.9.Final</hibernate.version>
  49.         <!-- The javassist version should match the one managed by
  50.        https://mvnrepository.com/artifact/org.hibernate/hibernate-core/${hibernate.version} -->
  51.         <javassist.version>3.23.1-GA</javassist.version>
  52.         <!-- The liquibase version should match the one managed by
  53.        https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-dependencies/${spring-boot.version} -->
  54.         <liquibase.version>3.6.3</liquibase.version>
  55.         <liquibase-hibernate5.version>3.6</liquibase-hibernate5.version>
  56.         <validation-api.version>2.0.1.Final</validation-api.version>
  57.         <jaxb-runtime.version>2.3.2</jaxb-runtime.version>
  58.         <mapstruct.version>1.3.0.Final</mapstruct.version>
  59.  
  60.         <!-- Plugin versions -->
  61.         <maven-clean-plugin.version>3.1.0</maven-clean-plugin.version>
  62.         <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
  63.         <maven-javadoc-plugin.version>3.1.0</maven-javadoc-plugin.version>
  64.         <maven-eclipse-plugin.version>2.10</maven-eclipse-plugin.version>
  65.         <!-- We can't go to 3.0.0-M2 as it has a regression. See https://issues.apache.org/jira/browse/MENFORCER-306 -->
  66.         <maven-enforcer-plugin.version>3.0.0-M1</maven-enforcer-plugin.version>
  67.         <maven-failsafe-plugin.version>3.0.0-M3</maven-failsafe-plugin.version>
  68.         <maven-idea-plugin.version>2.2.1</maven-idea-plugin.version>
  69.         <maven-resources-plugin.version>3.1.0</maven-resources-plugin.version>
  70.         <maven-surefire-plugin.version>3.0.0-M3</maven-surefire-plugin.version>
  71.         <maven-war-plugin.version>3.2.2</maven-war-plugin.version>
  72.         <frontend-maven-plugin.version>1.7.5</frontend-maven-plugin.version>
  73.         <git-commit-id-plugin.version>2.2.6</git-commit-id-plugin.version>
  74.         <jacoco-maven-plugin.version>0.8.3</jacoco-maven-plugin.version>
  75.         <jib-maven-plugin.version>0.9.11</jib-maven-plugin.version>
  76.         <lifecycle-mapping.version>1.0.0</lifecycle-mapping.version>
  77.         <properties-maven-plugin.version>1.0.0</properties-maven-plugin.version>
  78.         <sonar-maven-plugin.version>3.6.0.1398</sonar-maven-plugin.version>
  79.         <jacoco.reportFolder>${project.build.directory}/jacoco</jacoco.reportFolder>
  80.         <jacoco.utReportFile>${jacoco.reportFolder}/test.exec</jacoco.utReportFile>
  81.         <jacoco.itReportFile>${jacoco.reportFolder}/integrationTest.exec</jacoco.itReportFile>
  82.         <junit.utReportFolder>${project.testresult.directory}/test</junit.utReportFolder>
  83.         <junit.itReportFolder>${project.testresult.directory}/integrationTest</junit.itReportFolder>
  84.         <!-- jhipster-needle-maven-property -->
  85.     </properties>
  86.  
  87.     <dependencyManagement>
  88.         <dependencies>
  89.             <dependency>
  90.                 <groupId>io.github.jhipster</groupId>
  91.                 <artifactId>jhipster-dependencies</artifactId>
  92.                 <version>${jhipster-dependencies.version}</version>
  93.                 <type>pom</type>
  94.                 <scope>import</scope>
  95.             </dependency>
  96.             <!-- jhipster-needle-maven-add-dependency-management -->
  97.         </dependencies>
  98.     </dependencyManagement>
  99.  
  100.     <dependencies>
  101.         <dependency>
  102.             <groupId>io.github.jhipster</groupId>
  103.             <artifactId>jhipster-framework</artifactId>
  104.         </dependency>
  105.  
  106.         <dependency>
  107.             <groupId>com.fasterxml.jackson.datatype</groupId>
  108.             <artifactId>jackson-datatype-hibernate5</artifactId>
  109.         </dependency>
  110.         <dependency>
  111.             <groupId>com.fasterxml.jackson.datatype</groupId>
  112.             <artifactId>jackson-datatype-hppc</artifactId>
  113.         </dependency>
  114.         <dependency>
  115.             <groupId>com.fasterxml.jackson.datatype</groupId>
  116.             <artifactId>jackson-datatype-jsr310</artifactId>
  117.         </dependency>
  118.         <dependency>
  119.             <groupId>com.fasterxml.jackson.module</groupId>
  120.             <artifactId>jackson-module-afterburner</artifactId>
  121.         </dependency>
  122.         <dependency>
  123.             <groupId>com.h2database</groupId>
  124.             <artifactId>h2</artifactId>
  125.             <scope>test</scope>
  126.         </dependency>
  127.         <dependency>
  128.             <groupId>com.jayway.jsonpath</groupId>
  129.             <artifactId>json-path</artifactId>
  130.             <scope>test</scope>
  131.             <!-- parent POM declares this dependency in default (compile) scope -->
  132.         </dependency>
  133.         <dependency>
  134.             <groupId>io.springfox</groupId>
  135.             <artifactId>springfox-swagger2</artifactId>
  136.         </dependency>
  137.         <dependency>
  138.             <groupId>io.springfox</groupId>
  139.             <artifactId>springfox-bean-validators</artifactId>
  140.         </dependency>
  141.         <dependency>
  142.             <groupId>com.zaxxer</groupId>
  143.             <artifactId>HikariCP</artifactId>
  144.         </dependency>
  145.         <dependency>
  146.             <groupId>commons-io</groupId>
  147.             <artifactId>commons-io</artifactId>
  148.         </dependency>
  149.         <dependency>
  150.             <groupId>org.apache.commons</groupId>
  151.             <artifactId>commons-lang3</artifactId>
  152.         </dependency>
  153.         <dependency>
  154.             <groupId>org.assertj</groupId>
  155.             <artifactId>assertj-core</artifactId>
  156.             <scope>test</scope>
  157.         </dependency>
  158.         <dependency>
  159.             <groupId>org.hibernate</groupId>
  160.             <artifactId>hibernate-jpamodelgen</artifactId>
  161.             <scope>provided</scope>
  162.         </dependency>
  163.         <dependency>
  164.             <groupId>org.hibernate</groupId>
  165.             <artifactId>hibernate-core</artifactId>
  166.         </dependency>
  167.         <dependency>
  168.             <groupId>org.hibernate</groupId>
  169.             <artifactId>hibernate-envers</artifactId>
  170.         </dependency>
  171.         <dependency>
  172.             <groupId>org.hibernate.validator</groupId>
  173.             <artifactId>hibernate-validator</artifactId>
  174.         </dependency>
  175.         <dependency>
  176.             <groupId>org.liquibase</groupId>
  177.             <artifactId>liquibase-core</artifactId>
  178.         </dependency>
  179.         <dependency>
  180.             <groupId>net.logstash.logback</groupId>
  181.             <artifactId>logstash-logback-encoder</artifactId>
  182.         </dependency>
  183.         <dependency>
  184.             <groupId>org.postgresql</groupId>
  185.             <artifactId>postgresql</artifactId>
  186.         </dependency>
  187.         <dependency>
  188.             <groupId>org.mapstruct</groupId>
  189.             <artifactId>mapstruct</artifactId>
  190.         </dependency>
  191.         <dependency>
  192.             <groupId>org.mapstruct</groupId>
  193.             <artifactId>mapstruct-processor</artifactId>
  194.             <scope>provided</scope>
  195.         </dependency>
  196.         <dependency>
  197.             <groupId>org.springframework.boot</groupId>
  198.             <artifactId>spring-boot-configuration-processor</artifactId>
  199.             <scope>provided</scope>
  200.         </dependency>
  201.         <dependency>
  202.             <groupId>org.springframework.boot</groupId>
  203.             <artifactId>spring-boot-loader-tools</artifactId>
  204.         </dependency>
  205.         <dependency>
  206.             <groupId>org.springframework.boot</groupId>
  207.             <artifactId>spring-boot-starter-actuator</artifactId>
  208.         </dependency>
  209.         <dependency>
  210.             <groupId>org.springframework.boot</groupId>
  211.             <artifactId>spring-boot-starter-aop</artifactId>
  212.         </dependency>
  213.         <dependency>
  214.             <groupId>org.springframework.boot</groupId>
  215.             <artifactId>spring-boot-starter-data-jpa</artifactId>
  216.         </dependency>
  217.         <dependency>
  218.             <groupId>org.springframework.boot</groupId>
  219.             <artifactId>spring-boot-starter-logging</artifactId>
  220.         </dependency>
  221.         <dependency>
  222.             <groupId>org.springframework.boot</groupId>
  223.             <artifactId>spring-boot-starter-mail</artifactId>
  224.         </dependency>
  225.         <dependency>
  226.             <groupId>org.springframework.boot</groupId>
  227.             <artifactId>spring-boot-starter-thymeleaf</artifactId>
  228.         </dependency>
  229.         <dependency>
  230.             <groupId>org.springframework.boot</groupId>
  231.             <artifactId>spring-boot-starter-web</artifactId>
  232.         </dependency>
  233.         <dependency>
  234.             <groupId>org.springframework.boot</groupId>
  235.             <artifactId>spring-boot-starter-test</artifactId>
  236.             <scope>test</scope>
  237.         </dependency>
  238.         <dependency>
  239.             <groupId>org.springframework.boot</groupId>
  240.             <artifactId>spring-boot-test</artifactId>
  241.             <scope>test</scope>
  242.         </dependency>
  243.         <dependency>
  244.             <groupId>org.springframework.security</groupId>
  245.             <artifactId>spring-security-test</artifactId>
  246.             <scope>test</scope>
  247.         </dependency>
  248.         <dependency>
  249.             <groupId>org.zalando</groupId>
  250.             <artifactId>problem-spring-web</artifactId>
  251.         </dependency>
  252.         <!-- Spring Cloud -->
  253.         <dependency>
  254.             <groupId>org.springframework.boot</groupId>
  255.             <artifactId>spring-boot-starter-cloud-connectors</artifactId>
  256.         </dependency>
  257.         <!-- Security -->
  258.         <dependency>
  259.             <groupId>org.springframework.security</groupId>
  260.             <artifactId>spring-security-data</artifactId>
  261.         </dependency>
  262.         <dependency>
  263.             <groupId>io.micrometer</groupId>
  264.             <artifactId>micrometer-registry-prometheus</artifactId>
  265.         </dependency>
  266.         <dependency>
  267.             <groupId>io.dropwizard.metrics</groupId>
  268.             <artifactId>metrics-core</artifactId>
  269.         </dependency>
  270.        
  271. <!--        WEB!!!!!!!!!!!!!!!-->
  272.         <dependency>
  273.     <groupId>org.springframework.security</groupId>
  274.     <artifactId>spring-security-web</artifactId>
  275.     <version>5.1.5.RELEASE</version>
  276. </dependency>
  277.         <dependency>
  278.     <groupId>org.springframework.security</groupId>
  279.     <artifactId>spring-security-config</artifactId>
  280.     <version>5.1.5.RELEASE</version>
  281. </dependency>
  282.  
  283.         <dependency>
  284.             <groupId>io.jsonwebtoken</groupId>
  285.             <artifactId>jjwt-api</artifactId>
  286.         </dependency>
  287.         <dependency>
  288.             <groupId>io.jsonwebtoken</groupId>
  289.             <artifactId>jjwt-impl</artifactId>
  290.             <scope>runtime</scope>
  291.         </dependency>
  292.         <dependency>
  293.             <groupId>io.jsonwebtoken</groupId>
  294.             <artifactId>jjwt-jackson</artifactId>
  295.             <scope>runtime</scope>
  296.         </dependency>
  297.     </dependencies>
  298.  
  299.     <build>
  300.         <defaultGoal>spring-boot:run</defaultGoal>
  301.         <plugins>
  302.             <plugin>
  303.                 <groupId>org.apache.maven.plugins</groupId>
  304.                 <artifactId>maven-compiler-plugin</artifactId>
  305.                 <configuration>
  306.                     <source>${java.version}</source>
  307.                     <target>${java.version}</target>
  308.                     <annotationProcessorPaths>
  309.                         <path>
  310.                             <groupId>org.mapstruct</groupId>
  311.                             <artifactId>mapstruct-processor</artifactId>
  312.                             <version>${mapstruct.version}</version>
  313.                         </path>
  314.                         <!-- For JPA static metamodel generation -->
  315.                         <path>
  316.                             <groupId>org.hibernate</groupId>
  317.                             <artifactId>hibernate-jpamodelgen</artifactId>
  318.                             <version>${hibernate.version}</version>
  319.                         </path>
  320.                         <path>
  321.                             <groupId>org.glassfish.jaxb</groupId>
  322.                             <artifactId>jaxb-runtime</artifactId>
  323.                             <version>${jaxb-runtime.version}</version>
  324.                         </path>
  325.                     </annotationProcessorPaths>
  326.                 </configuration>
  327.             </plugin>
  328.             <plugin>
  329.                 <groupId>org.apache.maven.plugins</groupId>
  330.                 <artifactId>maven-javadoc-plugin</artifactId>
  331.                 <version>${maven-javadoc-plugin.version}</version>
  332.                 <configuration>
  333.                   <source>8</source>
  334.                 </configuration>
  335.               </plugin>
  336.             <plugin>
  337.                 <groupId>org.apache.maven.plugins</groupId>
  338.                 <artifactId>maven-eclipse-plugin</artifactId>
  339.             </plugin>
  340.             <plugin>
  341.                 <groupId>org.apache.maven.plugins</groupId>
  342.                 <artifactId>maven-enforcer-plugin</artifactId>
  343.             </plugin>
  344.             <plugin>
  345.                 <groupId>org.apache.maven.plugins</groupId>
  346.                 <artifactId>maven-failsafe-plugin</artifactId>
  347.             </plugin>
  348.             <plugin>
  349.                 <groupId>org.apache.maven.plugins</groupId>
  350.                 <artifactId>maven-idea-plugin</artifactId>
  351.             </plugin>
  352.             <plugin>
  353.                 <groupId>org.apache.maven.plugins</groupId>
  354.                 <artifactId>maven-resources-plugin</artifactId>
  355.             </plugin>
  356.             <plugin>
  357.                 <groupId>org.apache.maven.plugins</groupId>
  358.                 <artifactId>maven-surefire-plugin</artifactId>
  359.             </plugin>
  360.             <plugin>
  361.                 <groupId>org.jacoco</groupId>
  362.                 <artifactId>jacoco-maven-plugin</artifactId>
  363.             </plugin>
  364.             <plugin>
  365.                 <groupId>org.sonarsource.scanner.maven</groupId>
  366.                 <artifactId>sonar-maven-plugin</artifactId>
  367.             </plugin>
  368.             <plugin>
  369.                 <groupId>org.liquibase</groupId>
  370.                 <artifactId>liquibase-maven-plugin</artifactId>
  371.             </plugin>
  372.             <plugin>
  373.                 <groupId>org.springframework.boot</groupId>
  374.                 <artifactId>spring-boot-maven-plugin</artifactId>
  375.                 <executions>
  376.                     <execution>
  377.                         <goals>
  378.                             <goal>repackage</goal>
  379.                         </goals>
  380.                     </execution>
  381.                 </executions>
  382.                 <configuration>
  383.                     <mainClass>${start-class}</mainClass>
  384.                     <executable>true</executable>
  385.                     <fork>true</fork>
  386.                     <!--
  387.                    Enable the line below to have remote debugging of your application on port 5005
  388.                    <jvmArguments>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005</jvmArguments>
  389.                    -->
  390.                 </configuration>
  391.             </plugin>
  392.             <plugin>
  393.                 <groupId>com.google.cloud.tools</groupId>
  394.                 <artifactId>jib-maven-plugin</artifactId>
  395.             </plugin>
  396.             <plugin>
  397.                 <groupId>org.codehaus.mojo</groupId>
  398.                 <artifactId>properties-maven-plugin</artifactId>
  399.                 <version>${properties-maven-plugin.version}</version>
  400.                 <executions>
  401.                     <execution>
  402.                         <phase>initialize</phase>
  403.                         <goals>
  404.                             <goal>read-project-properties</goal>
  405.                         </goals>
  406.                         <configuration>
  407.                             <files>
  408.                                 <file>sonar-project.properties</file>
  409.                             </files>
  410.                         </configuration>
  411.                     </execution>
  412.                 </executions>
  413.             </plugin>
  414.             <!-- jhipster-needle-maven-add-plugin -->
  415.         </plugins>
  416.         <pluginManagement>
  417.             <plugins>
  418.                 <plugin>
  419.                     <groupId>org.apache.maven.plugins</groupId>
  420.                     <artifactId>maven-compiler-plugin</artifactId>
  421.                     <version>${maven-compiler-plugin.version}</version>
  422.                 </plugin>
  423.                 <plugin>
  424.                     <groupId>com.github.eirslett</groupId>
  425.                     <artifactId>frontend-maven-plugin</artifactId>
  426.                     <version>${frontend-maven-plugin.version}</version>
  427.                 </plugin>
  428.                 <plugin>
  429.                     <groupId>pl.project13.maven</groupId>
  430.                     <artifactId>git-commit-id-plugin</artifactId>
  431.                     <version>${git-commit-id-plugin.version}</version>
  432.                     <executions>
  433.                         <execution>
  434.                             <goals>
  435.                                 <goal>revision</goal>
  436.                             </goals>
  437.                         </execution>
  438.                     </executions>
  439.                     <configuration>
  440.                         <failOnNoGitDirectory>false</failOnNoGitDirectory>
  441.                         <generateGitPropertiesFile>true</generateGitPropertiesFile>
  442.                         <includeOnlyProperties>
  443.                             <includeOnlyProperty>^git.commit.id.abbrev$</includeOnlyProperty>
  444.                             <includeOnlyProperty>^git.commit.id.describe$</includeOnlyProperty>
  445.                             <includeOnlyProperty>^git.branch$</includeOnlyProperty>
  446.                         </includeOnlyProperties>
  447.                     </configuration>
  448.                 </plugin>
  449.                 <plugin>
  450.                     <groupId>org.jacoco</groupId>
  451.                     <artifactId>jacoco-maven-plugin</artifactId>
  452.                     <version>${jacoco-maven-plugin.version}</version>
  453.                     <executions>
  454.                         <execution>
  455.                             <id>pre-unit-tests</id>
  456.                             <goals>
  457.                                 <goal>prepare-agent</goal>
  458.                             </goals>
  459.                             <configuration>
  460.                                 <!-- Sets the path to the file which contains the execution data. -->
  461.                                 <destFile>${jacoco.utReportFile}</destFile>
  462.                             </configuration>
  463.                         </execution>
  464.                         <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run -->
  465.                         <execution>
  466.                             <id>post-unit-test</id>
  467.                             <phase>test</phase>
  468.                             <goals>
  469.                                 <goal>report</goal>
  470.                             </goals>
  471.                             <configuration>
  472.                                 <dataFile>${jacoco.utReportFile}</dataFile>
  473.                                 <outputDirectory>${jacoco.reportFolder}</outputDirectory>
  474.                             </configuration>
  475.                         </execution>
  476.                         <execution>
  477.                             <id>pre-integration-tests</id>
  478.                             <goals>
  479.                                 <goal>prepare-agent-integration</goal>
  480.                             </goals>
  481.                             <configuration>
  482.                                 <!-- Sets the path to the file which contains the execution data. -->
  483.                                 <destFile>${jacoco.itReportFile}</destFile>
  484.                             </configuration>
  485.                         </execution>
  486.                         <!-- Ensures that the code coverage report for integration tests is created after integration tests have been run -->
  487.                         <execution>
  488.                             <id>post-integration-tests</id>
  489.                             <phase>post-integration-test</phase>
  490.                             <goals>
  491.                                 <goal>report-integration</goal>
  492.                             </goals>
  493.                             <configuration>
  494.                                 <dataFile>${jacoco.itReportFile}</dataFile>
  495.                                 <outputDirectory>${jacoco.reportFolder}</outputDirectory>
  496.                             </configuration>
  497.                         </execution>
  498.                     </executions>
  499.                 </plugin>
  500.                 <plugin>
  501.                     <groupId>com.google.cloud.tools</groupId>
  502.                     <artifactId>jib-maven-plugin</artifactId>
  503.                     <version>${jib-maven-plugin.version}</version>
  504.                     <configuration>
  505.                       <from>
  506.                           <image>openjdk:11-jre-slim-stretch</image>
  507.                       </from>
  508.                       <to>
  509.                           <image>y:latest</image>
  510.                       </to>
  511.                       <container>
  512.                           <entrypoint>
  513.                               <shell>sh</shell>
  514.                               <option>-c</option>
  515.                               <arg>chmod +x /entrypoint.sh &amp;&amp; sync &amp;&amp; /entrypoint.sh</arg>
  516.                           </entrypoint>
  517.                           <ports>
  518.                               <port>8080</port>
  519.                           </ports>
  520.                           <environment>
  521.                               <SPRING_OUTPUT_ANSI_ENABLED>ALWAYS</SPRING_OUTPUT_ANSI_ENABLED>
  522.                               <JHIPSTER_SLEEP>0</JHIPSTER_SLEEP>
  523.                           </environment>
  524.                           <useCurrentTimestamp>true</useCurrentTimestamp>
  525.                       </container>
  526.                   </configuration>
  527.                 </plugin>
  528.                 <plugin>
  529.                     <groupId>org.liquibase</groupId>
  530.                     <artifactId>liquibase-maven-plugin</artifactId>
  531.                     <version>${liquibase.version}</version>
  532.                     <configuration>
  533.                         <changeLogFile>${project.basedir}/src/main/resources/config/liquibase/master.xml</changeLogFile>
  534.                         <diffChangeLogFile>${project.basedir}/src/main/resources/config/liquibase/changelog/${maven.build.timestamp}_changelog.xml</diffChangeLogFile>
  535.                         <driver>org.postgresql.Driver</driver>
  536.                         <url>jdbc:postgresql://localhost:5432/y</url>
  537.                         <defaultSchemaName/>
  538.                         <username>developer</username>
  539.                         <password>0|888|0</password>
  540.                         <referenceUrl>hibernate:spring:com.y.domain?dialect=org.hibernate.dialect.PostgreSQL95Dialect&amp;hibernate.physical_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy&amp;hibernate.implicit_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy</referenceUrl>
  541.                         <verbose>true</verbose>
  542.                         <logging>debug</logging>
  543.                         <contexts>!test</contexts>
  544.                         <diffExcludeObjects>oauth_access_token, oauth_approvals, oauth_client_details, oauth_client_token, oauth_code, oauth_refresh_token</diffExcludeObjects>
  545.                     </configuration>
  546.                     <dependencies>
  547.                         <dependency>
  548.                             <groupId>org.javassist</groupId>
  549.                             <artifactId>javassist</artifactId>
  550.                             <version>${javassist.version}</version>
  551.                         </dependency>
  552.                         <dependency>
  553.                             <groupId>org.liquibase.ext</groupId>
  554.                             <artifactId>liquibase-hibernate5</artifactId>
  555.                             <version>${liquibase-hibernate5.version}</version>
  556.                         </dependency>
  557.                         <dependency>
  558.                             <groupId>org.springframework.boot</groupId>
  559.                             <artifactId>spring-boot-starter-data-jpa</artifactId>
  560.                             <version>${spring-boot.version}</version>
  561.                         </dependency>
  562.                         <dependency>
  563.                             <groupId>javax.validation</groupId>
  564.                             <artifactId>validation-api</artifactId>
  565.                             <version>${validation-api.version}</version>
  566.                         </dependency>
  567.                     </dependencies>
  568.                 </plugin>
  569.                 <plugin>
  570.                     <artifactId>maven-clean-plugin</artifactId>
  571.                     <version>${maven-clean-plugin.version}</version>
  572.                 </plugin>
  573.                 <plugin>
  574.                     <groupId>org.apache.maven.plugins</groupId>
  575.                     <artifactId>maven-eclipse-plugin</artifactId>
  576.                     <version>${maven-eclipse-plugin.version}</version>
  577.                     <configuration>
  578.                         <downloadSources>true</downloadSources>
  579.                         <downloadJavadocs>true</downloadJavadocs>
  580.                     </configuration>
  581.                 </plugin>
  582.                 <plugin>
  583.                     <groupId>org.apache.maven.plugins</groupId>
  584.                     <artifactId>maven-enforcer-plugin</artifactId>
  585.                     <version>${maven-enforcer-plugin.version}</version>
  586.                     <executions>
  587.                         <execution>
  588.                             <id>enforce-versions</id>
  589.                             <goals>
  590.                                 <goal>enforce</goal>
  591.                             </goals>
  592.                         </execution>
  593.                     </executions>
  594.                     <configuration>
  595.                         <rules>
  596.                             <requireMavenVersion>
  597.                                 <message>You are running an older version of Maven. JHipster requires at least Maven ${maven.version}</message>
  598.                                 <version>[${maven.version},)</version>
  599.                             </requireMavenVersion>
  600.                             <requireJavaVersion>
  601.                                 <message>You are running an incompatible version of Java. JHipster supports JDK 8 to 12.</message>
  602.                                 <version>[1.8,13)</version>
  603.                             </requireJavaVersion>
  604.                         </rules>
  605.                     </configuration>
  606.                 </plugin>
  607.                 <plugin>
  608.                     <groupId>org.apache.maven.plugins</groupId>
  609.                     <artifactId>maven-idea-plugin</artifactId>
  610.                     <version>${maven-idea-plugin.version}</version>
  611.                     <configuration>
  612.                         <exclude>node_modules</exclude>
  613.                     </configuration>
  614.                 </plugin>
  615.                 <plugin>
  616.                     <groupId>org.apache.maven.plugins</groupId>
  617.                     <artifactId>maven-resources-plugin</artifactId>
  618.                     <version>${maven-resources-plugin.version}</version>
  619.                     <executions>
  620.                         <execution>
  621.                             <id>default-resources</id>
  622.                             <phase>validate</phase>
  623.                             <goals>
  624.                                 <goal>copy-resources</goal>
  625.                             </goals>
  626.                             <configuration>
  627.                                 <outputDirectory>${project.build.directory}/classes</outputDirectory>
  628.                                 <useDefaultDelimiters>false</useDefaultDelimiters>
  629.                                 <delimiters>
  630.                                     <delimiter>#</delimiter>
  631.                                 </delimiters>
  632.                                 <resources>
  633.                                     <resource>
  634.                                         <directory>src/main/resources/</directory>
  635.                                         <filtering>true</filtering>
  636.                                         <includes>
  637.                                             <include>config/*.yml</include>
  638.                                         </includes>
  639.                                     </resource>
  640.                                     <resource>
  641.                                         <directory>src/main/resources/</directory>
  642.                                         <filtering>false</filtering>
  643.                                         <excludes>
  644.                                             <exclude>config/*.yml</exclude>
  645.                                         </excludes>
  646.                                     </resource>
  647.                                 </resources>
  648.                             </configuration>
  649.                         </execution>
  650.                     </executions>
  651.                 </plugin>
  652.                 <plugin>
  653.                     <groupId>org.apache.maven.plugins</groupId>
  654.                     <artifactId>maven-surefire-plugin</artifactId>
  655.                     <version>${maven-surefire-plugin.version}</version>
  656.                     <configuration>
  657.                         <!-- Force alphabetical order to have a reproducible build -->
  658.                         <runOrder>alphabetical</runOrder>
  659.                         <reportsDirectory>${junit.utReportFolder}</reportsDirectory>
  660.                         <excludes>
  661.                             <exclude>**/*IT*</exclude>
  662.                             <exclude>**/*IntTest*</exclude>
  663.                             <exclude>**/*CucumberIT*</exclude>
  664.                         </excludes>
  665.                     </configuration>
  666.                 </plugin>
  667.                 <plugin>
  668.                     <groupId>org.apache.maven.plugins</groupId>
  669.                     <artifactId>maven-failsafe-plugin</artifactId>
  670.                     <version>${maven-failsafe-plugin.version}</version>
  671.                     <configuration>
  672.                         <!-- Due to spring-boot repackage, without adding this property test classes are not found
  673.                             See https://github.com/spring-projects/spring-boot/issues/6254 -->
  674.                         <classesDirectory>${project.build.outputDirectory}</classesDirectory>
  675.                         <!-- Force alphabetical order to have a reproducible build -->
  676.                         <runOrder>alphabetical</runOrder>
  677.                         <reportsDirectory>${junit.itReportFolder}</reportsDirectory>
  678.                         <includes>
  679.                             <include>**/*IT*</include>
  680.                             <include>**/*IntTest*</include>
  681.                         </includes>
  682.                         <excludes>
  683.                             <exclude>**/*CucumberIT*</exclude>
  684.                         </excludes>
  685.                     </configuration>
  686.                     <executions>
  687.                         <execution>
  688.                             <id>integration-test</id>
  689.                             <goals>
  690.                                 <goal>integration-test</goal>
  691.                             </goals>
  692.                         </execution>
  693.                         <execution>
  694.                             <id>verify</id>
  695.                             <goals>
  696.                                 <goal>verify</goal>
  697.                             </goals>
  698.                         </execution>
  699.                     </executions>
  700.                 </plugin>
  701.                 <plugin>
  702.                     <groupId>org.sonarsource.scanner.maven</groupId>
  703.                     <artifactId>sonar-maven-plugin</artifactId>
  704.                     <version>${sonar-maven-plugin.version}</version>
  705.                 </plugin>
  706.                 <plugin>
  707.                     <groupId>org.springframework.boot</groupId>
  708.                     <artifactId>spring-boot-maven-plugin</artifactId>
  709.                     <version>${spring-boot.version}</version>
  710.                 </plugin>
  711.             </plugins>
  712.         </pluginManagement>
  713.     </build>
  714.     <profiles>
  715.         <profile>
  716.             <id>no-liquibase</id>
  717.             <properties>
  718.                 <profile.no-liquibase>,no-liquibase</profile.no-liquibase>
  719.             </properties>
  720.         </profile>
  721.         <profile>
  722.             <id>swagger</id>
  723.             <properties>
  724.                 <profile.swagger>,swagger</profile.swagger>
  725.             </properties>
  726.         </profile>
  727.         <profile>
  728.             <id>tls</id>
  729.             <properties>
  730.                 <profile.tls>,tls</profile.tls>
  731.             </properties>
  732.         </profile>
  733.         <profile>
  734.             <id>webpack</id>
  735.             <activation>
  736.                 <file>
  737.                     <missing>${basedir}/target/classes/static/app/main.bundle.js</missing>
  738.                 </file>
  739.             </activation>
  740.             <dependencies>
  741.                 <dependency>
  742.                     <groupId>org.springframework.boot</groupId>
  743.                     <artifactId>spring-boot-starter-undertow</artifactId>
  744.                 </dependency>
  745.                 <dependency>
  746.                     <groupId>org.springframework.boot</groupId>
  747.                     <artifactId>spring-boot-devtools</artifactId>
  748.                     <optional>true</optional>
  749.                 </dependency>
  750.             </dependencies>
  751.             <build>
  752.                 <plugins>
  753.                     <plugin>
  754.                         <groupId>com.github.eirslett</groupId>
  755.                         <artifactId>frontend-maven-plugin</artifactId>
  756.                         <executions>
  757.                             <execution>
  758.                                 <id>install node and npm</id>
  759.                                 <goals>
  760.                                     <goal>install-node-and-npm</goal>
  761.                                 </goals>
  762.                                 <configuration>
  763.                                     <nodeVersion>${node.version}</nodeVersion>
  764.                                     <npmVersion>${npm.version}</npmVersion>
  765.                                 </configuration>
  766.                             </execution>
  767.                             <execution>
  768.                                 <id>npm install</id>
  769.                                 <goals>
  770.                                     <goal>npm</goal>
  771.                                 </goals>
  772.                             </execution>
  773.                             <execution>
  774.                                 <id>webpack build dev</id>
  775.                                 <goals>
  776.                                     <goal>npm</goal>
  777.                                 </goals>
  778.                                 <phase>generate-resources</phase>
  779.                                 <configuration>
  780.                                     <arguments>run webpack:build</arguments>
  781.                                     <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
  782.                                 </configuration>
  783.                             </execution>
  784.                         </executions>
  785.                     </plugin>
  786.                 </plugins>
  787.             </build>
  788.             <properties>
  789.                 <!-- default Spring profiles -->
  790.                 <spring.profiles.active>dev${profile.no-liquibase}</spring.profiles.active>
  791.             </properties>
  792.         </profile>
  793.         <profile>
  794.             <id>dev</id>
  795.             <activation>
  796.                 <activeByDefault>true</activeByDefault>
  797.             </activation>
  798.             <dependencies>
  799.                 <dependency>
  800.                     <groupId>org.springframework.boot</groupId>
  801.                     <artifactId>spring-boot-starter-undertow</artifactId>
  802.                 </dependency>
  803.                 <dependency>
  804.                     <groupId>org.springframework.boot</groupId>
  805.                     <artifactId>spring-boot-devtools</artifactId>
  806.                     <optional>true</optional>
  807.                 </dependency>
  808.             </dependencies>
  809.             <properties>
  810.                 <!-- default Spring profiles -->
  811.                 <spring.profiles.active>dev${profile.tls}${profile.no-liquibase}</spring.profiles.active>
  812.             </properties>
  813.         </profile>
  814.         <profile>
  815.             <id>prod</id>
  816.             <dependencies>
  817.                 <dependency>
  818.                     <groupId>org.springframework.boot</groupId>
  819.                     <artifactId>spring-boot-starter-undertow</artifactId>
  820.                 </dependency>
  821.             </dependencies>
  822.             <build>
  823.                 <plugins>
  824.                     <plugin>
  825.                         <artifactId>maven-clean-plugin</artifactId>
  826.                         <configuration>
  827.                             <filesets>
  828.                                 <fileset>
  829.                                     <directory>target/classes/static/</directory>
  830.                                 </fileset>
  831.                             </filesets>
  832.                         </configuration>
  833.                     </plugin>
  834.                     <plugin>
  835.                         <groupId>org.springframework.boot</groupId>
  836.                         <artifactId>spring-boot-maven-plugin</artifactId>
  837.                         <configuration>
  838.                             <mainClass>${start-class}</mainClass>
  839.                             <executable>true</executable>
  840.                         </configuration>
  841.                         <executions>
  842.                             <execution>
  843.                                 <goals>
  844.                                     <goal>build-info</goal>
  845.                                 </goals>
  846.                             </execution>
  847.                         </executions>
  848.                     </plugin>
  849.                     <plugin>
  850.                         <groupId>com.github.eirslett</groupId>
  851.                         <artifactId>frontend-maven-plugin</artifactId>
  852.                         <executions>
  853.                             <execution>
  854.                                 <id>install node and npm</id>
  855.                                 <goals>
  856.                                     <goal>install-node-and-npm</goal>
  857.                                 </goals>
  858.                                 <configuration>
  859.                                     <nodeVersion>${node.version}</nodeVersion>
  860.                                     <npmVersion>${npm.version}</npmVersion>
  861.                                 </configuration>
  862.                             </execution>
  863.                             <execution>
  864.                                 <id>npm install</id>
  865.                                 <goals>
  866.                                     <goal>npm</goal>
  867.                                 </goals>
  868.                                 <configuration>
  869.                                     <arguments>install</arguments>
  870.                                 </configuration>
  871.                             </execution>
  872.                             <execution>
  873.                                 <id>webpack build test</id>
  874.                                 <goals>
  875.                                     <goal>npm</goal>
  876.                                 </goals>
  877.                                 <phase>test</phase>
  878.                                 <configuration>
  879.                                     <arguments>run webpack:test</arguments>
  880.                                     <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
  881.                                 </configuration>
  882.                             </execution>
  883.                             <execution>
  884.                                 <id>webpack build prod</id>
  885.                                 <goals>
  886.                                     <goal>npm</goal>
  887.                                 </goals>
  888.                                 <phase>generate-resources</phase>
  889.                                 <configuration>
  890.                                     <arguments>run webpack:prod</arguments>
  891.                                     <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
  892.                                 </configuration>
  893.                             </execution>
  894.                         </executions>
  895.                     </plugin>
  896.                     <plugin>
  897.                         <groupId>pl.project13.maven</groupId>
  898.                         <artifactId>git-commit-id-plugin</artifactId>
  899.                     </plugin>
  900.                 </plugins>
  901.             </build>
  902.             <properties>
  903.                 <!-- default Spring profiles -->
  904.                 <spring.profiles.active>prod${profile.swagger}${profile.no-liquibase}</spring.profiles.active>
  905.             </properties>
  906.         </profile>
  907.         <profile>
  908.             <id>war</id>
  909.             <build>
  910.                 <plugins>
  911.                     <plugin>
  912.                         <groupId>org.apache.maven.plugins</groupId>
  913.                         <artifactId>maven-war-plugin</artifactId>
  914.                         <version>${maven-war-plugin.version}</version>
  915.                         <executions>
  916.                             <execution>
  917.                                 <goals>
  918.                                     <goal>war</goal>
  919.                                 </goals>
  920.                                 <phase>package</phase>
  921.                             </execution>
  922.                         </executions>
  923.                         <configuration>
  924.                             <warSourceIncludes>WEB-INF/**,META-INF/**</warSourceIncludes>
  925.                             <failOnMissingWebXml>false</failOnMissingWebXml>
  926.                             <warSourceDirectory>target/classes/static/</warSourceDirectory>
  927.                             <webResources>
  928.                                 <resource>
  929.                                     <directory>src/main/webapp</directory>
  930.                                     <includes>
  931.                                         <include>WEB-INF/**</include>
  932.                                     </includes>
  933.                                 </resource>
  934.                             </webResources>
  935.                         </configuration>
  936.                     </plugin>
  937.                 </plugins>
  938.             </build>
  939.         </profile>
  940.         <profile>
  941.             <!--
  942.                Profile for applying IDE-specific configuration.
  943.                At the moment it configures MapStruct and Hibernate JPA Metamodel Generator, which you need when working
  944.                with DTOs and entity filtering.
  945.            -->
  946.             <id>IDE</id>
  947.             <dependencies>
  948.                 <dependency>
  949.                     <groupId>org.mapstruct</groupId>
  950.                     <artifactId>mapstruct-processor</artifactId>
  951.                 </dependency>
  952.                 <dependency>
  953.                     <groupId>org.hibernate</groupId>
  954.                     <artifactId>hibernate-jpamodelgen</artifactId>
  955.                 </dependency>
  956.             </dependencies>
  957.         </profile>
  958.     </profiles>
  959. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement