4 * ============LICENSE_START===================================================
5 * Copyright (c) 2018 Amdocs. All rights reserved.
6 * ===================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
8 * use this file except in compliance with the License. You may obtain a copy
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16 * License for the specific language governing permissions and limitations under
18 * ============LICENSE_END====================================================
22 <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">
23 <modelVersion>4.0.0</modelVersion>
24 <packaging>pom</packaging>
25 <groupId>org.onap.multicloud.aria</groupId>
26 <artifactId>ariarest</artifactId>
28 <version>0.1.0-SNAPSHOT</version>
29 <description>ARIA REST API wheel build</description>
31 <groupId>org.onap.multicloud.azure</groupId>
32 <artifactId>multicloud-azure</artifactId>
33 <version>1.1.0-SNAPSHOT</version>
37 <python_version>2</python_version>
38 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39 <wheel.name>${project.artifactId}-${project.version}-py${python_version}-none-any.whl</wheel.name>
40 <python.sourceDirectory>${project.basedir}/src/main/python/aria-rest</python.sourceDirectory>
41 <onap.nexus.pypiserver.baseurl>http://192.168.33.1:8081/repository/pypi-internal/</onap.nexus.pypiserver.baseurl>
42 <onap.nexus.pypiserver.serverid>ecomp-snapshots</onap.nexus.pypiserver.serverid>
47 <groupId>org.codehaus.mojo</groupId>
48 <artifactId>build-helper-maven-plugin</artifactId>
49 <version>3.0.0</version>
52 <id>write-python-version</id>
54 <goal>regex-property</goal>
56 <phase>initialize</phase>
58 <name>python_version</name>
59 <regex>-SNAPSHOT</regex>
60 <value>${project.version}</value>
61 <replacement>\.dev0</replacement>
62 <failIfNoMatch>false</failIfNoMatch>
68 <groupId>org.codehaus.mojo</groupId>
69 <artifactId>exec-maven-plugin</artifactId>
70 <version>1.6.0</version>
74 <phase>package</phase>
75 <goals><goal>exec</goal></goals>
77 <executable>python</executable>
79 <argument>${project.basedir}/build.py</argument>
81 <environmentVariables>
82 <MVN_PHASE>package</MVN_PHASE>
83 <WHEEL_NAME>${wheel.name}</WHEEL_NAME>
84 <INPUT_DIR>${project.basedir}/src/main/python/aria-rest</INPUT_DIR>
85 <OUTPUT_DIR>${project.build.directory}</OUTPUT_DIR>
86 </environmentVariables>
92 <goals><goal>exec</goal></goals>
94 <executable>python</executable>
96 <argument>${project.basedir}/build.py</argument>
98 <environmentVariables>
99 <MVN_PHASE>deploy</MVN_PHASE>
100 <PROJECT_VERSION>${project.version}</PROJECT_VERSION>
101 <DOCKERREGISTRY_SNAPSHOT>${onap.nexus.dockerregistry.snapshot}</DOCKERREGISTRY_SNAPSHOT>
102 <DOCKERREGISTRY_RELEASE>${onap.nexus.dockerregistry.release}</DOCKERREGISTRY_RELEASE>
103 <PYPI_SERVER_BASEURL>${onap.nexus.pypiserver.baseurl}</PYPI_SERVER_BASEURL>
104 <PYPI_SERVERID>${onap.nexus.pypiserver.serverid}</PYPI_SERVERID>
105 <WHEEL_PATH>${project.build.directory}/${wheel.name}</WHEEL_PATH>
106 </environmentVariables>