2 ~ Copyright © 2016-2018 European Support Limited
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
8 ~ http://www.apache.org/licenses/LICENSE-2.0
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.
18 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">
22 <modelVersion>4.0.0</modelVersion>
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.
29 <groupId>org.onap.sdc.sdc-workflow-designer</groupId>
30 <artifactId>sdc-workflow-designer-parent</artifactId>
31 <name>sdc-sdc-workflow-designer</name>
32 <version>1.12.0-SNAPSHOT</version>
33 <packaging>pom</packaging>
36 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
37 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
39 <sdc.project.version>${project.version}</sdc.project.version>
40 <sdc.build.timestamp>${maven.build.timestamp}</sdc.build.timestamp>
41 <onap.version>1.5.0</onap.version>
42 <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>
48 <!-- Sonar properties -->
49 <sonar.coverage.jacoco.xmlReportPaths>
50 ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
51 </sonar.coverage.jacoco.xmlReportPaths>
52 <docker.api.version>1.41</docker.api.version>
53 <checkstyle.skip>true</checkstyle.skip>
54 <jetty.version>9.4.49.v20220914</jetty.version>
58 <groupId>org.onap.oparent</groupId>
59 <artifactId>oparent</artifactId>
60 <version>3.2.0</version>
65 <module>sdc-workflow-designer-init</module>
66 <module>sdc-workflow-designer-be</module>
67 <module>sdc-workflow-designer-ui</module>
74 <groupId>org.apache.maven.plugins</groupId>
75 <artifactId>maven-compiler-plugin</artifactId>
76 <version>3.10.1</version>
79 <groupId>org.apache.maven.plugins</groupId>
80 <artifactId>maven-surefire-plugin</artifactId>
81 <version>2.22.2</version>
84 <groupId>org.jacoco</groupId>
85 <artifactId>jacoco-maven-plugin</artifactId>
86 <version>0.8.8</version>
89 <groupId>io.fabric8</groupId>
90 <artifactId>docker-maven-plugin</artifactId>
91 <version>0.38.0</version>
93 <verbose>false</verbose>
94 <registry>${nexus.registry}</registry>
97 <username>${docker.username}</username>
98 <password>${docker.password}</password>
104 <id>docker-build</id>
105 <phase>install</phase>
112 <phase>deploy</phase>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-checkstyle-plugin</artifactId>
122 <version>3.1.2</version>
128 <groupId>org.apache.maven.plugins</groupId>
129 <artifactId>maven-compiler-plugin</artifactId>
133 <forceJavacCompilerUse>true</forceJavacCompilerUse>
137 <groupId>org.apache.maven.plugins</groupId>
138 <artifactId>maven-checkstyle-plugin</artifactId>
140 <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
141 <suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression>
142 <skip>${checkstyle.skip}</skip>
146 <groupId>org.jacoco</groupId>
147 <artifactId>jacoco-maven-plugin</artifactId>
150 <id>default-prepare-agent</id>
152 <goal>prepare-agent</goal>
157 <phase>prepare-package</phase>
163 <id>post-unit-test</id>
169 <destFile>${sonar.jacoco.reportPath}</destFile>
175 <groupId>org.codehaus.groovy.maven</groupId>
176 <artifactId>gmaven-plugin</artifactId>
177 <version>1.0</version>
178 <inherited>true</inherited>
182 <phase>validate</phase>
188 println 'Docker Tagging Script:' + project.properties['sdc.project.version'] + '/' + project.properties['sdc.build.timestamp'];
190 if (project.properties['sdc.project.version'] != null) {
191 versionArray = project.properties['sdc.project.version'].split('\\.');
194 if (project.properties['sdc.project.version'].endsWith("-SNAPSHOT")) {
195 project.properties.setProperty('project.docker.latesttag.version', versionArray[0] + '.' + versionArray[1] + "-SNAPSHOT-latest");
196 project.properties.setProperty('project.docker.latesttagtimestamp.version', versionArray[0] + '.' + versionArray[1] + "-SNAPSHOT-" + project.properties['sdc.build.timestamp']);
198 project.properties.setProperty('project.docker.latesttag.version', versionArray[0] + '.' + versionArray[1] + "-STAGING-latest");
199 project.properties.setProperty('project.docker.latesttagtimestamp.version', versionArray[0] + '.' + versionArray[1] + "-STAGING-" + project.properties['sdc.build.timestamp']);
202 println 'New Tags for docker:' + project.properties['project.docker.latesttag.version'] + '/' + project.properties['project.docker.latesttagtimestamp.version'];
213 <id>ecomp-releases</id>
214 <name>Release Repository</name>
215 <url>${nexus.proxy}/content/repositories/releases/</url>
218 <id>ecomp-snapshots</id>
219 <name>Snapshots Repository</name>
220 <url>${nexus.proxy}/content/repositories/snapshots/</url>
223 <id>ecomp-public</id>
224 <name>Public Repository</name>
225 <url>${nexus.proxy}/content/repositories/public/</url>
228 <distributionManagement>
230 <id>ecomp-releases</id>
231 <name>Release Repository</name>
232 <url>${nexus.proxy}/content/repositories/releases/</url>
235 <id>ecomp-snapshots</id>
236 <name>Snapshot Repository</name>
237 <url>${nexus.proxy}/content/repositories/snapshots/</url>
238 </snapshotRepository>
241 <url>dav:${nexus.proxy}${sitePath}</url>
243 </distributionManagement>
249 <activeByDefault>false</activeByDefault>
252 <maven.test.skip>true</maven.test.skip>
253 <skipYamlJsonValidator>true</skipYamlJsonValidator>
254 <checkstyle.skip>true</checkstyle.skip>
255 <jacoco.skip>true</jacoco.skip>
256 <maven.antrun.skip>true</maven.antrun.skip>
257 <swagger.skip>true</swagger.skip>