5236c6a791025a5da84c2ab4fac401ade8c80a6c
[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.1.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.1.0-SNAPSHOT</version>
15                 <relativePath>../oparent</relativePath>
16         </parent>
17         <properties>
18                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19         </properties>
20         <repositories>
21                 <repository>
22                     <id>jitpack.io</id>
23                     <url>https://jitpack.io</url>
24                 </repository>
25         </repositories> 
26     <pluginRepositories>
27         <pluginRepository>
28                 <id>jitpack.io</id>
29                 <url>https://jitpack.io</url>
30         </pluginRepository>
31     </pluginRepositories>       
32         <build>
33                 <pluginManagement>
34                         <plugins>
35                                 <plugin>
36                                         <groupId>org.codehaus.mojo</groupId>
37                                         <artifactId>build-helper-maven-plugin</artifactId>
38                                         <version>3.0.0</version>
39                                         <executions>
40                                                 <execution>
41                                                         <id>write-python-version</id>
42                                                         <goals>
43                                                                 <goal>regex-property</goal>
44                                                         </goals>
45                                                         <phase>initialize</phase>
46                                                         <configuration>
47                                                                 <name>python_version</name>
48                                                                 <regex>-SNAPSHOT</regex>
49                                                                 <value>${project.version}</value>
50                                                                 <replacement>\.dev0</replacement>
51                                                                 <failIfNoMatch>false</failIfNoMatch>
52                                                         </configuration>
53                                                 </execution>
54                                                 <execution>
55                                                         <id>attach-artifacts</id>
56                                                         <phase>package</phase>
57                                                         <goals>
58                                                                 <goal>attach-artifact</goal>
59                                                         </goals>
60                                                 </execution>
61                                         </executions>
62                                 </plugin>
63                                 <plugin>
64                                         <groupId>com.github.UltimateDogg</groupId>
65                                         <artifactId>maven-python-distribute-plugin</artifactId>
66                                         <version>0.2.0</version>
67                                         <configuration>
68                                                 <packageVersion>${python_version}</packageVersion>
69                                                 <distributionType>wheel</distributionType>
70                                         </configuration>
71                                         <executions>
72                                                 <execution>
73                                                         <id>package</id>
74                                                         <phase>prepare-package</phase>
75                                                         <goals>
76                                                                 <goal>package</goal>
77                                                         </goals>
78                                                 </execution>
79                                                 <execution>
80                                                         <id>process</id>
81                                                         <phase>process-sources</phase>
82                                                         <goals>
83                                                                 <goal>process-sources</goal>
84                                                         </goals>
85                                                 </execution>
86                                         </executions>
87                                 </plugin>
88                                 <plugin>
89                                         <artifactId>exec-maven-plugin</artifactId>
90                                         <groupId>org.codehaus.mojo</groupId>
91                                         <version>1.1.1</version>
92                                         <executions>
93                                                 <execution>
94                                                         <id>tox-test</id>
95                                                         <phase>test</phase>
96                                                         <goals>
97                                                                 <goal>exec</goal>
98                                                         </goals>
99                                                         <configuration>
100                                                                 <executable>tox</executable>
101                                                         </configuration>
102                                                 </execution>
103                                         </executions>
104                                 </plugin>
105                         </plugins>
106                 </pluginManagement>
107                 <plugins>
108                         <plugin>
109                                 <groupId>org.codehaus.mojo</groupId>
110                                 <artifactId>build-helper-maven-plugin</artifactId>
111                                 <version>3.0.0</version>
112                                 <executions>
113                                         <execution>
114                                                 <id>write-python-version</id>
115                                                 <goals>
116                                                         <goal>regex-property</goal>
117                                                 </goals>
118                                                 <phase>initialize</phase>
119                                                 <configuration>
120                                                         <name>python_version</name>
121                                                         <regex>-SNAPSHOT</regex>
122                                                         <value>${project.version}</value>
123                                                         <replacement>\.dev0</replacement>
124                                                         <failIfNoMatch>false</failIfNoMatch>
125                                                 </configuration>
126                                         </execution>
127                                         <execution>
128                                                 <id>attach-artifacts</id>
129                                                 <phase>package</phase>
130                                                 <goals>
131                                                         <goal>attach-artifact</goal>
132                                                 </goals>
133                                                 <configuration>
134                                                         <artifacts>
135                                                         </artifacts>
136                                                         <skipAttach>true</skipAttach>
137                                                 </configuration>
138                                         </execution>
139                                 </executions>
140                         </plugin>
141                 </plugins>
142         </build>
143         <dependencies>
144                 <dependency>
145                         <groupId>com.github.UltimateDogg</groupId>
146                         <artifactId>maven-python-distribute-plugin</artifactId>
147                         <version>0.2.0</version>
148                 </dependency>
149         </dependencies>
150 </project>