pom-mongodb.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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>org.redkalex</groupId>
  5. <artifactId>redkale-benchmark</artifactId>
  6. <version>1.0.0</version>
  7. <properties>
  8. <!-- the main class -->
  9. <main.class>org.redkale.boot.Application</main.class>
  10. <redkale.version>2.7.0-SNAPSHOT</redkale.version>
  11. <stack.version>1.0.0</stack.version>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <maven.compiler.source>11</maven.compiler.source>
  14. <maven.compiler.target>11</maven.compiler.target>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>org.redkale</groupId>
  19. <artifactId>redkale</artifactId>
  20. <version>${redkale.version}</version>
  21. </dependency>
  22. <dependency>
  23. <groupId>org.redkalex</groupId>
  24. <artifactId>redkale-plugins</artifactId>
  25. <version>${redkale.version}</version>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.mongodb</groupId>
  29. <artifactId>mongodb-driver-reactivestreams</artifactId>
  30. <version>4.3.2</version>
  31. </dependency>
  32. </dependencies>
  33. <repositories>
  34. <repository>
  35. <id>central</id>
  36. <name>Central Repository</name>
  37. <url>https://repo.maven.apache.org/maven2</url>
  38. </repository>
  39. <repository>
  40. <id>sonatype-nexus-snapshots</id>
  41. <name>Sonatype Nexus Snapshots</name>
  42. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  43. </repository>
  44. </repositories>
  45. <pluginRepositories>
  46. <pluginRepository>
  47. <id>central</id>
  48. <name>Central Repository</name>
  49. <url>https://repo.maven.apache.org/maven2</url>
  50. </pluginRepository>
  51. <pluginRepository>
  52. <id>sonatype-nexus-snapshots</id>
  53. <name>Sonatype Nexus Snapshots</name>
  54. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  55. <releases>
  56. <enabled>false</enabled>
  57. </releases>
  58. <snapshots>
  59. <enabled>true</enabled>
  60. </snapshots>
  61. </pluginRepository>
  62. </pluginRepositories>
  63. <build>
  64. <plugins>
  65. <plugin>
  66. <groupId>org.apache.maven.plugins</groupId>
  67. <artifactId>maven-compiler-plugin</artifactId>
  68. <version>3.8.0</version>
  69. </plugin>
  70. <plugin>
  71. <groupId>org.redkale.maven.plugins</groupId>
  72. <artifactId>redkale-maven-plugin</artifactId>
  73. <version>1.1.0-SNAPSHOT</version>
  74. <configuration>
  75. <nativeimageArgs>
  76. <arg>--allow-incomplete-classpath</arg>
  77. <arg>--no-fallback</arg>
  78. </nativeimageArgs>
  79. </configuration>
  80. <executions>
  81. <execution>
  82. <id>redkale-compile</id>
  83. <phase>process-classes</phase>
  84. <goals>
  85. <goal>compile</goal>
  86. </goals>
  87. </execution>
  88. </executions>
  89. </plugin>
  90. <plugin>
  91. <groupId>org.apache.maven.plugins</groupId>
  92. <artifactId>maven-shade-plugin</artifactId>
  93. <version>3.2.0</version>
  94. <executions>
  95. <execution>
  96. <phase>package</phase>
  97. <goals>
  98. <goal>shade</goal>
  99. </goals>
  100. <configuration>
  101. <transformers>
  102. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  103. <mainClass>${main.class}</mainClass>
  104. </transformer>
  105. </transformers>
  106. </configuration>
  107. </execution>
  108. </executions>
  109. </plugin>
  110. </plugins>
  111. </build>
  112. </project>