pom.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <?xml version="1.0"?>
  2. <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>net.p0f.openshift</groupId>
  6. <artifactId>metrics-sample-rest</artifactId>
  7. <version>1.0.0-SNAPSHOT</version>
  8. <properties>
  9. <compiler-plugin.version>3.13.0</compiler-plugin.version>
  10. <failsafe.useModulePath>false</failsafe.useModulePath>
  11. <maven.compiler.release>17</maven.compiler.release>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  14. <quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
  15. <quarkus.platform.group-id>com.redhat.quarkus.platform</quarkus.platform.group-id>
  16. <quarkus.platform.version>3.2.10.Final-redhat-00002</quarkus.platform.version>
  17. <skipITs>true</skipITs>
  18. <surefire-plugin.version>3.2.5</surefire-plugin.version>
  19. </properties>
  20. <dependencyManagement>
  21. <dependencies>
  22. <dependency>
  23. <groupId>${quarkus.platform.group-id}</groupId>
  24. <artifactId>${quarkus.platform.artifact-id}</artifactId>
  25. <version>${quarkus.platform.version}</version>
  26. <type>pom</type>
  27. <scope>import</scope>
  28. </dependency>
  29. </dependencies>
  30. </dependencyManagement>
  31. <dependencies>
  32. <dependency>
  33. <groupId>io.quarkus</groupId>
  34. <artifactId>quarkus-arc</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>io.quarkus</groupId>
  38. <artifactId>quarkus-resteasy</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>io.quarkus</groupId>
  42. <artifactId>quarkus-micrometer-registry-prometheus</artifactId>
  43. </dependency>
  44. <!-- dependency>
  45. <groupId>io.quarkus</groupId>
  46. <artifactId>quarkus-smallrye-metrics</artifactId>
  47. </dependency -->
  48. <dependency>
  49. <groupId>io.quarkus</groupId>
  50. <artifactId>quarkus-junit5</artifactId>
  51. <scope>test</scope>
  52. </dependency>
  53. <dependency>
  54. <groupId>io.rest-assured</groupId>
  55. <artifactId>rest-assured</artifactId>
  56. <scope>test</scope>
  57. </dependency>
  58. </dependencies>
  59. <repositories>
  60. <repository>
  61. <releases>
  62. <enabled>true</enabled>
  63. </releases>
  64. <snapshots>
  65. <enabled>false</enabled>
  66. </snapshots>
  67. <id>redhat</id>
  68. <url>https://maven.repository.redhat.com/ga</url>
  69. </repository>
  70. </repositories>
  71. <pluginRepositories>
  72. <pluginRepository>
  73. <releases>
  74. <enabled>true</enabled>
  75. </releases>
  76. <snapshots>
  77. <enabled>false</enabled>
  78. </snapshots>
  79. <id>redhat</id>
  80. <url>https://maven.repository.redhat.com/ga</url>
  81. </pluginRepository>
  82. </pluginRepositories>
  83. <build>
  84. <plugins>
  85. <plugin>
  86. <groupId>${quarkus.platform.group-id}</groupId>
  87. <artifactId>quarkus-maven-plugin</artifactId>
  88. <version>${quarkus.platform.version}</version>
  89. <extensions>true</extensions>
  90. <executions>
  91. <execution>
  92. <goals>
  93. <goal>build</goal>
  94. <goal>generate-code</goal>
  95. <goal>generate-code-tests</goal>
  96. </goals>
  97. </execution>
  98. </executions>
  99. </plugin>
  100. <plugin>
  101. <artifactId>maven-compiler-plugin</artifactId>
  102. <version>${compiler-plugin.version}</version>
  103. <configuration>
  104. <compilerArgs>
  105. <arg>-parameters</arg>
  106. </compilerArgs>
  107. </configuration>
  108. </plugin>
  109. <plugin>
  110. <artifactId>maven-surefire-plugin</artifactId>
  111. <version>${surefire-plugin.version}</version>
  112. <configuration>
  113. <systemPropertyVariables>
  114. <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
  115. <maven.home>${maven.home}</maven.home>
  116. </systemPropertyVariables>
  117. </configuration>
  118. </plugin>
  119. </plugins>
  120. </build>
  121. <profiles>
  122. <profile>
  123. <id>native</id>
  124. <activation>
  125. <property>
  126. <name>native</name>
  127. </property>
  128. </activation>
  129. <build>
  130. <plugins>
  131. <plugin>
  132. <artifactId>maven-failsafe-plugin</artifactId>
  133. <version>${surefire-plugin.version}</version>
  134. <executions>
  135. <execution>
  136. <goals>
  137. <goal>integration-test</goal>
  138. <goal>verify</goal>
  139. </goals>
  140. <configuration>
  141. <systemPropertyVariables>
  142. <native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
  143. <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
  144. <maven.home>${maven.home}</maven.home>
  145. </systemPropertyVariables>
  146. </configuration>
  147. </execution>
  148. </executions>
  149. </plugin>
  150. </plugins>
  151. </build>
  152. <properties>
  153. <quarkus.package.type>native</quarkus.package.type>
  154. </properties>
  155. </profile>
  156. </profiles>
  157. </project>