pom.xml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. <parent>
  5. <groupId>com.alibaba.datax</groupId>
  6. <artifactId>datax-all</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. </parent>
  9. <artifactId>otsreader</artifactId>
  10. <name>otsreader</name>
  11. <dependencies>
  12. <dependency>
  13. <groupId>com.alibaba.datax</groupId>
  14. <artifactId>datax-common</artifactId>
  15. <version>${datax-project-version}</version>
  16. <exclusions>
  17. <exclusion>
  18. <artifactId>slf4j-log4j12</artifactId>
  19. <groupId>org.slf4j</groupId>
  20. </exclusion>
  21. </exclusions>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.slf4j</groupId>
  25. <artifactId>slf4j-api</artifactId>
  26. </dependency>
  27. <dependency>
  28. <groupId>ch.qos.logback</groupId>
  29. <artifactId>logback-classic</artifactId>
  30. </dependency>
  31. <!--Other 依赖 -->
  32. <dependency>
  33. <groupId>com.aliyun.openservices</groupId>
  34. <artifactId>ots-public</artifactId>
  35. <version>2.2.4</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>com.google.code.gson</groupId>
  39. <artifactId>gson</artifactId>
  40. <version>2.2.4</version>
  41. </dependency>
  42. </dependencies>
  43. <build>
  44. <plugins>
  45. <!-- compiler plugin -->
  46. <plugin>
  47. <artifactId>maven-compiler-plugin</artifactId>
  48. <configuration>
  49. <source>1.6</source>
  50. <target>1.6</target>
  51. <encoding>${project-sourceEncoding}</encoding>
  52. </configuration>
  53. </plugin>
  54. <!-- assembly plugin -->
  55. <plugin>
  56. <artifactId>maven-assembly-plugin</artifactId>
  57. <configuration>
  58. <descriptors>
  59. <descriptor>src/main/assembly/package.xml</descriptor>
  60. </descriptors>
  61. <finalName>datax</finalName>
  62. </configuration>
  63. <executions>
  64. <execution>
  65. <id>dwzip</id>
  66. <phase>package</phase>
  67. <goals>
  68. <goal>single</goal>
  69. </goals>
  70. </execution>
  71. </executions>
  72. </plugin>
  73. <!-- test runner -->
  74. <plugin>
  75. <groupId>org.apache.maven.plugins</groupId>
  76. <artifactId>maven-surefire-plugin</artifactId>
  77. <version>2.5</version>
  78. <configuration>
  79. <parallel>all</parallel>
  80. <forkCount>10</forkCount>
  81. <reuseForks>true</reuseForks>
  82. <argLine>-Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=.</argLine>
  83. <includes>
  84. <include>**/unittest/*.java</include>
  85. <include>**/functiontest/*.java</include>
  86. </includes>
  87. </configuration>
  88. </plugin>
  89. </plugins>
  90. </build>
  91. </project>