blob: fc6af5abf7b37950d1d0fa8bfba59df972706503 [file] [log] [blame]
dfilppif41048c2017-09-07 02:33:40 +00001<?xml version="1.0"?>
2<!--
3 /*
4 * ============LICENSE_START===================================================
5 * Copyright (c) 2017 Cloudify.co. 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.aria</groupId>
26 <artifactId>ariarest</artifactId>
27 <name>ariarest</name>
Jessica Wagantall777f6372017-11-20 11:10:28 -080028 <version>0.1.0-SNAPSHOT</version>
dfilppif41048c2017-09-07 02:33:40 +000029 <description>ARIA REST API wheel build</description>
30 <parent>
31 <groupId>org.onap.oparent</groupId>
32 <artifactId>oparent</artifactId>
Rob Daughertyb4473da2018-03-27 14:32:11 -040033 <version>1.1.0</version>
dfilppif41048c2017-09-07 02:33:40 +000034 </parent>
35
dfilppif41048c2017-09-07 02:33:40 +000036 <properties>
dfilppi18266f82017-12-26 21:54:15 +000037 <python_version>2</python_version>
dfilppif41048c2017-09-07 02:33:40 +000038 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
dfilppi18266f82017-12-26 21:54:15 +000039 <wheel.name>${project.artifactId}-${project.version}-py${python_version}-none-any.whl</wheel.name>
dfilppif41048c2017-09-07 02:33:40 +000040 <python.sourceDirectory>${project.basedir}/src/main/python/aria-rest</python.sourceDirectory>
dfilppi5f2f9a72018-03-19 03:27:13 +000041 <!-- <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> -->
dfilppif41048c2017-09-07 02:33:40 +000043 </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>
dfilppif41048c2017-09-07 02:33:40 +000065 </executions>
66 </plugin>
67 <plugin>
dfilppi18266f82017-12-26 21:54:15 +000068 <groupId>org.codehaus.mojo</groupId>
69 <artifactId>exec-maven-plugin</artifactId>
70 <version>1.6.0</version>
dfilppif41048c2017-09-07 02:33:40 +000071 <executions>
72 <execution>
dfilppi18266f82017-12-26 21:54:15 +000073 <id>package</id>
74 <phase>package</phase>
75 <goals><goal>exec</goal></goals>
76 <configuration>
77 <executable>python</executable>
78 <arguments>
dfilppid87a4652017-12-26 23:28:12 +000079 <argument>${project.basedir}/build.py</argument>
dfilppi18266f82017-12-26 21:54:15 +000080 </arguments>
81 <environmentVariables>
82 <MVN_PHASE>package</MVN_PHASE>
83 <WHEEL_NAME>${wheel.name}</WHEEL_NAME>
dfilppid87a4652017-12-26 23:28:12 +000084 <INPUT_DIR>${project.basedir}/src/main/python/aria-rest</INPUT_DIR>
dfilppi18266f82017-12-26 21:54:15 +000085 <OUTPUT_DIR>${project.build.directory}</OUTPUT_DIR>
86 </environmentVariables>
87 </configuration>
dfilppif41048c2017-09-07 02:33:40 +000088 </execution>
subhash kumar singhf09b5342018-03-21 10:09:33 +000089 <!--execution>
dfilppi18266f82017-12-26 21:54:15 +000090 <id>deploy</id>
91 <phase>deploy</phase>
92 <goals><goal>exec</goal></goals>
93 <configuration>
94 <executable>python</executable>
95 <arguments>
dfilppid87a4652017-12-26 23:28:12 +000096 <argument>${project.basedir}/build.py</argument>
dfilppi18266f82017-12-26 21:54:15 +000097 </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>
subhash kumar singhf09b5342018-03-21 10:09:33 +0000108 </execution-->
dfilppi18266f82017-12-26 21:54:15 +0000109 </executions>
dfilppif41048c2017-09-07 02:33:40 +0000110 </plugin>
111 </plugins>
112 </build>
113</project>
114