pom.xml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. <groupId>worker</groupId>
  6. <artifactId>worker</artifactId>
  7. <version>1.0-SNAPSHOT</version>
  8. <dependencies>
  9. <dependency>
  10. <groupId>org.json</groupId>
  11. <artifactId>json</artifactId>
  12. <version>20140107</version>
  13. </dependency>
  14. <dependency>
  15. <groupId>redis.clients</groupId>
  16. <artifactId>jedis</artifactId>
  17. <version>2.7.2</version>
  18. <type>jar</type>
  19. <scope>compile</scope>
  20. </dependency>
  21. <dependency>
  22. <groupId>org.postgresql</groupId>
  23. <artifactId>postgresql</artifactId>
  24. <version>9.4-1200-jdbc41</version>
  25. </dependency>
  26. </dependencies>
  27. <build>
  28. <plugins>
  29. <plugin>
  30. <groupId>org.apache.maven.plugins</groupId>
  31. <artifactId>maven-jar-plugin</artifactId>
  32. <version>2.4</version>
  33. <configuration>
  34. <finalName>worker</finalName>
  35. <archive>
  36. <manifest>
  37. <addClasspath>true</addClasspath>
  38. <mainClass>worker.Worker</mainClass>
  39. <classpathPrefix>dependency-jars/</classpathPrefix>
  40. </manifest>
  41. </archive>
  42. </configuration>
  43. </plugin>
  44. <plugin>
  45. <groupId>org.apache.maven.plugins</groupId>
  46. <artifactId>maven-compiler-plugin</artifactId>
  47. <version>3.1</version>
  48. <configuration>
  49. <source>1.7</source>
  50. <target>1.7</target>
  51. </configuration>
  52. </plugin>
  53. <plugin>
  54. <groupId>org.apache.maven.plugins</groupId>
  55. <artifactId>maven-assembly-plugin</artifactId>
  56. <executions>
  57. <execution>
  58. <goals>
  59. <goal>attached</goal>
  60. </goals>
  61. <phase>package</phase>
  62. <configuration>
  63. <finalName>worker</finalName>
  64. <descriptorRefs>
  65. <descriptorRef>jar-with-dependencies</descriptorRef>
  66. </descriptorRefs>
  67. <archive>
  68. <manifest>
  69. <mainClass>worker.Worker</mainClass>
  70. </manifest>
  71. </archive>
  72. </configuration>
  73. </execution>
  74. </executions>
  75. </plugin>
  76. </plugins>
  77. </build>
  78. </project>