pom.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>io.vertx</groupId>
  7. <artifactId>vertx-web-benchmark</artifactId>
  8. <version>4.3.8</version>
  9. <properties>
  10. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  11. <maven.compiler.source>17</maven.compiler.source>
  12. <maven.compiler.target>17</maven.compiler.target>
  13. <!-- the main class -->
  14. <main.verticle>io.vertx.benchmark.App</main.verticle>
  15. </properties>
  16. <dependencyManagement>
  17. <dependencies>
  18. <dependency>
  19. <groupId>io.vertx</groupId>
  20. <artifactId>vertx-stack-depchain</artifactId>
  21. <version>${project.version}</version>
  22. <type>pom</type>
  23. <scope>import</scope>
  24. </dependency>
  25. </dependencies>
  26. </dependencyManagement>
  27. <dependencies>
  28. <dependency>
  29. <groupId>io.vertx</groupId>
  30. <artifactId>vertx-core</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>com.fasterxml.jackson.module</groupId>
  34. <artifactId>jackson-module-blackbird</artifactId>
  35. <version>2.14.2</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>io.vertx</groupId>
  39. <artifactId>vertx-web</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>io.vertx</groupId>
  43. <artifactId>vertx-pg-client</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>io.vertx</groupId>
  47. <artifactId>vertx-web-templ-rocker</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>io.netty</groupId>
  51. <artifactId>netty-transport-native-epoll</artifactId>
  52. <classifier>linux-x86_64</classifier>
  53. </dependency>
  54. </dependencies>
  55. <build>
  56. <plugins>
  57. <plugin>
  58. <groupId>com.fizzed</groupId>
  59. <artifactId>rocker-maven-plugin</artifactId>
  60. <version>1.3.0</version>
  61. <executions>
  62. <execution>
  63. <id>generate-rocker-templates</id>
  64. <phase>generate-sources</phase>
  65. <goals>
  66. <goal>generate</goal>
  67. </goals>
  68. <configuration>
  69. <templateDirectory>${project.basedir}/src/main/resources</templateDirectory>
  70. <optimize>true</optimize>
  71. <javaVersion>17</javaVersion>
  72. </configuration>
  73. </execution>
  74. </executions>
  75. </plugin>
  76. <!--
  77. You only need the part below if you want to build your application into a fat executable jar.
  78. This is a jar that contains all the dependencies required to run it, so you can just run it with
  79. java -jar
  80. -->
  81. <plugin>
  82. <groupId>org.apache.maven.plugins</groupId>
  83. <artifactId>maven-shade-plugin</artifactId>
  84. <version>2.4.1</version>
  85. <executions>
  86. <execution>
  87. <phase>package</phase>
  88. <goals>
  89. <goal>shade</goal>
  90. </goals>
  91. <configuration>
  92. <transformers>
  93. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  94. <manifestEntries>
  95. <Main-Class>io.vertx.core.Launcher</Main-Class>
  96. <Main-Verticle>${main.verticle}</Main-Verticle>
  97. </manifestEntries>
  98. </transformer>
  99. <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  100. <resource>META-INF/services/io.vertx.core.spi.VerticleFactory</resource>
  101. </transformer>
  102. </transformers>
  103. <artifactSet>
  104. </artifactSet>
  105. <outputFile>${project.build.directory}/${project.artifactId}-${project.version}-fat.jar</outputFile>
  106. </configuration>
  107. </execution>
  108. </executions>
  109. </plugin>
  110. </plugins>
  111. </build>
  112. </project>