Nessuna descrizione

pom.xml 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <prerequisites>
  6. <maven>3.0.0</maven>
  7. </prerequisites>
  8. <groupId>io.dropwizard</groupId>
  9. <artifactId>dropwizard-example</artifactId>
  10. <version>1.0.0</version>
  11. <name>Dropwizard Example Application</name>
  12. <properties>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  15. <dropwizard.version>0.8.0</dropwizard.version>
  16. </properties>
  17. <repositories>
  18. <repository>
  19. <id>sonatype-nexus-snapshots</id>
  20. <name>Sonatype Nexus Snapshots</name>
  21. <url>http://oss.sonatype.org/content/repositories/snapshots</url>
  22. </repository>
  23. </repositories>
  24. <dependencies>
  25. <dependency>
  26. <groupId>io.dropwizard</groupId>
  27. <artifactId>dropwizard-core</artifactId>
  28. <version>${dropwizard.version}</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>io.dropwizard</groupId>
  32. <artifactId>dropwizard-auth</artifactId>
  33. <version>${dropwizard.version}</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>io.dropwizard</groupId>
  37. <artifactId>dropwizard-assets</artifactId>
  38. <version>${dropwizard.version}</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>io.dropwizard</groupId>
  42. <artifactId>dropwizard-spdy</artifactId>
  43. <version>${dropwizard.version}</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>io.dropwizard</groupId>
  47. <artifactId>dropwizard-hibernate</artifactId>
  48. <version>${dropwizard.version}</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>io.dropwizard</groupId>
  52. <artifactId>dropwizard-migrations</artifactId>
  53. <version>${dropwizard.version}</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>com.h2database</groupId>
  57. <artifactId>h2</artifactId>
  58. <version>1.4.178</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>io.dropwizard</groupId>
  62. <artifactId>dropwizard-testing</artifactId>
  63. <version>${dropwizard.version}</version>
  64. <scope>test</scope>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.mindrot</groupId>
  68. <artifactId>jbcrypt</artifactId>
  69. <version>0.3m</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>io.dropwizard</groupId>
  73. <artifactId>dropwizard-client</artifactId>
  74. <version>${dropwizard.version}</version>
  75. <exclusions>
  76. <exclusion>
  77. <groupId>org.slf4j</groupId>
  78. <artifactId>slf4j-api</artifactId>
  79. </exclusion>
  80. </exclusions>
  81. </dependency>
  82. <dependency>
  83. <groupId>com.nimbusds</groupId>
  84. <artifactId>nimbus-jose-jwt</artifactId>
  85. <version>3.1.1</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>joda-time</groupId>
  89. <artifactId>joda-time</artifactId>
  90. <version>2.7</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.apache.commons</groupId>
  94. <artifactId>commons-lang3</artifactId>
  95. <version>3.3.2</version>
  96. </dependency>
  97. </dependencies>
  98. <build>
  99. <plugins>
  100. <plugin>
  101. <groupId>org.apache.maven.plugins</groupId>
  102. <artifactId>maven-enforcer-plugin</artifactId>
  103. <version>1.3.1</version>
  104. <executions>
  105. <execution>
  106. <id>enforce</id>
  107. <configuration>
  108. <rules>
  109. <DependencyConvergence />
  110. </rules>
  111. </configuration>
  112. <goals>
  113. <goal>enforce</goal>
  114. </goals>
  115. </execution>
  116. </executions>
  117. </plugin>
  118. <plugin>
  119. <groupId>org.apache.maven.plugins</groupId>
  120. <artifactId>maven-compiler-plugin</artifactId>
  121. <version>3.1</version>
  122. <configuration>
  123. <source>1.7</source>
  124. <target>1.7</target>
  125. <encoding>UTF-8</encoding>
  126. </configuration>
  127. </plugin>
  128. <plugin>
  129. <groupId>org.apache.maven.plugins</groupId>
  130. <artifactId>maven-source-plugin</artifactId>
  131. <version>2.2.1</version>
  132. <executions>
  133. <execution>
  134. <id>attach-sources</id>
  135. <goals>
  136. <goal>jar</goal>
  137. </goals>
  138. </execution>
  139. </executions>
  140. </plugin>
  141. <plugin>
  142. <groupId>org.apache.maven.plugins</groupId>
  143. <artifactId>maven-jar-plugin</artifactId>
  144. <version>2.4</version>
  145. <configuration>
  146. <archive>
  147. <manifest>
  148. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  149. </manifest>
  150. </archive>
  151. </configuration>
  152. </plugin>
  153. <plugin>
  154. <groupId>org.apache.maven.plugins</groupId>
  155. <artifactId>maven-shade-plugin</artifactId>
  156. <version>2.2</version>
  157. <configuration>
  158. <createDependencyReducedPom>true</createDependencyReducedPom>
  159. <filters>
  160. <filter>
  161. <artifact>*:*</artifact>
  162. <excludes>
  163. <exclude>META-INF/*.SF</exclude>
  164. <exclude>META-INF/*.DSA</exclude>
  165. <exclude>META-INF/*.RSA</exclude>
  166. </excludes>
  167. </filter>
  168. </filters>
  169. </configuration>
  170. <executions>
  171. <execution>
  172. <phase>package</phase>
  173. <goals>
  174. <goal>shade</goal>
  175. </goals>
  176. <configuration>
  177. <transformers>
  178. <transformer
  179. implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
  180. <transformer
  181. implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  182. <mainClass>com.example.helloworld.HelloWorldApplication</mainClass>
  183. </transformer>
  184. </transformers>
  185. </configuration>
  186. </execution>
  187. </executions>
  188. </plugin>
  189. <plugin>
  190. <!-- You'll probably want to remove this for your project. I'm just using
  191. it here so that dropwizard-example doesn't get deployed as a library. -->
  192. <groupId>org.apache.maven.plugins</groupId>
  193. <artifactId>maven-deploy-plugin</artifactId>
  194. <version>2.7</version>
  195. <configuration>
  196. <skip>true</skip>
  197. </configuration>
  198. </plugin>
  199. <plugin>
  200. <!-- You'll probably want to remove this for your project. I'm just using
  201. it here so that dropwizard-example site doesn't get staged and deployed. -->
  202. <groupId>org.apache.maven.plugins</groupId>
  203. <artifactId>maven-site-plugin</artifactId>
  204. <version>3.3</version>
  205. <configuration>
  206. <skip>true</skip>
  207. <skipDeploy>true</skipDeploy>
  208. </configuration>
  209. </plugin>
  210. </plugins>
  211. </build>
  212. </project>