pom.xml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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"
  19. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  20. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  21. <modelVersion>4.0.0</modelVersion>
  22. <parent>
  23. <groupId>org.apache.livy</groupId>
  24. <artifactId>livy-main</artifactId>
  25. <version>0.8.0-incubating-SNAPSHOT</version>
  26. <relativePath>../pom.xml</relativePath>
  27. </parent>
  28. <groupId>org.apache.livy</groupId>
  29. <artifactId>livy-python-api</artifactId>
  30. <version>0.8.0-incubating-SNAPSHOT</version>
  31. <packaging>pom</packaging>
  32. <build>
  33. <plugins>
  34. <plugin>
  35. <groupId>org.codehaus.mojo</groupId>
  36. <artifactId>exec-maven-plugin</artifactId>
  37. <version>1.2.1</version>
  38. <executions>
  39. <execution>
  40. <id>python-api install</id>
  41. <phase>compile</phase>
  42. <goals>
  43. <goal>exec</goal>
  44. </goals>
  45. <configuration>
  46. <executable>python</executable>
  47. <arguments>
  48. <argument>setup.py</argument>
  49. <argument>sdist</argument>
  50. </arguments>
  51. </configuration>
  52. </execution>
  53. <execution>
  54. <id>python-api test</id>
  55. <phase>test</phase>
  56. <goals>
  57. <goal>exec</goal>
  58. </goals>
  59. <configuration>
  60. <executable>python</executable>
  61. <skip>${skipTests}</skip>
  62. <arguments>
  63. <argument>setup.py</argument>
  64. <argument>test</argument>
  65. </arguments>
  66. <environmentVariables>
  67. <TMPDIR>${project.build.directory}/tmp</TMPDIR>
  68. </environmentVariables>
  69. </configuration>
  70. </execution>
  71. <execution>
  72. <id>python-api verify</id>
  73. <phase>verify</phase>
  74. <goals>
  75. <goal>exec</goal>
  76. </goals>
  77. <configuration>
  78. <executable>flake8</executable>
  79. <skip>${skip}</skip>
  80. <arguments>
  81. <argument>--exclude=target,resources,.eggs</argument>
  82. <argument>--ignore=E127,E128</argument>
  83. <argument>.</argument>
  84. </arguments>
  85. </configuration>
  86. </execution>
  87. </executions>
  88. </plugin>
  89. <plugin>
  90. <groupId>org.apache.maven.plugins</groupId>
  91. <artifactId>maven-antrun-plugin</artifactId>
  92. <executions>
  93. <!-- Cleans up files that tests append to (because we have two test plugins). -->
  94. <execution>
  95. <id>python-api clean</id>
  96. <phase>clean</phase>
  97. <goals>
  98. <goal>run</goal>
  99. </goals>
  100. <configuration>
  101. <target>
  102. <delete file="${project.basedir}/dist" quiet="true" />
  103. <delete file="${project.basedir}/.eggs" quiet="true" />
  104. <delete file="${project.basedir}/src/main/python/*.egg-info" quiet="true" />
  105. </target>
  106. </configuration>
  107. </execution>
  108. </executions>
  109. </plugin>
  110. <plugin>
  111. <groupId>org.apache.maven.plugins</groupId>
  112. <artifactId>maven-surefire-plugin</artifactId>
  113. <configuration>
  114. <skipTests>true</skipTests>
  115. </configuration>
  116. </plugin>
  117. <plugin>
  118. <groupId>org.scalatest</groupId>
  119. <artifactId>scalatest-maven-plugin</artifactId>
  120. <configuration>
  121. <skipTests>true</skipTests>
  122. </configuration>
  123. </plugin>
  124. <plugin>
  125. <groupId>org.jacoco</groupId>
  126. <artifactId>jacoco-maven-plugin</artifactId>
  127. <configuration>
  128. <skip>true</skip>
  129. </configuration>
  130. </plugin>
  131. <plugin>
  132. <groupId>org.scalastyle</groupId>
  133. <artifactId>scalastyle-maven-plugin</artifactId>
  134. <configuration>
  135. <skip>true</skip>
  136. </configuration>
  137. </plugin>
  138. <plugin>
  139. <groupId>org.apache.maven.plugins</groupId>
  140. <artifactId>maven-checkstyle-plugin</artifactId>
  141. <configuration>
  142. <skip>true</skip>
  143. </configuration>
  144. </plugin>
  145. </plugins>
  146. </build>
  147. </project>