1
0

pom.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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>starrockswriter</artifactId>
  10. <name>starrockswriter</name>
  11. <version>1.1.0</version>
  12. <packaging>jar</packaging>
  13. <dependencies>
  14. <dependency>
  15. <groupId>com.alibaba.datax</groupId>
  16. <artifactId>datax-common</artifactId>
  17. <version>${datax-project-version}</version>
  18. <exclusions>
  19. <exclusion>
  20. <artifactId>slf4j-log4j12</artifactId>
  21. <groupId>org.slf4j</groupId>
  22. </exclusion>
  23. </exclusions>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.slf4j</groupId>
  27. <artifactId>slf4j-api</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>ch.qos.logback</groupId>
  31. <artifactId>logback-classic</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>com.alibaba.datax</groupId>
  35. <artifactId>plugin-rdbms-util</artifactId>
  36. <version>${datax-project-version}</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>commons-codec</groupId>
  40. <artifactId>commons-codec</artifactId>
  41. <version>1.9</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.apache.commons</groupId>
  45. <artifactId>commons-lang3</artifactId>
  46. <version>3.12.0</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>commons-logging</groupId>
  50. <artifactId>commons-logging</artifactId>
  51. <version>1.1.1</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.apache.httpcomponents</groupId>
  55. <artifactId>httpcore</artifactId>
  56. <version>4.4.6</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.apache.httpcomponents</groupId>
  60. <artifactId>httpclient</artifactId>
  61. <version>4.5.3</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.alibaba.fastjson2</groupId>
  65. <artifactId>fastjson2</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>mysql</groupId>
  69. <artifactId>mysql-connector-java</artifactId>
  70. <version>5.1.46</version>
  71. </dependency>
  72. </dependencies>
  73. <build>
  74. <plugins>
  75. <!-- compiler plugin -->
  76. <plugin>
  77. <artifactId>maven-compiler-plugin</artifactId>
  78. <configuration>
  79. <source>${jdk-version}</source>
  80. <target>${jdk-version}</target>
  81. <encoding>${project-sourceEncoding}</encoding>
  82. </configuration>
  83. </plugin>
  84. <plugin>
  85. <groupId>org.apache.maven.plugins</groupId>
  86. <artifactId>maven-shade-plugin</artifactId>
  87. <version>3.0.0</version>
  88. <executions>
  89. <!-- Run shade goal on package phase -->
  90. <execution>
  91. <phase>package</phase>
  92. <goals>
  93. <goal>shade</goal>
  94. </goals>
  95. <configuration>
  96. <createDependencyReducedPom>true</createDependencyReducedPom>
  97. <relocations>
  98. <relocation>
  99. <pattern>org.apache.http</pattern>
  100. <shadedPattern>com.starrocks.shade.org.apache.http</shadedPattern>
  101. </relocation>
  102. <relocation>
  103. <pattern>org.apache.commons</pattern>
  104. <shadedPattern>com.starrocks.shade.org.apache.commons</shadedPattern>
  105. </relocation>
  106. </relocations>
  107. <artifactSet>
  108. <includes>
  109. <include>org.apache.commons:commons-lang3</include>
  110. <include>commons-codec:commons-codec</include>
  111. <include>commons-logging:*</include>
  112. <include>org.apache.httpcomponents:httpclient</include>
  113. <include>org.apache.httpcomponents:httpcore</include>
  114. </includes>
  115. </artifactSet>
  116. <filters>
  117. <filter>
  118. <!-- Do not copy the signatures in the META-INF folder.
  119. Otherwise, this might cause SecurityExceptions when using the JAR. -->
  120. <artifact>*:*</artifact>
  121. <excludes>
  122. <exclude>META-INF/*.SF</exclude>
  123. <exclude>META-INF/*.DSA</exclude>
  124. <exclude>META-INF/*.RSA</exclude>
  125. </excludes>
  126. </filter>
  127. </filters>
  128. </configuration>
  129. </execution>
  130. </executions>
  131. </plugin>
  132. <!-- assembly plugin -->
  133. <plugin>
  134. <artifactId>maven-assembly-plugin</artifactId>
  135. <configuration>
  136. <descriptors>
  137. <descriptor>src/main/assembly/package.xml</descriptor>
  138. </descriptors>
  139. <finalName>datax</finalName>
  140. </configuration>
  141. <executions>
  142. <execution>
  143. <id>dwzip</id>
  144. <phase>package</phase>
  145. <goals>
  146. <goal>single</goal>
  147. </goals>
  148. </execution>
  149. </executions>
  150. </plugin>
  151. </plugins>
  152. </build>
  153. </project>