Setting the python oparent to 3.0.0 for osdf
[optf/osdf.git] / pom.xml
1 <?xml version="1.0"?>
2 <!--
3     Copyright (c) 2018 Intel Corporation. All rights reserved.
4
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
8
9         http://www.apache.org/licenses/LICENSE-2.0
10
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
15     under the License.
16 -->
17 <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">
18     <modelVersion>4.0.0</modelVersion>
19     <packaging>pom</packaging>
20
21     <parent>
22         <groupId>org.onap.oparent</groupId>
23         <artifactId>oparent-python</artifactId>
24         <version>3.0.0</version>
25     </parent>
26
27     <groupId>org.onap.optf.osdf</groupId>
28     <artifactId>optf-osdf</artifactId>
29     <name>optf-osdf</name>
30     <version>1.3.4-SNAPSHOT</version>
31     <description>Optimization Service Design Framework</description>
32
33     <properties>
34         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
35         <sonar.sources>.</sonar.sources>
36         <sonar.junit.reportsPath>xunit-results.xml</sonar.junit.reportsPath>
37         <sonar.python.coverage.reportPaths>coverage.xml</sonar.python.coverage.reportPaths>
38         <sonar.language>py</sonar.language>
39         <sonar.pluginname>python</sonar.pluginname>
40         <sonar.inclusions>**/**.py,osdfapp.py</sonar.inclusions>
41         <sonar.exclusions>test/**.py,docs/**.py</sonar.exclusions>
42         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
43         <osdf.build.timestamp>${maven.build.timestamp}</osdf.build.timestamp>
44         <osdf.project.version>${project.version}</osdf.project.version>
45         <osdf.docker.repository>nexus3.onap.org:10003</osdf.docker.repository>
46                 <image.namespace>${osdf.docker.repository}/onap/optf-osdf</image.namespace>
47     </properties>
48
49     <build>
50         <plugins>
51             <!-- triggers tox test for sonar -->
52             <plugin>
53                 <artifactId>exec-maven-plugin</artifactId>
54                 <groupId>org.codehaus.mojo</groupId>
55             </plugin>
56             <plugin>
57                 <artifactId>maven-assembly-plugin</artifactId>
58                 <configuration>
59                     <appendAssemblyId>false</appendAssemblyId>
60                     <descriptors>
61                         <descriptor>assembly.xml</descriptor>
62                     </descriptors>
63                 </configuration>
64                 <executions>
65                     <execution>
66                         <id>make-assembly</id>
67                         <phase>package</phase>
68                         <goals>
69                             <goal>single</goal>
70                         </goals>
71                     </execution>
72                 </executions>
73             </plugin>
74
75             <plugin>
76                 <groupId>org.apache.maven.plugins</groupId>
77                 <artifactId>maven-release-plugin</artifactId>
78             </plugin>
79             <plugin>
80                 <groupId>org.apache.maven.plugins</groupId>
81                 <artifactId>maven-deploy-plugin</artifactId>
82                 <version>2.8</version>
83                 <configuration>
84                     <retryFailedDeploymentCount>2</retryFailedDeploymentCount>
85                 </configuration>
86             </plugin>
87             <plugin>
88                                 <groupId>org.codehaus.groovy.maven</groupId>
89                                 <artifactId>gmaven-plugin</artifactId>
90                                 <version>1.0</version>
91                                 <executions>
92                                         <execution>
93                                                 <phase>validate</phase>
94                                                 <goals>
95                                                         <goal>execute</goal>
96                                                 </goals>
97                                                 <configuration>
98                                                         <source>${project.basedir}/script/TagVersion.groovy</source>
99                                                 </configuration>
100                                         </execution>
101                                 </executions>
102                         </plugin>
103             <plugin>
104                                 <groupId>io.fabric8</groupId>
105                                 <artifactId>docker-maven-plugin</artifactId>
106                                 <version>0.26.0</version>
107                                 <configuration>
108                                         <verbose>true</verbose>
109                                         <apiVersion>1.23</apiVersion>
110                                         <images>
111                                                 <image>
112                                                         <name>${image.namespace}</name>
113                                                         <alias>optf-osdf</alias>
114                                                         <build>
115                                                                 <cleanup>true</cleanup>
116                                                                 <tags>
117                                                                         <tag>latest</tag>
118                                                                         <tag>${project.docker.latesttagtimestamp.version}</tag>
119                                                                         <tag>${project.docker.latesttag.version}</tag>
120                                                                 </tags>
121
122                                                                 <dockerFile>${project.basedir}/docker/Dockerfile</dockerFile>
123                                                                 <assembly>
124                                                                         <descriptor>${project.basedir}/docker/assembly/osdf-files.xml</descriptor>
125                                                                         <name>onap-osdf-tm</name>
126                                                                 </assembly>
127                                                                 <args>
128                                     <MVN_ARTIFACT_VERSION>${project.version}</MVN_ARTIFACT_VERSION>
129                                     <REPO>${project.repo}</REPO>
130
131                                                                         <!-- plugin cannot handle empty (no proxy) arguments
132                                                                         <http_proxy_arg>${docker.http_proxy}</http_proxy_arg>
133                                                                         <https_proxy_arg>${docker.https_proxy}</https_proxy_arg>
134                                                                         -->
135                                                                 </args>
136                                                         </build>
137                                                 </image>
138                                         </images>
139                                 </configuration>
140                                 <executions>
141                                         <execution>
142                                                 <id>generate-images</id>
143                                                 <phase>install</phase>
144                                                 <goals>
145                                                         <goal>build</goal>
146                                                 </goals>
147                                         </execution>
148                                         <execution>
149                                                 <id>push-images</id>
150                                                 <phase>deploy</phase>
151                                                 <goals>
152                                                         <goal>build</goal>
153                                                         <goal>push</goal>
154                                                 </goals>
155                                                 <configuration>
156                                                         <image>${image.namespace}:%l</image>
157                                                 </configuration>
158                                         </execution>
159                                 </executions>
160                         </plugin>
161         </plugins>
162     </build>
163 </project>