3 Copyright (c) 2018 Intel Corporation. All rights reserved.
5 Licensed under the Apache License, Version 2.0 (the "License"); you may
6 not use this file except in compliance with the License. You may obtain
7 a copy of the License at
9 http://www.apache.org/licenses/LICENSE-2.0
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 License for the specific language governing permissions and limitations
17 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
18 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd
19 http://maven.apache.org/POM/4.0.0 ">
20 <modelVersion>4.0.0</modelVersion>
21 <packaging>pom</packaging>
24 <groupId>org.onap.oparent</groupId>
25 <artifactId>oparent-python</artifactId>
26 <version>3.0.0</version>
29 <groupId>org.onap.optf.osdf</groupId>
30 <artifactId>optf-osdf</artifactId>
31 <name>optf-osdf</name>
32 <version>3.0.3-SNAPSHOT</version>
33 <description>Optimization Service Design Framework</description>
36 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
37 <sonar.sources>.</sonar.sources>
38 <sonar.junit.reportsPath>xunit-results.xml</sonar.junit.reportsPath>
39 <sonar.python.coverage.reportPaths>coverage.xml</sonar.python.coverage.reportPaths>
40 <sonar.language>py</sonar.language>
41 <sonar.pluginname>python</sonar.pluginname>
42 <sonar.inclusions>**/**.py,osdfapp.py</sonar.inclusions>
43 <sonar.exclusions>test/**.py,docs/**.py</sonar.exclusions>
44 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
45 <osdf.build.timestamp>${maven.build.timestamp}</osdf.build.timestamp>
46 <osdf.project.version>${project.version}</osdf.project.version>
47 <osdf.docker.repository>nexus3.onap.org:10003</osdf.docker.repository>
48 <image.namespace>${osdf.docker.repository}/onap/optf-osdf</image.namespace>
49 <opteng.namespace>${osdf.docker.repository}/onap/optf-opteng</opteng.namespace>
54 <!-- triggers tox test for sonar -->
56 <artifactId>exec-maven-plugin</artifactId>
57 <groupId>org.codehaus.mojo</groupId>
60 <artifactId>maven-assembly-plugin</artifactId>
62 <appendAssemblyId>false</appendAssemblyId>
64 <descriptor>assembly.xml</descriptor>
69 <id>make-assembly</id>
70 <phase>package</phase>
79 <groupId>org.apache.maven.plugins</groupId>
80 <artifactId>maven-release-plugin</artifactId>
83 <groupId>org.apache.maven.plugins</groupId>
84 <artifactId>maven-deploy-plugin</artifactId>
85 <version>2.8</version>
87 <retryFailedDeploymentCount>2</retryFailedDeploymentCount>
91 <groupId>org.codehaus.groovy.maven</groupId>
92 <artifactId>gmaven-plugin</artifactId>
93 <version>1.0</version>
96 <phase>validate</phase>
101 <source>${project.basedir}/script/TagVersion.groovy</source>
107 <groupId>io.fabric8</groupId>
108 <artifactId>docker-maven-plugin</artifactId>
109 <version>0.26.0</version>
111 <verbose>true</verbose>
112 <apiVersion>1.23</apiVersion>
115 <name>${image.namespace}</name>
116 <alias>optf-osdf</alias>
118 <cleanup>true</cleanup>
121 <tag>${project.docker.latesttagtimestamp.version}</tag>
122 <tag>${project.docker.latesttag.version}</tag>
125 <dockerFile>${project.basedir}/docker/osdf/Dockerfile</dockerFile>
127 <descriptor>${project.basedir}/docker/osdf/assembly/osdf-files.xml</descriptor>
128 <name>onap-osdf-tm</name>
131 <MVN_ARTIFACT_VERSION>${project.version}</MVN_ARTIFACT_VERSION>
132 <REPO>${project.repo}</REPO>
134 <!-- plugin cannot handle empty (no proxy) arguments
135 <http_proxy_arg>${docker.http_proxy}</http_proxy_arg>
136 <https_proxy_arg>${docker.https_proxy}</https_proxy_arg>
142 <name>${opteng.namespace}</name>
143 <alias>optf-opteng</alias>
145 <cleanup>true</cleanup>
148 <tag>${project.docker.latesttagtimestamp.version}</tag>
149 <tag>${project.docker.latesttag.version}</tag>
152 <dockerFile>${project.basedir}/docker/opteng/Dockerfile</dockerFile>
154 <descriptor>${project.basedir}/docker/opteng/assembly/osdf-files.xml</descriptor>
155 <name>onap-osdf-tm</name>
158 <MVN_ARTIFACT_VERSION>${project.version}</MVN_ARTIFACT_VERSION>
159 <REPO>${project.repo}</REPO>
161 <!-- plugin cannot handle empty (no proxy) arguments
162 <http_proxy_arg>${docker.http_proxy}</http_proxy_arg>
163 <https_proxy_arg>${docker.https_proxy}</https_proxy_arg>
172 <id>generate-images</id>
173 <phase>install</phase>
180 <phase>deploy</phase>
186 <image>${image.namespace}:%l</image>