blob: d1ade4c88fcbfc72b39b353252be73e21999ef48 [file] [log] [blame]
dfilppidf40f6f2017-08-31 00:15:51 +00001<?xml version="1.0"?>
2<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">
3 <modelVersion>4.0.0</modelVersion>
4 <packaging>pom</packaging>
5 <groupId>org.onap.so</groupId>
6 <artifactId>multivim-plugin</artifactId>
7 <name>multivim-plugin</name>
8 <version>0.0.1-SNAPSHOT</version>
9 <description>ARIA MultiVIM plugin</description>
10 <parent>
11 <groupId>org.onap.oparent</groupId>
12 <artifactId>oparent</artifactId>
13 <version>1.0.0-SNAPSHOT</version>
14 </parent>
15
16 <pluginRepositories>
17 <pluginRepository>
18 <id>jitpack.io</id>
19 <url>https://jitpack.io</url>
20 </pluginRepository>
21 </pluginRepositories>
22
23 <properties>
24 <python_version>2.7</python_version>
25 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
26 <wheel.name>${project.artifactId}-${python_version}-py2-none-any.whl</wheel.name>
27 <python.sourceDirectory>${project.basedir}/src/main/python/multivim-plugin</python.sourceDirectory>
28 </properties>
29 <build>
30 <plugins>
31 <plugin>
32 <groupId>org.codehaus.mojo</groupId>
33 <artifactId>build-helper-maven-plugin</artifactId>
34 <version>3.0.0</version>
35 <executions>
36 <execution>
37 <id>write-python-version</id>
38 <goals>
39 <goal>regex-property</goal>
40 </goals>
41 <phase>initialize</phase>
42 <configuration>
43 <name>python_version</name>
44 <regex>-SNAPSHOT</regex>
45 <value>${project.version}</value>
46 <replacement>\.dev0</replacement>
47 <failIfNoMatch>false</failIfNoMatch>
48 </configuration>
49 </execution>
50 <execution>
51 <id>attach-artifacts</id>
52 <phase>package</phase>
53 <goals>
54 <goal>attach-artifact</goal>
55 </goals>
56 <configuration>
57 <artifacts>
58 <artifact>
59 <file>${project.build.directory}/maven-python/dist/${wheel.name}</file>
60 <type>whl</type>
61 </artifact>
62 </artifacts>
63 </configuration>
64 </execution>
65 </executions>
66 </plugin>
67 <plugin>
68 <groupId>com.github.UltimateDogg</groupId>
69 <artifactId>maven-python-distribute-plugin</artifactId>
70 <version>0.2.0</version>
71 <configuration>
72 <packageVersion>${python_version}</packageVersion>
73 <sourceDirectory>${python.sourceDirectory}</sourceDirectory>
74 <distributionType>wheel</distributionType>
75 </configuration>
76 <executions>
77 <execution>
78 <id>package</id>
79 <phase>prepare-package</phase>
80 <goals>
81 <goal>package</goal>
82 </goals>
83 </execution>
84 <execution>
85 <id>process</id>
86 <phase>process-sources</phase>
87 <goals>
88 <goal>process-sources</goal>
89 </goals>
90 </execution>
91 </executions>
92 </plugin>
93 </plugins>
94 </build>
95</project>