pom.xml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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>com.danielt</groupId>
  7. <artifactId>dropwizard-mongodb</artifactId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. <dependencies>
  10. <dependency>
  11. <groupId>com.yammer.dropwizard</groupId>
  12. <artifactId>dropwizard-core</artifactId>
  13. <version>0.6.2</version>
  14. </dependency>
  15. <dependency>
  16. <groupId>org.mongojack</groupId>
  17. <artifactId>mongojack</artifactId>
  18. <version>2.0.0</version>
  19. </dependency>
  20. </dependencies>
  21. <build>
  22. <plugins>
  23. <plugin>
  24. <groupId>org.apache.maven.plugins</groupId>
  25. <artifactId>maven-compiler-plugin</artifactId>
  26. <version>2.3.2</version>
  27. <configuration>
  28. <source>1.7</source>
  29. <target>1.7</target>
  30. </configuration>
  31. </plugin>
  32. <plugin>
  33. <groupId>org.apache.maven.plugins</groupId>
  34. <artifactId>maven-jar-plugin</artifactId>
  35. <version>2.3.2</version>
  36. <configuration>
  37. <archive>
  38. <manifest>
  39. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  40. </manifest>
  41. </archive>
  42. </configuration>
  43. </plugin>
  44. <plugin>
  45. <groupId>org.apache.maven.plugins</groupId>
  46. <artifactId>maven-shade-plugin</artifactId>
  47. <version>1.6</version>
  48. <configuration>
  49. <createDependencyReducedPom>true</createDependencyReducedPom>
  50. <filters>
  51. <filter>
  52. <artifact>*:*</artifact>
  53. <excludes>
  54. <exclude>META-INF/*.SF</exclude>
  55. <exclude>META-INF/*.DSA</exclude>
  56. <exclude>META-INF/*.RSA</exclude>
  57. </excludes>
  58. </filter>
  59. </filters>
  60. </configuration>
  61. <executions>
  62. <execution>
  63. <phase>package</phase>
  64. <goals>
  65. <goal>shade</goal>
  66. </goals>
  67. <configuration>
  68. <transformers>
  69. <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  70. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  71. <mainClass>com.example.helloworld.HelloWorldService</mainClass>
  72. </transformer>
  73. </transformers>
  74. </configuration>
  75. </execution>
  76. </executions>
  77. </plugin>
  78. </plugins>
  79. </build>
  80. </project>