pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Licensed to the Apache Software Foundation (ASF) under one or more
  4. ~ contributor license agreements. See the NOTICE file distributed with
  5. ~ this work for additional information regarding copyright ownership.
  6. ~ The ASF licenses this file to You under the Apache License, Version 2.0
  7. ~ (the "License"); you may not use this file except in compliance with
  8. ~ the License. You may obtain a copy of the License at
  9. ~
  10. ~ http://www.apache.org/licenses/LICENSE-2.0
  11. ~
  12. ~ Unless required by applicable law or agreed to in writing, software
  13. ~ distributed under the License is distributed on an "AS IS" BASIS,
  14. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. ~ See the License for the specific language governing permissions and
  16. ~ limitations under the License.
  17. -->
  18. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  19. <modelVersion>4.0.0</modelVersion>
  20. <parent>
  21. <groupId>org.apache.livy</groupId>
  22. <artifactId>livy-main</artifactId>
  23. <version>0.8.0-incubating-SNAPSHOT</version>
  24. </parent>
  25. <groupId>org.apache.livy</groupId>
  26. <artifactId>livy-test-lib</artifactId>
  27. <version>0.8.0-incubating-SNAPSHOT</version>
  28. <packaging>jar</packaging>
  29. <properties>
  30. <skipDeploy>true</skipDeploy>
  31. </properties>
  32. <dependencies>
  33. <dependency>
  34. <groupId>org.apache.livy</groupId>
  35. <artifactId>livy-api</artifactId>
  36. <version>${project.version}</version>
  37. <scope>provided</scope>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.apache.spark</groupId>
  41. <artifactId>spark-core_${scala.binary.version}</artifactId>
  42. <scope>provided</scope>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.apache.spark</groupId>
  46. <artifactId>spark-sql_${scala.binary.version}</artifactId>
  47. <scope>provided</scope>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.apache.spark</groupId>
  51. <artifactId>spark-hive_${scala.binary.version}</artifactId>
  52. <scope>provided</scope>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.apache.spark</groupId>
  56. <artifactId>spark-streaming_${scala.binary.version}</artifactId>
  57. <scope>provided</scope>
  58. </dependency>
  59. </dependencies>
  60. <build>
  61. <plugins>
  62. <plugin>
  63. <groupId>org.apache.maven.plugins</groupId>
  64. <artifactId>maven-surefire-plugin</artifactId>
  65. <configuration>
  66. <skipTests>true</skipTests>
  67. </configuration>
  68. </plugin>
  69. <plugin>
  70. <groupId>org.scalatest</groupId>
  71. <artifactId>scalatest-maven-plugin</artifactId>
  72. <configuration>
  73. <skipTests>true</skipTests>
  74. </configuration>
  75. </plugin>
  76. <plugin>
  77. <groupId>org.jacoco</groupId>
  78. <artifactId>jacoco-maven-plugin</artifactId>
  79. <configuration>
  80. <skip>true</skip>
  81. </configuration>
  82. </plugin>
  83. <plugin>
  84. <groupId>org.codehaus.mojo</groupId>
  85. <artifactId>build-helper-maven-plugin</artifactId>
  86. <executions>
  87. <execution>
  88. <id>parse-spark-version</id>
  89. <phase>process-sources</phase>
  90. <goals>
  91. <goal>parse-version</goal>
  92. </goals>
  93. <configuration>
  94. <propertyPrefix>spark</propertyPrefix>
  95. <versionString>${spark.version}</versionString>
  96. </configuration>
  97. </execution>
  98. <execution>
  99. <id>add-spark2-source-code</id>
  100. <phase>process-sources</phase>
  101. <goals>
  102. <goal>add-source</goal>
  103. </goals>
  104. <configuration>
  105. <sources>
  106. <source>${project.basedir}/src/main/spark${spark.majorVersion}/scala</source>
  107. <source>${project.basedir}/src/main/spark${spark.majorVersion}/java</source>
  108. </sources>
  109. </configuration>
  110. </execution>
  111. </executions>
  112. </plugin>
  113. </plugins>
  114. </build>
  115. </project>