Advertisement
Guest User

Untitled

a guest
Feb 15th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MXML 7.52 KB | None | 0 0
  1. <?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  2.     <modelVersion>4.0.0</modelVersion>
  3.     <parent>
  4.         <groupId>org.springframework.boot</groupId>
  5.         <artifactId>spring-boot-dependencies</artifactId>
  6.         <version>1.5.3.RELEASE</version>
  7.         <relativePath>../../spring-boot-dependencies</relativePath>
  8.     </parent>
  9.     <artifactId>spring-boot-starter-parent</artifactId>
  10.     <packaging>pom</packaging>
  11.     <name>Spring Boot Starter Parent</name>
  12.     <description>Parent pom providing dependency and plugin management for applications
  13.         built with Maven</description>
  14.     <url>http://projects.spring.io/spring-boot/</url>
  15.     <organization>
  16.         <name>Pivotal Software, Inc.</name>
  17.         <url>http://www.spring.io</url>
  18.     </organization>
  19.     <properties>
  20.         <java.version>1.6</java.version>
  21.         <resource.delimiter>@</resource.delimiter> <!-- delimiter that doesn't clash with Spring ${} placeholders -->
  22.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  23.         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  24.         <maven.compiler.source>${java.version}</maven.compiler.source>
  25.         <maven.compiler.target>${java.version}</maven.compiler.target>
  26.     </properties>
  27.     <dependencyManagement>
  28.         <dependencies>
  29.             <dependency>
  30.                 <groupId>org.springframework</groupId>
  31.                 <artifactId>spring-core</artifactId>
  32.                 <version>${spring.version}</version>
  33.                 <exclusions>
  34.                     <exclusion>
  35.                         <groupId>commons-logging</groupId>
  36.                         <artifactId>commons-logging</artifactId>
  37.                     </exclusion>
  38.                 </exclusions>
  39.             </dependency>
  40.         </dependencies>
  41.     </dependencyManagement>
  42.     <build>
  43.         <!-- Turn on filtering by default for application properties -->
  44.         <resources>
  45.             <resource>
  46.                 <directory>${basedir}/src/main/resources</directory>
  47.                 <filtering>true</filtering>
  48.                 <includes>
  49.                     <include>**/application*.yml</include>
  50.                     <include>**/application*.yaml</include>
  51.                     <include>**/application*.properties</include>
  52.                 </includes>
  53.             </resource>
  54.             <resource>
  55.                 <directory>${basedir}/src/main/resources</directory>
  56.                 <excludes>
  57.                     <exclude>**/application*.yml</exclude>
  58.                     <exclude>**/application*.yaml</exclude>
  59.                     <exclude>**/application*.properties</exclude>
  60.                 </excludes>
  61.             </resource>
  62.         </resources>
  63.         <pluginManagement>
  64.             <plugins>
  65.                 <!-- Apply more sensible defaults for user projects -->
  66.                 <plugin>
  67.                     <groupId>org.apache.maven.plugins</groupId>
  68.                     <artifactId>maven-failsafe-plugin</artifactId>
  69.                     <executions>
  70.                         <execution>
  71.                             <goals>
  72.                                 <goal>integration-test</goal>
  73.                                 <goal>verify</goal>
  74.                             </goals>
  75.                         </execution>
  76.                     </executions>
  77.                 </plugin>
  78.                 <plugin>
  79.                     <groupId>org.apache.maven.plugins</groupId>
  80.                     <artifactId>maven-jar-plugin</artifactId>
  81.                     <configuration>
  82.                         <archive>
  83.                             <manifest>
  84.                                 <mainClass>${start-class}</mainClass>
  85.                                 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  86.                             </manifest>
  87.                         </archive>
  88.                     </configuration>
  89.                 </plugin>
  90.                 <plugin>
  91.                     <groupId>org.apache.maven.plugins</groupId>
  92.                     <artifactId>maven-surefire-plugin</artifactId>
  93.                     <configuration>
  94.                         <includes>
  95.                             <include>**/*Tests.java</include>
  96.                             <include>**/*Test.java</include>
  97.                         </includes>
  98.                         <excludes>
  99.                             <exclude>**/Abstract*.java</exclude>
  100.                         </excludes>
  101.                     </configuration>
  102.                 </plugin>
  103.                 <plugin>
  104.                     <groupId>org.apache.maven.plugins</groupId>
  105.                     <artifactId>maven-war-plugin</artifactId>
  106.                     <configuration>
  107.                         <failOnMissingWebXml>false</failOnMissingWebXml>
  108.                         <archive>
  109.                             <manifest>
  110.                                 <mainClass>${start-class}</mainClass>
  111.                                 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  112.                             </manifest>
  113.                         </archive>
  114.                     </configuration>
  115.                 </plugin>
  116.                 <plugin>
  117.                     <groupId>org.codehaus.mojo</groupId>
  118.                     <artifactId>exec-maven-plugin</artifactId>
  119.                     <configuration>
  120.                         <mainClass>${start-class}</mainClass>
  121.                     </configuration>
  122.                 </plugin>
  123.                 <plugin>
  124.                     <groupId>org.apache.maven.plugins</groupId>
  125.                     <artifactId>maven-resources-plugin</artifactId>
  126.                     <version>2.6</version>
  127.                     <configuration>
  128.                         <delimiters>
  129.                             <delimiter>${resource.delimiter}</delimiter>
  130.                         </delimiters>
  131.                         <useDefaultDelimiters>false</useDefaultDelimiters>
  132.                     </configuration>
  133.                 </plugin>
  134.                 <plugin>
  135.                     <groupId>pl.project13.maven</groupId>
  136.                     <artifactId>git-commit-id-plugin</artifactId>
  137.                     <executions>
  138.                         <execution>
  139.                             <goals>
  140.                                 <goal>revision</goal>
  141.                             </goals>
  142.                         </execution>
  143.                     </executions>
  144.                     <configuration>
  145.                         <verbose>true</verbose>
  146.                         <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
  147.                         <generateGitPropertiesFile>true</generateGitPropertiesFile>
  148.                         <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
  149.                     </configuration>
  150.                 </plugin>
  151.                 <!-- Support our own plugin -->
  152.                 <plugin>
  153.                     <groupId>org.springframework.boot</groupId>
  154.                     <artifactId>spring-boot-maven-plugin</artifactId>
  155.                     <executions>
  156.                         <execution>
  157.                             <goals>
  158.                                 <goal>repackage</goal>
  159.                             </goals>
  160.                         </execution>
  161.                     </executions>
  162.                     <configuration>
  163.                         <mainClass>${start-class}</mainClass>
  164.                     </configuration>
  165.                 </plugin>
  166.                 <!-- Support shade packaging (if the user does not want to use our plugin) -->
  167.                 <plugin>
  168.                     <groupId>org.apache.maven.plugins</groupId>
  169.                     <artifactId>maven-shade-plugin</artifactId>
  170.                     <dependencies>
  171.                         <dependency>
  172.                             <groupId>org.springframework.boot</groupId>
  173.                             <artifactId>spring-boot-maven-plugin</artifactId>
  174.                             <version>1.5.3.RELEASE</version>
  175.                         </dependency>
  176.                     </dependencies>
  177.                     <configuration>
  178.                         <keepDependenciesWithProvidedScope>true</keepDependenciesWithProvidedScope>
  179.                         <createDependencyReducedPom>true</createDependencyReducedPom>
  180.                         <filters>
  181.                             <filter>
  182.                                 <artifact>*:*</artifact>
  183.                                 <excludes>
  184.                                     <exclude>META-INF/*.SF</exclude>
  185.                                     <exclude>META-INF/*.DSA</exclude>
  186.                                     <exclude>META-INF/*.RSA</exclude>
  187.                                 </excludes>
  188.                             </filter>
  189.                         </filters>
  190.                     </configuration>
  191.                     <executions>
  192.                         <execution>
  193.                             <phase>package</phase>
  194.                             <goals>
  195.                                 <goal>shade</goal>
  196.                             </goals>
  197.                             <configuration>
  198.                                 <transformers>
  199.                                     <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  200.                                         <resource>META-INF/spring.handlers</resource>
  201.                                     </transformer>
  202.                                     <transformer implementation="org.springframework.boot.maven.PropertiesMergingResourceTransformer">
  203.                                         <resource>META-INF/spring.factories</resource>
  204.                                     </transformer>
  205.                                     <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  206.                                         <resource>META-INF/spring.schemas</resource>
  207.                                     </transformer>
  208.                                     <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  209.                                     <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  210.                                         <mainClass>${start-class}</mainClass>
  211.                                     </transformer>
  212.                                 </transformers>
  213.                             </configuration>
  214.                         </execution>
  215.                     </executions>
  216.                 </plugin>
  217.             </plugins>
  218.         </pluginManagement>
  219.     </build>
  220. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement