[TEST-48] create a parent for python in oparent
[oparent.git] / oparent-python / pom.xml
1 <?xml version="1.0"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4         <modelVersion>4.0.0</modelVersion>
5         <packaging>pom</packaging>
6         <groupId>org.onap.oparent</groupId>
7         <artifactId>oparent-python</artifactId>
8         <version>1.0.0-SNAPSHOT</version>
9         <name>oparent/oparent-python</name>
10         <description>parent/oparent-python</description>
11         <parent>
12                 <groupId>org.onap.oparent</groupId>
13                 <artifactId>oparent</artifactId>
14                 <version>1.0.0-SNAPSHOT</version>
15         </parent>
16         <properties>
17                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18         </properties>
19         <build>
20                 <pluginManagement>
21                         <plugins>
22                                 <plugin>
23                                         <groupId>org.codehaus.mojo</groupId>
24                                         <artifactId>build-helper-maven-plugin</artifactId>
25                                         <version>3.0.0</version>
26                                         <executions>
27                                                 <execution>
28                                                         <id>write-python-version</id>
29                                                         <goals>
30                                                                 <goal>regex-property</goal>
31                                                         </goals>
32                                                         <phase>initialize</phase>
33                                                         <configuration>
34                                                                 <name>python_version</name>
35                                                                 <regex>-SNAPSHOT</regex>
36                                                                 <value>${project.version}</value>
37                                                                 <replacement>\.dev0</replacement>
38                                                                 <failIfNoMatch>false</failIfNoMatch>
39                                                         </configuration>
40                                                 </execution>
41                                                 <execution>
42                                                         <id>attach-artifacts</id>
43                                                         <phase>package</phase>
44                                                         <goals>
45                                                                 <goal>attach-artifact</goal>
46                                                         </goals>
47                                                 </execution>
48                                         </executions>
49                                 </plugin>
50                                 <plugin>
51                                         <groupId>com.github.UltimateDogg</groupId>
52                                         <artifactId>maven-python-distribute-plugin</artifactId>
53                                         <version>0.2.0</version>
54                                         <configuration>
55                                                 <packageVersion>${python_version}</packageVersion>
56                                                 <distributionType>wheel</distributionType>
57                                         </configuration>
58                                         <executions>
59                                                 <execution>
60                                                         <id>package</id>
61                                                         <phase>prepare-package</phase>
62                                                         <goals>
63                                                                 <goal>package</goal>
64                                                         </goals>
65                                                 </execution>
66                                                 <execution>
67                                                         <id>process</id>
68                                                         <phase>process-sources</phase>
69                                                         <goals>
70                                                                 <goal>process-sources</goal>
71                                                         </goals>
72                                                 </execution>
73                                         </executions>
74                                 </plugin>
75                                 <plugin>
76                                         <artifactId>exec-maven-plugin</artifactId>
77                                         <groupId>org.codehaus.mojo</groupId>
78                                         <version>1.1.1</version>
79                                         <executions>
80                                                 <execution>
81                                                         <id>tox-test</id>
82                                                         <phase>test</phase>
83                                                         <goals>
84                                                                 <goal>exec</goal>
85                                                         </goals>
86                                                         <configuration>
87                                                                 <executable>tox</executable>
88                                                         </configuration>
89                                                 </execution>
90                                         </executions>
91                                 </plugin>
92                         </plugins>
93                 </pluginManagement>
94                 <plugins>
95                         <plugin>
96                                 <groupId>org.codehaus.mojo</groupId>
97                                 <artifactId>build-helper-maven-plugin</artifactId>
98                                 <version>3.0.0</version>
99                                 <executions>
100                                         <execution>
101                                                 <id>write-python-version</id>
102                                                 <goals>
103                                                         <goal>regex-property</goal>
104                                                 </goals>
105                                                 <phase>initialize</phase>
106                                                 <configuration>
107                                                         <name>python_version</name>
108                                                         <regex>-SNAPSHOT</regex>
109                                                         <value>${project.version}</value>
110                                                         <replacement>\.dev0</replacement>
111                                                         <failIfNoMatch>false</failIfNoMatch>
112                                                 </configuration>
113                                         </execution>
114                                         <execution>
115                                                 <id>attach-artifacts</id>
116                                                 <phase>package</phase>
117                                                 <goals>
118                                                         <goal>attach-artifact</goal>
119                                                 </goals>
120                                                 <configuration>
121                                                         <artifacts>
122                                                         </artifacts>
123                                                         <skipAttach>true</skipAttach>
124                                                 </configuration>
125                                         </execution>
126                                 </executions>
127                         </plugin>
128                 </plugins>
129         </build>
130         <dependencies>
131                 <dependency>
132                         <groupId>com.github.UltimateDogg</groupId>
133                         <artifactId>maven-python-distribute-plugin</artifactId>
134                         <version>0.2.0</version>
135                 </dependency>
136         </dependencies>
137 </project>