Azure-plugin not sending REST calls to Azure cloud
[multicloud/azure.git] / azure / aria / aria-rest-server / pom.xml
1 <?xml version="1.0"?>
2 <!--
3     /*
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
9     * of the License at
10     *
11     *       http://www.apache.org/licenses/LICENSE-2.0
12     *
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
17     * the License.
18     * ============LICENSE_END====================================================
19     */
20   -->
21
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>
27   <name>ariarest</name>
28   <version>0.1.0-SNAPSHOT</version>
29   <description>ARIA REST API wheel build</description>
30   <parent>
31     <groupId>org.onap.multicloud.azure</groupId>
32     <artifactId>multicloud-azure</artifactId>
33     <version>1.1.0-SNAPSHOT</version>
34   </parent>
35
36   <properties>
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>
43   </properties>
44   <build>
45     <plugins>
46       <plugin>
47         <groupId>org.codehaus.mojo</groupId>
48         <artifactId>build-helper-maven-plugin</artifactId>
49         <version>3.0.0</version>
50         <executions>
51           <execution>
52             <id>write-python-version</id>
53             <goals>
54               <goal>regex-property</goal>
55             </goals>
56             <phase>initialize</phase>
57             <configuration>
58               <name>python_version</name>
59               <regex>-SNAPSHOT</regex>
60               <value>${project.version}</value>
61               <replacement>\.dev0</replacement>
62               <failIfNoMatch>false</failIfNoMatch>
63             </configuration>
64           </execution>
65         </executions>
66       </plugin>
67       <plugin>
68         <groupId>org.codehaus.mojo</groupId>
69         <artifactId>exec-maven-plugin</artifactId>
70         <version>1.6.0</version>
71         <executions>
72           <execution>
73             <id>package</id>
74             <phase>package</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>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>
87             </configuration>
88           </execution>
89           <execution>
90             <id>deploy</id>
91             <phase>deploy</phase>
92             <goals><goal>exec</goal></goals>
93             <configuration>
94               <executable>python</executable>
95               <arguments>
96                 <argument>${project.basedir}/build.py</argument>
97               </arguments>
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>
107             </configuration>
108           </execution>   
109         </executions>
110       </plugin>
111     </plugins>
112   </build>
113 </project>
114