dfilppi | f41048c | 2017-09-07 02:33:40 +0000 | [diff] [blame] | 1 | <?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 Wagantall | 777f637 | 2017-11-20 11:10:28 -0800 | [diff] [blame] | 28 | <version>0.1.0-SNAPSHOT</version> |
dfilppi | f41048c | 2017-09-07 02:33:40 +0000 | [diff] [blame] | 29 | <description>ARIA REST API wheel build</description> |
| 30 | <parent> |
| 31 | <groupId>org.onap.oparent</groupId> |
| 32 | <artifactId>oparent</artifactId> |
Jessica Wagantall | 777f637 | 2017-11-20 11:10:28 -0800 | [diff] [blame] | 33 | <version>1.1.0-SNAPSHOT</version> |
dfilppi | f41048c | 2017-09-07 02:33:40 +0000 | [diff] [blame] | 34 | </parent> |
| 35 | |
dfilppi | f41048c | 2017-09-07 02:33:40 +0000 | [diff] [blame] | 36 | <properties> |
dfilppi | 18266f8 | 2017-12-26 21:54:15 +0000 | [diff] [blame] | 37 | <python_version>2</python_version> |
dfilppi | f41048c | 2017-09-07 02:33:40 +0000 | [diff] [blame] | 38 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
dfilppi | 18266f8 | 2017-12-26 21:54:15 +0000 | [diff] [blame] | 39 | <wheel.name>${project.artifactId}-${project.version}-py${python_version}-none-any.whl</wheel.name> |
dfilppi | f41048c | 2017-09-07 02:33:40 +0000 | [diff] [blame] | 40 | <python.sourceDirectory>${project.basedir}/src/main/python/aria-rest</python.sourceDirectory> |
dfilppi | 5f2f9a7 | 2018-03-19 03:27:13 +0000 | [diff] [blame] | 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> --> |
dfilppi | f41048c | 2017-09-07 02:33:40 +0000 | [diff] [blame] | 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> |
dfilppi | f41048c | 2017-09-07 02:33:40 +0000 | [diff] [blame] | 65 | </executions> |
| 66 | </plugin> |
| 67 | <plugin> |
dfilppi | 18266f8 | 2017-12-26 21:54:15 +0000 | [diff] [blame] | 68 | <groupId>org.codehaus.mojo</groupId> |
| 69 | <artifactId>exec-maven-plugin</artifactId> |
| 70 | <version>1.6.0</version> |
dfilppi | f41048c | 2017-09-07 02:33:40 +0000 | [diff] [blame] | 71 | <executions> |
| 72 | <execution> |
dfilppi | 18266f8 | 2017-12-26 21:54:15 +0000 | [diff] [blame] | 73 | <id>package</id> |
| 74 | <phase>package</phase> |
| 75 | <goals><goal>exec</goal></goals> |
| 76 | <configuration> |
| 77 | <executable>python</executable> |
| 78 | <arguments> |
dfilppi | d87a465 | 2017-12-26 23:28:12 +0000 | [diff] [blame] | 79 | <argument>${project.basedir}/build.py</argument> |
dfilppi | 18266f8 | 2017-12-26 21:54:15 +0000 | [diff] [blame] | 80 | </arguments> |
| 81 | <environmentVariables> |
| 82 | <MVN_PHASE>package</MVN_PHASE> |
| 83 | <WHEEL_NAME>${wheel.name}</WHEEL_NAME> |
dfilppi | d87a465 | 2017-12-26 23:28:12 +0000 | [diff] [blame] | 84 | <INPUT_DIR>${project.basedir}/src/main/python/aria-rest</INPUT_DIR> |
dfilppi | 18266f8 | 2017-12-26 21:54:15 +0000 | [diff] [blame] | 85 | <OUTPUT_DIR>${project.build.directory}</OUTPUT_DIR> |
| 86 | </environmentVariables> |
| 87 | </configuration> |
dfilppi | f41048c | 2017-09-07 02:33:40 +0000 | [diff] [blame] | 88 | </execution> |
subhash kumar singh | f09b534 | 2018-03-21 10:09:33 +0000 | [diff] [blame] | 89 | <!--execution> |
dfilppi | 18266f8 | 2017-12-26 21:54:15 +0000 | [diff] [blame] | 90 | <id>deploy</id> |
| 91 | <phase>deploy</phase> |
| 92 | <goals><goal>exec</goal></goals> |
| 93 | <configuration> |
| 94 | <executable>python</executable> |
| 95 | <arguments> |
dfilppi | d87a465 | 2017-12-26 23:28:12 +0000 | [diff] [blame] | 96 | <argument>${project.basedir}/build.py</argument> |
dfilppi | 18266f8 | 2017-12-26 21:54:15 +0000 | [diff] [blame] | 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> |
subhash kumar singh | f09b534 | 2018-03-21 10:09:33 +0000 | [diff] [blame] | 108 | </execution--> |
dfilppi | 18266f8 | 2017-12-26 21:54:15 +0000 | [diff] [blame] | 109 | </executions> |
dfilppi | f41048c | 2017-09-07 02:33:40 +0000 | [diff] [blame] | 110 | </plugin> |
| 111 | </plugins> |
| 112 | </build> |
| 113 | </project> |
| 114 | |