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