pom.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. <parent>
  7. <groupId>com.cloudera.hue.livy</groupId>
  8. <artifactId>livy-main</artifactId>
  9. <version>3.9.0-SNAPSHOT</version>
  10. <relativePath>../pom.xml</relativePath>
  11. </parent>
  12. <artifactId>livy-assembly_2.10</artifactId>
  13. <version>0.2.0</version>
  14. <name>Livy Project Assembly</name>
  15. <packaging>pom</packaging>
  16. <properties>
  17. <livy.jar.dir>scala-${scala.binary.version}</livy.jar.dir>
  18. <livy.jar.basename>livy-assembly-${project.version}.jar</livy.jar.basename>
  19. <livy.jar>${project.build.directory}/${livy.jar.dir}/${livy.jar.basename}</livy.jar>
  20. </properties>
  21. <dependencies>
  22. <dependency>
  23. <groupId>com.cloudera.hue.livy</groupId>
  24. <artifactId>livy-repl_${scala.binary.version}</artifactId>
  25. <version>${project.version}</version>
  26. </dependency>
  27. <dependency>
  28. <groupId>com.cloudera.hue.livy</groupId>
  29. <artifactId>livy-yarn_${scala.binary.version}</artifactId>
  30. <version>${project.version}</version>
  31. </dependency>
  32. <dependency>
  33. <groupId>com.cloudera.hue.livy</groupId>
  34. <artifactId>livy-server_${scala.binary.version}</artifactId>
  35. <version>${project.version}</version>
  36. </dependency>
  37. </dependencies>
  38. <build>
  39. <plugins>
  40. <plugin>
  41. <groupId>org.apache.maven.plugins</groupId>
  42. <artifactId>maven-deploy-plugin</artifactId>
  43. <configuration>
  44. <skip>true</skip>
  45. </configuration>
  46. </plugin>
  47. <plugin>
  48. <groupId>org.apache.maven.plugins</groupId>
  49. <artifactId>maven-install-plugin</artifactId>
  50. <configuration>
  51. <skip>true</skip>
  52. </configuration>
  53. </plugin>
  54. <plugin>
  55. <groupId>org.apache.maven.plugins</groupId>
  56. <artifactId>maven-shade-plugin</artifactId>
  57. <configuration>
  58. <shadedArtifactAttached>false</shadedArtifactAttached>
  59. <outputFile>${livy.jar}</outputFile>
  60. <artifactSet>
  61. <includes>
  62. <include>*:*</include>
  63. </includes>
  64. </artifactSet>
  65. <filters>
  66. <filter>
  67. <artifact>*:*</artifact>
  68. <excludes>
  69. <exclude>org/datanucleus/**</exclude>
  70. <exclude>META-INF/*.SF</exclude>
  71. <exclude>META-INF/*.DSA</exclude>
  72. <exclude>META-INF/*.RSA</exclude>
  73. </excludes>
  74. </filter>
  75. </filters>
  76. <relocations>
  77. <relocation>
  78. <pattern>org.eclipse.jetty</pattern>
  79. <shadedPattern>com.cloudera.hue.jetty</shadedPattern>
  80. <excludes>
  81. <exclude>com/google/common/base/Absent*</exclude>
  82. <exclude>com/google/common/base/Function*</exclude>
  83. <exclude>com/google/common/base/Optional*</exclude>
  84. <exclude>com/google/common/base/Present*</exclude>
  85. <exclude>com/google/common/base/Supplier</exclude>
  86. </excludes>
  87. </relocation>
  88. </relocations>
  89. </configuration>
  90. <executions>
  91. <execution>
  92. <phase>package</phase>
  93. <goals>
  94. <goal>shade</goal>
  95. </goals>
  96. </execution>
  97. </executions>
  98. </plugin>
  99. </plugins>
  100. </build>
  101. </project>