pom.xml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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"
  19. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  20. <modelVersion>4.0.0</modelVersion>
  21. <parent>
  22. <groupId>org.apache.dolphinscheduler</groupId>
  23. <artifactId>dolphinscheduler</artifactId>
  24. <version>dev-SNAPSHOT</version>
  25. </parent>
  26. <artifactId>dolphinscheduler-python</artifactId>
  27. <name>${project.artifactId}</name>
  28. <packaging>jar</packaging>
  29. <profiles>
  30. <profile>
  31. <id>python</id>
  32. <build>
  33. <plugins>
  34. <plugin>
  35. <groupId>org.codehaus.mojo</groupId>
  36. <artifactId>exec-maven-plugin</artifactId>
  37. <executions>
  38. <execution>
  39. <id>python-api-prepare</id>
  40. <phase>prepare-package</phase>
  41. <goals>
  42. <goal>exec</goal>
  43. </goals>
  44. <configuration>
  45. <executable>python</executable>
  46. <workingDirectory>${project.basedir}/pydolphinscheduler</workingDirectory>
  47. <arguments>
  48. <argument>-m</argument>
  49. <argument>pip</argument>
  50. <argument>install</argument>
  51. <argument>--upgrade</argument>
  52. <argument>pip</argument>
  53. <argument>.[build]</argument>
  54. </arguments>
  55. </configuration>
  56. </execution>
  57. <execution>
  58. <id>python-api-clean</id>
  59. <phase>prepare-package</phase>
  60. <goals>
  61. <goal>exec</goal>
  62. </goals>
  63. <configuration>
  64. <executable>python</executable>
  65. <workingDirectory>${project.basedir}/pydolphinscheduler</workingDirectory>
  66. <arguments>
  67. <argument>setup.py</argument>
  68. <argument>pre_clean</argument>
  69. </arguments>
  70. </configuration>
  71. </execution>
  72. <execution>
  73. <id>python-api-build</id>
  74. <phase>prepare-package</phase>
  75. <goals>
  76. <goal>exec</goal>
  77. </goals>
  78. <configuration>
  79. <executable>python</executable>
  80. <workingDirectory>${project.basedir}/pydolphinscheduler</workingDirectory>
  81. <arguments>
  82. <argument>-m</argument>
  83. <argument>build</argument>
  84. </arguments>
  85. </configuration>
  86. </execution>
  87. <execution>
  88. <id>sign-source</id>
  89. <phase>prepare-package</phase>
  90. <goals>
  91. <goal>exec</goal>
  92. </goals>
  93. <configuration>
  94. <skip>${python.sign.skip}</skip>
  95. <executable>bash</executable>
  96. <workingDirectory>${project.basedir}/pydolphinscheduler</workingDirectory>
  97. <arguments>
  98. <argument>-c</argument>
  99. <!-- We use `bash -c` here cause plugin exec-maven-plugin do not support wildcard-->
  100. <argument>gpg --armor --sign dist/*.tar.gz</argument>
  101. </arguments>
  102. </configuration>
  103. </execution>
  104. <execution>
  105. <id>sign-wheel</id>
  106. <phase>prepare-package</phase>
  107. <goals>
  108. <goal>exec</goal>
  109. </goals>
  110. <configuration>
  111. <skip>${python.sign.skip}</skip>
  112. <executable>bash</executable>
  113. <workingDirectory>${project.basedir}/pydolphinscheduler</workingDirectory>
  114. <arguments>
  115. <argument>-c</argument>
  116. <!-- We use `bash -c` here cause plugin exec-maven-plugin do not support wildcard-->
  117. <argument>gpg --armor --sign dist/*.whl</argument>
  118. </arguments>
  119. </configuration>
  120. </execution>
  121. </executions>
  122. </plugin>
  123. </plugins>
  124. </build>
  125. </profile>
  126. </profiles>
  127. </project>