blob: 87326ff01cb8e982fa34e71bbe75d8f392704a12 [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">
dfilppi01cae7a2018-03-17 05:02:42 +00003 <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>
dfilppi01cae7a2018-03-17 05:02:42 +00008 <description>ARIA MultiVIM plugin</description>
9 <parent>
10 <groupId>org.onap.so</groupId>
11 <artifactId>aria</artifactId>
12 <version>1.2.0-SNAPSHOT</version>
13 <relativePath>../pom.xml</relativePath>
14 </parent>
dfilppidf40f6f2017-08-31 00:15:51 +000015
dfilppi01cae7a2018-03-17 05:02:42 +000016 <properties>
17 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18 <python_version>2.7</python_version>
19 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20 <wheel.name>${project.name}-${project.version}-py2-none-any.whl</wheel.name>
21 <python.sourceDirectory>${project.basedir}/src/main/python/multivim-plugin</python.sourceDirectory>
22 <sonar.exclusions>**/*.py</sonar.exclusions>
23 <onap.nexus.pypiserver.baseurl>http://192.168.33.1:8081/repository/pypi-internal/</onap.nexus.pypiserver.baseurl>
24 <onap.nexus.pypiserver.serverid>ecomp-snapshots</onap.nexus.pypiserver.serverid>
25 </properties>
dfilppidf40f6f2017-08-31 00:15:51 +000026
dfilppi01cae7a2018-03-17 05:02:42 +000027 <build>
28 <plugins>
29 <plugin>
30 <groupId>org.codehaus.mojo</groupId>
31 <artifactId>build-helper-maven-plugin</artifactId>
32 <version>3.0.0</version>
33 <executions>
34 <execution>
35 <id>write-python-version</id>
36 <goals>
37 <goal>regex-property</goal>
38 </goals>
39 <phase>initialize</phase>
40 <configuration>
41 <name>python_version</name>
42 <regex>-SNAPSHOT</regex>
43 <value>${project.version}</value>
44 <replacement>\.dev0</replacement>
45 <failIfNoMatch>false</failIfNoMatch>
46 </configuration>
47 </execution>
48 </executions>
49 </plugin>
50 <plugin>
51 <groupId>org.codehaus.mojo</groupId>
52 <artifactId>exec-maven-plugin</artifactId>
53 <version>1.6.0</version>
54 <executions>
55 <execution>
56 <id>package</id>
57 <phase>package</phase>
58 <goals><goal>exec</goal></goals>
59 <configuration>
60 <executable>python</executable>
61 <arguments>
62 <argument>${project.basedir}/build.py</argument>
63 </arguments>
64 <environmentVariables>
65 <MVN_PHASE>package</MVN_PHASE>
66 <WHEEL_NAME>${wheel.name}</WHEEL_NAME>
67 <INPUT_DIR>${python.sourceDirectory}</INPUT_DIR>
68 <OUTPUT_DIR>${project.build.directory}</OUTPUT_DIR>
69 </environmentVariables>
70 </configuration>
71 </execution>
72 <execution>
73 <id>deploy</id>
74 <phase>deploy</phase>
75 <goals><goal>exec</goal></goals>
76 <configuration>
77 <executable>python</executable>
78 <arguments>
79 <argument>${project.basedir}/build.py</argument>
80 </arguments>
81 <environmentVariables>
82 <MVN_PHASE>deploy</MVN_PHASE>
83 <PROJECT_VERSION>${project.version}</PROJECT_VERSION>
84 <DOCKERREGISTRY_SNAPSHOT>${onap.nexus.dockerregistry.snapshot}</DOCKERREGISTRY_SNAPSHOT>
85 <DOCKERREGISTRY_RELEASE>${onap.nexus.dockerregistry.release}</DOCKERREGISTRY_RELEASE>
86 <PYPI_SERVER_BASEURL>${onap.nexus.pypiserver.baseurl}</PYPI_SERVER_BASEURL>
87 <PYPI_SERVERID>${onap.nexus.pypiserver.serverid}</PYPI_SERVERID>
88 <WHEEL_PATH>${project.build.directory}/${wheel.name}</WHEEL_PATH>
89 </environmentVariables>
90 </configuration>
91 </execution>
92 </executions>
93 </plugin>
94 </plugins>
95 </build>
dfilppidf40f6f2017-08-31 00:15:51 +000096</project>
dfilppi01cae7a2018-03-17 05:02:42 +000097