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.11.1-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>
57 <groupId>org.onap.oparent</groupId>
58 <artifactId>oparent</artifactId>
59 <version>3.2.0</version>
64 <module>sdc-workflow-designer-init</module>
65 <module>sdc-workflow-designer-be</module>
66 <module>sdc-workflow-designer-ui</module>
73 <groupId>org.apache.maven.plugins</groupId>
74 <artifactId>maven-compiler-plugin</artifactId>
75 <version>3.10.1</version>
78 <groupId>org.apache.maven.plugins</groupId>
79 <artifactId>maven-surefire-plugin</artifactId>
80 <version>2.22.2</version>
83 <groupId>org.jacoco</groupId>
84 <artifactId>jacoco-maven-plugin</artifactId>
85 <version>0.8.8</version>
88 <groupId>io.fabric8</groupId>
89 <artifactId>docker-maven-plugin</artifactId>
90 <version>0.38.0</version>
92 <verbose>false</verbose>
93 <registry>${nexus.registry}</registry>
96 <username>${docker.username}</username>
97 <password>${docker.password}</password>
103 <id>docker-build</id>
104 <phase>install</phase>
111 <phase>deploy</phase>
119 <groupId>org.apache.maven.plugins</groupId>
120 <artifactId>maven-checkstyle-plugin</artifactId>
121 <version>3.1.2</version>
127 <groupId>org.apache.maven.plugins</groupId>
128 <artifactId>maven-compiler-plugin</artifactId>
132 <forceJavacCompilerUse>true</forceJavacCompilerUse>
136 <groupId>org.apache.maven.plugins</groupId>
137 <artifactId>maven-checkstyle-plugin</artifactId>
139 <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
140 <suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression>
141 <skip>${checkstyle.skip}</skip>
145 <groupId>org.jacoco</groupId>
146 <artifactId>jacoco-maven-plugin</artifactId>
149 <id>default-prepare-agent</id>
151 <goal>prepare-agent</goal>
156 <phase>prepare-package</phase>
162 <id>post-unit-test</id>
168 <destFile>${sonar.jacoco.reportPath}</destFile>
174 <groupId>org.codehaus.groovy.maven</groupId>
175 <artifactId>gmaven-plugin</artifactId>
176 <version>1.0</version>
177 <inherited>true</inherited>
181 <phase>validate</phase>
187 println 'Docker Tagging Script:' + project.properties['sdc.project.version'] + '/' + project.properties['sdc.build.timestamp'];
189 if (project.properties['sdc.project.version'] != null) {
190 versionArray = project.properties['sdc.project.version'].split('\\.');
193 if (project.properties['sdc.project.version'].endsWith("-SNAPSHOT")) {
194 project.properties.setProperty('project.docker.latesttag.version', versionArray[0] + '.' + versionArray[1] + "-SNAPSHOT-latest");
195 project.properties.setProperty('project.docker.latesttagtimestamp.version', versionArray[0] + '.' + versionArray[1] + "-SNAPSHOT-" + project.properties['sdc.build.timestamp']);
197 project.properties.setProperty('project.docker.latesttag.version', versionArray[0] + '.' + versionArray[1] + "-STAGING-latest");
198 project.properties.setProperty('project.docker.latesttagtimestamp.version', versionArray[0] + '.' + versionArray[1] + "-STAGING-" + project.properties['sdc.build.timestamp']);
201 println 'New Tags for docker:' + project.properties['project.docker.latesttag.version'] + '/' + project.properties['project.docker.latesttagtimestamp.version'];
212 <id>ecomp-releases</id>
213 <name>Release Repository</name>
214 <url>${nexus.proxy}/content/repositories/releases/</url>
217 <id>ecomp-snapshots</id>
218 <name>Snapshots Repository</name>
219 <url>${nexus.proxy}/content/repositories/snapshots/</url>
222 <id>ecomp-public</id>
223 <name>Public Repository</name>
224 <url>${nexus.proxy}/content/repositories/public/</url>
227 <distributionManagement>
229 <id>ecomp-releases</id>
230 <name>Release Repository</name>
231 <url>${nexus.proxy}/content/repositories/releases/</url>
234 <id>ecomp-snapshots</id>
235 <name>Snapshot Repository</name>
236 <url>${nexus.proxy}/content/repositories/snapshots/</url>
237 </snapshotRepository>
240 <url>dav:${nexus.proxy}${sitePath}</url>
242 </distributionManagement>