You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

161 lines
5.9 KiB

2 years ago
  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"
  3. 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. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.7.3</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.example</groupId>
  12. <artifactId>demoprueba</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>demoprueba</name>
  15. <description>demoprueba</description>
  16. <properties>
  17. <java.version>11</java.version>
  18. <repackage.classifier/>
  19. <spring-native.version>0.12.1</spring-native.version>
  20. </properties>
  21. <dependencies>
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springframework.experimental</groupId>
  28. <artifactId>spring-native</artifactId>
  29. <version>${spring-native.version}</version>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-devtools</artifactId>
  34. <scope>runtime</scope>
  35. <optional>true</optional>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-configuration-processor</artifactId>
  40. <optional>true</optional>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.projectlombok</groupId>
  44. <artifactId>lombok</artifactId>
  45. <optional>true</optional>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.springframework.boot</groupId>
  49. <artifactId>spring-boot-starter-test</artifactId>
  50. <scope>test</scope>
  51. </dependency>
  52. </dependencies>
  53. <build>
  54. <plugins>
  55. <plugin>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-maven-plugin</artifactId>
  58. <configuration>
  59. <excludes>
  60. <exclude>
  61. <groupId>org.projectlombok</groupId>
  62. <artifactId>lombok</artifactId>
  63. </exclude>
  64. </excludes>
  65. <classifier>${repackage.classifier}</classifier>
  66. <image>
  67. <builder>paketobuildpacks/builder:tiny</builder>
  68. <env>
  69. <BP_NATIVE_IMAGE>true</BP_NATIVE_IMAGE>
  70. </env>
  71. </image>
  72. </configuration>
  73. </plugin>
  74. <plugin>
  75. <groupId>org.springframework.experimental</groupId>
  76. <artifactId>spring-aot-maven-plugin</artifactId>
  77. <version>${spring-native.version}</version>
  78. <executions>
  79. <execution>
  80. <id>test-generate</id>
  81. <goals>
  82. <goal>test-generate</goal>
  83. </goals>
  84. </execution>
  85. <execution>
  86. <id>generate</id>
  87. <goals>
  88. <goal>generate</goal>
  89. </goals>
  90. </execution>
  91. </executions>
  92. </plugin>
  93. </plugins>
  94. </build>
  95. <repositories>
  96. <repository>
  97. <id>spring-releases</id>
  98. <name>Spring Releases</name>
  99. <url>https://repo.spring.io/release</url>
  100. <snapshots>
  101. <enabled>false</enabled>
  102. </snapshots>
  103. </repository>
  104. </repositories>
  105. <pluginRepositories>
  106. <pluginRepository>
  107. <id>spring-releases</id>
  108. <name>Spring Releases</name>
  109. <url>https://repo.spring.io/release</url>
  110. <snapshots>
  111. <enabled>false</enabled>
  112. </snapshots>
  113. </pluginRepository>
  114. </pluginRepositories>
  115. <profiles>
  116. <profile>
  117. <id>native</id>
  118. <properties>
  119. <repackage.classifier>exec</repackage.classifier>
  120. <native-buildtools.version>0.9.13</native-buildtools.version>
  121. </properties>
  122. <dependencies>
  123. <dependency>
  124. <groupId>org.junit.platform</groupId>
  125. <artifactId>junit-platform-launcher</artifactId>
  126. <scope>test</scope>
  127. </dependency>
  128. </dependencies>
  129. <build>
  130. <plugins>
  131. <plugin>
  132. <groupId>org.graalvm.buildtools</groupId>
  133. <artifactId>native-maven-plugin</artifactId>
  134. <version>${native-buildtools.version}</version>
  135. <extensions>true</extensions>
  136. <executions>
  137. <execution>
  138. <id>test-native</id>
  139. <phase>test</phase>
  140. <goals>
  141. <goal>test</goal>
  142. </goals>
  143. </execution>
  144. <execution>
  145. <id>build-native</id>
  146. <phase>package</phase>
  147. <goals>
  148. <goal>build</goal>
  149. </goals>
  150. </execution>
  151. </executions>
  152. </plugin>
  153. </plugins>
  154. </build>
  155. </profile>
  156. </profiles>
  157. </project>