blob: d8ca7853d1b95167d28701fa26cbdc58d1b1ec72 [file] [log] [blame]
Lvbo163f721b1a2017-08-23 17:27:33 +08001<!--
vempoa52d50e2018-07-24 17:34:04 +03002 ~ Copyright © 2016-2018 European Support Limited
3 ~
4 ~ Licensed under the Apache License, Version 2.0 (the "License");
5 ~ you may not use this file except in compliance with the License.
6 ~ You may obtain a copy of the License at
7 ~
8 ~ http://www.apache.org/licenses/LICENSE-2.0
9 ~
10 ~ Unless required by applicable law or agreed to in writing, software
11 ~ distributed under the License is distributed on an "AS IS" BASIS,
12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ~ See the License for the specific language governing permissions and
14 ~ limitations under the License.
15 -->
16
17<project
vasraz18fbc542022-04-04 23:27:19 +010018 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19 xmlns="http://maven.apache.org/POM/4.0.0"
20 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Lvbo163f721b1a2017-08-23 17:27:33 +080021
22 <modelVersion>4.0.0</modelVersion>
vempob4e10912018-07-26 12:10:37 +030023
24 <!--
25 The groupId violates Maven naming conventions
26 (https://maven.apache.org/guides/mini/guide-naming-conventions.html)
27 because of a limitation of ONAP CI/CD infrastructure.
28 -->
29 <groupId>org.onap.sdc.sdc-workflow-designer</groupId>
vasraz6dc58fd2019-10-02 12:08:49 +010030 <artifactId>sdc-workflow-designer-parent</artifactId>
Gildas Lanilis67ee0ef2018-09-05 16:42:39 -070031 <name>sdc-sdc-workflow-designer</name>
vasraz1e39e4c2022-04-08 11:06:06 +010032 <version>1.11.0-SNAPSHOT</version>
YuanHu77acffc2018-02-09 16:13:05 +080033 <packaging>pom</packaging>
Lvbo163f721b1a2017-08-23 17:27:33 +080034
Lvbo163091eb472017-09-15 17:36:41 +080035 <properties>
sebdet264a5c62020-06-16 12:10:00 +020036 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
vempoa52d50e2018-07-24 17:34:04 +030037 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
sebdet264a5c62020-06-16 12:10:00 +020039 <sdc.project.version>${project.version}</sdc.project.version>
40 <sdc.build.timestamp>${maven.build.timestamp}</sdc.build.timestamp>
vasraz18fbc542022-04-04 23:27:19 +010041 <onap.version>1.5.0</onap.version>
vempoa52d50e2018-07-24 17:34:04 +030042 <docker.optimize>true</docker.optimize>
43 <docker.username>docker</docker.username>
44 <docker.password>docker</docker.password>
45 <nexus.registry>nexus3.onap.org:10001</nexus.registry>
46 <nexus.proxy>https://nexus.onap.org</nexus.proxy>
47 <sitePath>/content/sites/site/org/onap/sdc/workflow/${project.version}</sitePath>
vasraz18fbc542022-04-04 23:27:19 +010048 <!-- Sonar properties -->
49 <sonar.coverage.jacoco.xmlReportPaths>
50 ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
51 </sonar.coverage.jacoco.xmlReportPaths>
vasrazf8f5a262022-04-14 23:21:49 +010052 <docker.api.version>1.41</docker.api.version>
Lvbo163091eb472017-09-15 17:36:41 +080053 </properties>
vempoa52d50e2018-07-24 17:34:04 +030054
Tomasz Golabek9290ef82019-07-10 16:35:51 +020055 <parent>
56 <groupId>org.onap.oparent</groupId>
57 <artifactId>oparent</artifactId>
vasrazf8f5a262022-04-14 23:21:49 +010058 <version>3.2.0</version>
Tomasz Golabek9290ef82019-07-10 16:35:51 +020059 <relativePath/>
60 </parent>
61
vempoa52d50e2018-07-24 17:34:04 +030062 <modules>
vasraz6dc58fd2019-10-02 12:08:49 +010063 <module>sdc-workflow-designer-init</module>
64 <module>sdc-workflow-designer-be</module>
65 <module>sdc-workflow-designer-ui</module>
vempoa52d50e2018-07-24 17:34:04 +030066 </modules>
67
Lvbo163091eb472017-09-15 17:36:41 +080068 <build>
69 <pluginManagement>
70 <plugins>
71 <plugin>
ayalaben75cdbb42018-09-27 14:27:45 +030072 <groupId>org.apache.maven.plugins</groupId>
vasrazf8f5a262022-04-14 23:21:49 +010073 <artifactId>maven-compiler-plugin</artifactId>
74 <version>3.10.1</version>
75 </plugin>
76 <plugin>
77 <groupId>org.apache.maven.plugins</groupId>
ayalaben75cdbb42018-09-27 14:27:45 +030078 <artifactId>maven-surefire-plugin</artifactId>
vasrazf8f5a262022-04-14 23:21:49 +010079 <version>2.22.2</version>
ayalaben75cdbb42018-09-27 14:27:45 +030080 </plugin>
81 <plugin>
82 <groupId>org.jacoco</groupId>
83 <artifactId>jacoco-maven-plugin</artifactId>
vasrazf8f5a262022-04-14 23:21:49 +010084 <version>0.8.8</version>
ayalaben75cdbb42018-09-27 14:27:45 +030085 </plugin>
86 <plugin>
vempoa52d50e2018-07-24 17:34:04 +030087 <groupId>io.fabric8</groupId>
88 <artifactId>docker-maven-plugin</artifactId>
vasrazf8f5a262022-04-14 23:21:49 +010089 <version>0.38.0</version>
vempoa52d50e2018-07-24 17:34:04 +030090 <configuration>
vempoc6789472018-12-31 17:19:50 +020091 <verbose>false</verbose>
vempoa52d50e2018-07-24 17:34:04 +030092 <registry>${nexus.registry}</registry>
93 <authConfig>
94 <pull>
95 <username>${docker.username}</username>
96 <password>${docker.password}</password>
97 </pull>
98 </authConfig>
99 </configuration>
100 <executions>
101 <execution>
102 <id>docker-build</id>
103 <phase>install</phase>
104 <goals>
105 <goal>build</goal>
106 </goals>
107 </execution>
108 <execution>
109 <id>push-images</id>
110 <phase>deploy</phase>
111 <goals>
112 <goal>push</goal>
113 </goals>
114 </execution>
115 </executions>
Lvbo163091eb472017-09-15 17:36:41 +0800116 </plugin>
vasrazf8f5a262022-04-14 23:21:49 +0100117 <plugin>
118 <groupId>org.apache.maven.plugins</groupId>
119 <artifactId>maven-checkstyle-plugin</artifactId>
120 <version>3.1.2</version>
121 </plugin>
Lvbo163091eb472017-09-15 17:36:41 +0800122 </plugins>
123 </pluginManagement>
vempoe0f514c2018-07-25 17:27:49 +0300124 <plugins>
125 <plugin>
vasrazf8f5a262022-04-14 23:21:49 +0100126 <groupId>org.apache.maven.plugins</groupId>
127 <artifactId>maven-compiler-plugin</artifactId>
128 <configuration>
129 <source>11</source>
130 <target>11</target>
131 <forceJavacCompilerUse>true</forceJavacCompilerUse>
132 </configuration>
133 </plugin>
134 <plugin>
135 <groupId>org.apache.maven.plugins</groupId>
Tomasz Golabek9290ef82019-07-10 16:35:51 +0200136 <artifactId>maven-checkstyle-plugin</artifactId>
Tomasz Golabek9290ef82019-07-10 16:35:51 +0200137 <configuration>
138 <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
139 <suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression>
140 </configuration>
141 </plugin>
142 <plugin>
ayalaben75cdbb42018-09-27 14:27:45 +0300143 <groupId>org.jacoco</groupId>
144 <artifactId>jacoco-maven-plugin</artifactId>
145 <executions>
146 <execution>
147 <id>default-prepare-agent</id>
148 <goals>
149 <goal>prepare-agent</goal>
150 </goals>
151 </execution>
152 <execution>
153 <id>report</id>
154 <phase>prepare-package</phase>
155 <goals>
156 <goal>report</goal>
157 </goals>
158 </execution>
159 <execution>
160 <id>post-unit-test</id>
161 <phase>test</phase>
162 <goals>
163 <goal>report</goal>
164 </goals>
165 <configuration>
Ofir Sonsino9e8232b2020-02-16 18:57:06 +0200166 <destFile>${sonar.jacoco.reportPath}</destFile>
ayalaben75cdbb42018-09-27 14:27:45 +0300167 </configuration>
168 </execution>
169 </executions>
170 </plugin>
sebdet264a5c62020-06-16 12:10:00 +0200171 <plugin>
172 <groupId>org.codehaus.groovy.maven</groupId>
173 <artifactId>gmaven-plugin</artifactId>
174 <version>1.0</version>
175 <inherited>true</inherited>
176 <executions>
177 <execution>
178 <id>docker-tags</id>
179 <phase>validate</phase>
180 <goals>
181 <goal>execute</goal>
182 </goals>
183 <configuration>
184 <source>
185 println 'Docker Tagging Script:' + project.properties['sdc.project.version'] + '/' + project.properties['sdc.build.timestamp'];
186 def versionArray;
vasraz18fbc542022-04-04 23:27:19 +0100187 if (project.properties['sdc.project.version'] != null) {
sebdet264a5c62020-06-16 12:10:00 +0200188 versionArray = project.properties['sdc.project.version'].split('\\.');
189 }
190
vasraz18fbc542022-04-04 23:27:19 +0100191 if (project.properties['sdc.project.version'].endsWith("-SNAPSHOT")) {
192 project.properties.setProperty('project.docker.latesttag.version', versionArray[0] + '.' + versionArray[1] + "-SNAPSHOT-latest");
193 project.properties.setProperty('project.docker.latesttagtimestamp.version', versionArray[0] + '.' + versionArray[1] + "-SNAPSHOT-" + project.properties['sdc.build.timestamp']);
sebdet264a5c62020-06-16 12:10:00 +0200194 } else {
vasraz18fbc542022-04-04 23:27:19 +0100195 project.properties.setProperty('project.docker.latesttag.version', versionArray[0] + '.' + versionArray[1] + "-STAGING-latest");
196 project.properties.setProperty('project.docker.latesttagtimestamp.version', versionArray[0] + '.' + versionArray[1] + "-STAGING-" + project.properties['sdc.build.timestamp']);
sebdet264a5c62020-06-16 12:10:00 +0200197 }
198
199 println 'New Tags for docker:' + project.properties['project.docker.latesttag.version'] + '/' + project.properties['project.docker.latesttagtimestamp.version'];
200 </source>
201 </configuration>
202 </execution>
203 </executions>
204 </plugin>
vempoe0f514c2018-07-25 17:27:49 +0300205 </plugins>
Lvbo163091eb472017-09-15 17:36:41 +0800206 </build>
vempoa52d50e2018-07-24 17:34:04 +0300207
208 <repositories>
209 <repository>
vempob4e10912018-07-26 12:10:37 +0300210 <id>ecomp-releases</id>
vempoa52d50e2018-07-24 17:34:04 +0300211 <name>Release Repository</name>
212 <url>${nexus.proxy}/content/repositories/releases/</url>
213 </repository>
214 <repository>
vempob4e10912018-07-26 12:10:37 +0300215 <id>ecomp-snapshots</id>
vempoa52d50e2018-07-24 17:34:04 +0300216 <name>Snapshots Repository</name>
217 <url>${nexus.proxy}/content/repositories/snapshots/</url>
218 </repository>
219 <repository>
vempob4e10912018-07-26 12:10:37 +0300220 <id>ecomp-public</id>
vempoa52d50e2018-07-24 17:34:04 +0300221 <name>Public Repository</name>
222 <url>${nexus.proxy}/content/repositories/public/</url>
223 </repository>
224 </repositories>
225 <distributionManagement>
226 <repository>
vempob4e10912018-07-26 12:10:37 +0300227 <id>ecomp-releases</id>
vempoa52d50e2018-07-24 17:34:04 +0300228 <name>Release Repository</name>
229 <url>${nexus.proxy}/content/repositories/releases/</url>
230 </repository>
231 <snapshotRepository>
vempob4e10912018-07-26 12:10:37 +0300232 <id>ecomp-snapshots</id>
vempoa52d50e2018-07-24 17:34:04 +0300233 <name>Snapshot Repository</name>
234 <url>${nexus.proxy}/content/repositories/snapshots/</url>
235 </snapshotRepository>
236 <site>
vempob4e10912018-07-26 12:10:37 +0300237 <id>ecomp-site</id>
vempoa52d50e2018-07-24 17:34:04 +0300238 <url>dav:${nexus.proxy}${sitePath}</url>
239 </site>
240 </distributionManagement>
241
vasrazf8f5a262022-04-14 23:21:49 +0100242</project>