pom.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.jebbstewart</groupId>
  5. <artifactId>vertx.benchmark</artifactId>
  6. <version>0.0.1-SNAPSHOT</version>
  7. <properties>
  8. <!-- the main class -->
  9. <main.class>vertx.WebServer</main.class>
  10. <stack.version>3.3.2</stack.version>
  11. </properties>
  12. <repositories>
  13. <repository>
  14. <id>sonatype-nexus-snapshots</id>
  15. <name>Sonatype Nexus Snapshots</name>
  16. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  17. <releases>
  18. <enabled>false</enabled>
  19. </releases>
  20. <snapshots>
  21. <enabled>true</enabled>
  22. </snapshots>
  23. </repository>
  24. </repositories>
  25. <dependencies>
  26. <dependency>
  27. <groupId>io.vertx</groupId>
  28. <artifactId>vertx-core</artifactId>
  29. <version>${stack.version}</version>
  30. </dependency>
  31. </dependencies>
  32. <build>
  33. <plugins>
  34. <plugin>
  35. <groupId>org.apache.maven.plugins</groupId>
  36. <artifactId>maven-compiler-plugin</artifactId>
  37. <configuration>
  38. <source>1.8</source>
  39. <target>1.8</target>
  40. </configuration>
  41. </plugin>
  42. <plugin>
  43. <groupId>org.apache.maven.plugins</groupId>
  44. <artifactId>maven-shade-plugin</artifactId>
  45. <version>2.3</version>
  46. <executions>
  47. <execution>
  48. <phase>package</phase>
  49. <goals>
  50. <goal>shade</goal>
  51. </goals>
  52. <configuration>
  53. <transformers>
  54. <transformer
  55. implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  56. <manifestEntries>
  57. <Main-Class>${main.class}</Main-Class>
  58. </manifestEntries>
  59. </transformer>
  60. <transformer
  61. implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  62. <resource>META-INF/services/io.vertx.core.spi.VerticleFactory</resource>
  63. </transformer>
  64. </transformers>
  65. <artifactSet>
  66. </artifactSet>
  67. <outputFile>${project.build.directory}/${project.artifactId}-${project.version}-fat.jar</outputFile>
  68. </configuration>
  69. </execution>
  70. </executions>
  71. </plugin>
  72. </plugins>
  73. </build>
  74. </project>