update link to upper-constraints.txt
[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"
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>
22
23         <parent>
24                 <groupId>org.onap.oparent</groupId>
25                 <artifactId>oparent-python</artifactId>
26                 <version>3.0.0</version>
27         </parent>
28
29         <groupId>org.onap.optf.osdf</groupId>
30         <artifactId>optf-osdf</artifactId>
31         <name>optf-osdf</name>
32         <version>3.0.8-SNAPSHOT</version>
33         <description>Optimization Service Design Framework</description>
34
35         <properties>
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                 <osdf.base.image>osdf-base</osdf.base.image>
49                 <image.namespace>${osdf.docker.repository}/onap/optf-osdf</image.namespace>
50                 <opteng.namespace>${osdf.docker.repository}/onap/optf-opteng</opteng.namespace>
51         </properties>
52
53         <build>
54                 <plugins>
55                         <!-- triggers tox test for sonar -->
56                         <plugin>
57                                 <artifactId>exec-maven-plugin</artifactId>
58                                 <groupId>org.codehaus.mojo</groupId>
59                         </plugin>
60                         <plugin>
61                                 <artifactId>maven-assembly-plugin</artifactId>
62                                 <configuration>
63                                         <appendAssemblyId>false</appendAssemblyId>
64                                         <descriptors>
65                                                 <descriptor>assembly.xml</descriptor>
66                                         </descriptors>
67                                 </configuration>
68                                 <executions>
69                                         <execution>
70                                                 <id>make-assembly</id>
71                                                 <phase>package</phase>
72                                                 <goals>
73                                                         <goal>single</goal>
74                                                 </goals>
75                                         </execution>
76                                 </executions>
77                         </plugin>
78
79                         <plugin>
80                                 <groupId>org.apache.maven.plugins</groupId>
81                                 <artifactId>maven-release-plugin</artifactId>
82                         </plugin>
83                         <plugin>
84                                 <groupId>org.apache.maven.plugins</groupId>
85                                 <artifactId>maven-deploy-plugin</artifactId>
86                                 <version>2.8</version>
87                                 <configuration>
88                                         <retryFailedDeploymentCount>2</retryFailedDeploymentCount>
89                                 </configuration>
90                         </plugin>
91                         <plugin>
92                                 <groupId>org.codehaus.groovy.maven</groupId>
93                                 <artifactId>gmaven-plugin</artifactId>
94                                 <version>1.0</version>
95                                 <executions>
96                                         <execution>
97                                                 <phase>validate</phase>
98                                                 <goals>
99                                                         <goal>execute</goal>
100                                                 </goals>
101                                                 <configuration>
102                                                         <source>${project.basedir}/script/TagVersion.groovy</source>
103                                                 </configuration>
104                                         </execution>
105                                 </executions>
106                         </plugin>
107                         <plugin>
108                                 <groupId>io.fabric8</groupId>
109                                 <artifactId>docker-maven-plugin</artifactId>
110                                 <version>0.26.0</version>
111                                 <configuration>
112                                         <verbose>true</verbose>
113                                         <apiVersion>1.23</apiVersion>
114                                         <images>
115                                                 <image>
116                                                         <name>${osdf.base.image}</name>
117                                                         <alias>optf-base</alias>
118                                                         <build>
119                                                                 <cleanup>true</cleanup>
120                                                                 <tags>
121                                                                         <tag>latest</tag>
122                                                                 </tags>
123
124                                                                 <dockerFile>${project.basedir}/docker/osdf-lib-base/Dockerfile</dockerFile>
125                                                                 <assembly>
126                                                                         <descriptor>${project.basedir}/docker/osdf-lib-base/assembly/osdf-lib-files.xml</descriptor>
127                                                                         <name>onap-osdf-tm</name>
128                                                                 </assembly>
129                                                                 <args>
130                                                                         <MVN_ARTIFACT_VERSION>${project.version}</MVN_ARTIFACT_VERSION>
131                                                                         <REPO>${project.repo}</REPO>
132                                                                 </args>
133                                                         </build>
134                                                 </image>
135                                                 <image>
136                                                         <name>${image.namespace}</name>
137                                                         <alias>optf-osdf</alias>
138                                                         <build>
139                                                                 <cleanup>true</cleanup>
140                                                                 <tags>
141                                                                         <tag>latest</tag>
142                                                                         <tag>${project.docker.latesttagtimestamp.version}</tag>
143                                                                         <tag>${project.docker.latesttag.version}</tag>
144                                                                 </tags>
145
146                                                                 <dockerFile>${project.basedir}/docker/osdf/Dockerfile</dockerFile>
147                                                                 <assembly>
148                                                                         <descriptor>${project.basedir}/docker/osdf/assembly/osdf-files.xml</descriptor>
149                                                                         <name>onap-osdf-tm</name>
150                                                                 </assembly>
151                                                                 <args>
152                                                                         <MVN_ARTIFACT_VERSION>${project.version}</MVN_ARTIFACT_VERSION>
153                                                                         <REPO>${project.repo}</REPO>
154
155                                                                         <!-- plugin cannot handle empty (no proxy) arguments
156                                                                         <http_proxy_arg>${docker.http_proxy}</http_proxy_arg>
157                                                                         <https_proxy_arg>${docker.https_proxy}</https_proxy_arg>
158                                                                         -->
159                                                                 </args>
160                                                         </build>
161                                                 </image>
162                                                 <image>
163                                                         <name>${opteng.namespace}</name>
164                                                         <alias>optf-opteng</alias>
165                                                         <build>
166                                                                 <cleanup>true</cleanup>
167                                                                 <tags>
168                                                                         <tag>latest</tag>
169                                                                         <tag>${project.docker.latesttagtimestamp.version}</tag>
170                                                                         <tag>${project.docker.latesttag.version}</tag>
171                                                                 </tags>
172
173                                                                 <dockerFile>${project.basedir}/docker/opteng/Dockerfile</dockerFile>
174                                                                 <assembly>
175                                                                         <descriptor>${project.basedir}/docker/opteng/assembly/osdf-files.xml</descriptor>
176                                                                         <name>onap-osdf-tm</name>
177                                                                 </assembly>
178                                                                 <args>
179                                                                         <MVN_ARTIFACT_VERSION>${project.version}</MVN_ARTIFACT_VERSION>
180                                                                         <REPO>${project.repo}</REPO>
181
182                                                                         <!-- plugin cannot handle empty (no proxy) arguments
183                                     <http_proxy_arg>${docker.http_proxy}</http_proxy_arg>
184                                     <https_proxy_arg>${docker.https_proxy}</https_proxy_arg>
185                                     -->
186                                                                 </args>
187                                                         </build>
188                                                 </image>
189                                         </images>
190                                 </configuration>
191                                 <executions>
192                                         <execution>
193                                                 <id>generate-images</id>
194                                                 <phase>install</phase>
195                                                 <goals>
196                                                         <goal>build</goal>
197                                                 </goals>
198                                         </execution>
199                                         <execution>
200                                                 <id>push-images</id>
201                                                 <phase>deploy</phase>
202                                                 <goals>
203                                                         <goal>build</goal>
204                                                         <goal>push</goal>
205                                                 </goals>
206                                                 <configuration>
207                                                         <image>${image.namespace}:%l</image>
208                                                 </configuration>
209                                         </execution>
210                                 </executions>
211                         </plugin>
212                 </plugins>
213         </build>
214 </project>