pom.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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" 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. <name>RestExpress-Minimal-Scaffold</name>
  5. <!--
  6. To run the project: mvn clean package exec:java
  7. To create a project deployable assembly:
  8. mvn clean package
  9. mvn assembly:single
  10. -->
  11. <description>A Minimal RestExpress Server</description>
  12. <url>https://github.com/RestExpress/RestExpress-Scaffold</url>
  13. <groupId>hello.world</groupId>
  14. <artifactId>world</artifactId>
  15. <version>1.0-SNAPSHOT</version>
  16. <packaging>jar</packaging>
  17. <properties>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <maven.compiler.source>11</maven.compiler.source>
  20. <maven.compiler.target>11</maven.compiler.target>
  21. </properties>
  22. <dependencies>
  23. <dependency>
  24. <groupId>com.strategicgains</groupId>
  25. <artifactId>RestExpress</artifactId>
  26. <version>0.12.0-SNAPSHOT</version>
  27. <exclusions>
  28. <exclusion>
  29. <artifactId>com.fasterxml.jackson.core</artifactId>
  30. <groupId>jackson-databind</groupId>
  31. </exclusion>
  32. </exclusions>
  33. </dependency>
  34. <dependency>
  35. <groupId>com.fasterxml.jackson.core</groupId>
  36. <artifactId>jackson-databind</artifactId>
  37. <version>2.9.9</version>
  38. <exclusions>
  39. <exclusion>
  40. <artifactId>com.fasterxml.jackson.core</artifactId>
  41. <groupId>jackson-annotations</groupId>
  42. </exclusion>
  43. </exclusions>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.fasterxml.jackson.core</groupId>
  47. <artifactId>jackson-annotations</artifactId>
  48. <version>2.9.9</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>com.strategicgains.repoexpress</groupId>
  52. <artifactId>repoexpress-mongodb</artifactId>
  53. <version>0.4.8</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>commons-dbcp</groupId>
  57. <artifactId>commons-dbcp</artifactId>
  58. <version>1.4</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>mysql</groupId>
  62. <artifactId>mysql-connector-java</artifactId>
  63. <version>8.0.18</version>
  64. </dependency>
  65. </dependencies>
  66. <profiles>
  67. <profile>
  68. <id>allow-snapshots</id>
  69. <activation>
  70. <activeByDefault>true</activeByDefault>
  71. </activation>
  72. <repositories>
  73. <repository>
  74. <id>sonatype-snapshots-repo</id>
  75. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  76. <releases>
  77. <enabled>false</enabled>
  78. </releases>
  79. <snapshots>
  80. <enabled>true</enabled>
  81. </snapshots>
  82. </repository>
  83. </repositories>
  84. </profile>
  85. </profiles>
  86. <build>
  87. <defaultGoal>package</defaultGoal>
  88. <plugins>
  89. <plugin>
  90. <groupId>org.apache.maven.plugins</groupId>
  91. <artifactId>maven-compiler-plugin</artifactId>
  92. <version>3.8.0</version>
  93. <configuration>
  94. <debug>false</debug>
  95. </configuration>
  96. </plugin>
  97. <plugin>
  98. <groupId>org.codehaus.mojo</groupId>
  99. <artifactId>exec-maven-plugin</artifactId>
  100. <version>1.2.1</version>
  101. <configuration>
  102. <mainClass>hello.Main</mainClass>
  103. </configuration>
  104. </plugin>
  105. <plugin>
  106. <groupId>org.apache.maven.plugins</groupId>
  107. <artifactId>maven-jar-plugin</artifactId>
  108. <version>2.4</version>
  109. <configuration>
  110. <archive>
  111. <addMavenDescriptor>false</addMavenDescriptor>
  112. <manifest>
  113. <addClasspath>true</addClasspath>
  114. <classpathPrefix>./lib/</classpathPrefix>
  115. <mainClass>hello.Main</mainClass>
  116. </manifest>
  117. </archive>
  118. </configuration>
  119. </plugin>
  120. <plugin>
  121. <groupId>org.apache.maven.plugins</groupId>
  122. <artifactId>maven-shade-plugin</artifactId>
  123. <version>2.4.1</version>
  124. <configuration>
  125. <createDependencyReducedPom>false</createDependencyReducedPom>
  126. <filters>
  127. <filter>
  128. <artifact>*:*</artifact>
  129. </filter>
  130. </filters>
  131. </configuration>
  132. <executions>
  133. <execution>
  134. <phase>package</phase>
  135. <goals>
  136. <goal>shade</goal>
  137. </goals>
  138. <configuration>
  139. <transformers>
  140. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  141. <mainClass>hello.Main</mainClass>
  142. </transformer>
  143. </transformers>
  144. </configuration>
  145. </execution>
  146. </executions>
  147. </plugin>
  148. </plugins>
  149. </build>
  150. <reporting>
  151. <plugins>
  152. <plugin>
  153. <groupId>org.codehaus.mojo</groupId>
  154. <artifactId>versions-maven-plugin</artifactId>
  155. <version>2.0</version>
  156. </plugin>
  157. </plugins>
  158. </reporting>
  159. </project>