pom.xml 4.2 KB

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