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
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.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.oparent</groupId>
32 <artifactId>oparent</artifactId>
33 <version>1.1.0-SNAPSHOT</version>
39 <url>https://jitpack.io</url>
44 <python_version>2.7</python_version>
45 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
46 <wheel.name>${project.artifactId}-${python_version}-py2-none-any.whl</wheel.name>
47 <python.sourceDirectory>${project.basedir}/src/main/python/aria-rest</python.sourceDirectory>
52 <groupId>org.codehaus.mojo</groupId>
53 <artifactId>build-helper-maven-plugin</artifactId>
54 <version>3.0.0</version>
57 <id>write-python-version</id>
59 <goal>regex-property</goal>
61 <phase>initialize</phase>
63 <name>python_version</name>
64 <regex>-SNAPSHOT</regex>
65 <value>${project.version}</value>
66 <replacement>\.dev0</replacement>
67 <failIfNoMatch>false</failIfNoMatch>
71 <id>attach-artifacts</id>
72 <phase>package</phase>
74 <goal>attach-artifact</goal>
79 <file>${project.build.directory}/maven-python/dist/${wheel.name}</file>
88 <groupId>com.github.UltimateDogg</groupId>
89 <artifactId>maven-python-distribute-plugin</artifactId>
90 <version>0.2.0</version>
92 <packageVersion>${python_version}</packageVersion>
93 <sourceDirectory>${python.sourceDirectory}</sourceDirectory>
94 <distributionType>wheel</distributionType>
99 <phase>prepare-package</phase>
106 <phase>process-sources</phase>
108 <goal>process-sources</goal>