Lvbo163 | f721b1a | 2017-08-23 17:27:33 +0800 | [diff] [blame] | 1 | <!-- |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 2 | ~ 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 |
vasraz | 18fbc54 | 2022-04-04 23:27:19 +0100 | [diff] [blame] | 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"> |
Lvbo163 | f721b1a | 2017-08-23 17:27:33 +0800 | [diff] [blame] | 21 | |
| 22 | <modelVersion>4.0.0</modelVersion> |
vempo | b4e1091 | 2018-07-26 12:10:37 +0300 | [diff] [blame] | 23 | |
| 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> |
vasraz | 6dc58fd | 2019-10-02 12:08:49 +0100 | [diff] [blame] | 30 | <artifactId>sdc-workflow-designer-parent</artifactId> |
Gildas Lanilis | 67ee0ef | 2018-09-05 16:42:39 -0700 | [diff] [blame] | 31 | <name>sdc-sdc-workflow-designer</name> |
vasraz | 1e39e4c | 2022-04-08 11:06:06 +0100 | [diff] [blame] | 32 | <version>1.11.0-SNAPSHOT</version> |
YuanHu | 77acffc | 2018-02-09 16:13:05 +0800 | [diff] [blame] | 33 | <packaging>pom</packaging> |
Lvbo163 | f721b1a | 2017-08-23 17:27:33 +0800 | [diff] [blame] | 34 | |
Lvbo163 | 091eb47 | 2017-09-15 17:36:41 +0800 | [diff] [blame] | 35 | <properties> |
sebdet | 264a5c6 | 2020-06-16 12:10:00 +0200 | [diff] [blame] | 36 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 37 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 38 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
sebdet | 264a5c6 | 2020-06-16 12:10:00 +0200 | [diff] [blame] | 39 | <sdc.project.version>${project.version}</sdc.project.version> |
| 40 | <sdc.build.timestamp>${maven.build.timestamp}</sdc.build.timestamp> |
vasraz | 18fbc54 | 2022-04-04 23:27:19 +0100 | [diff] [blame] | 41 | <onap.version>1.5.0</onap.version> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 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> |
vasraz | 18fbc54 | 2022-04-04 23:27:19 +0100 | [diff] [blame] | 48 | <!-- Sonar properties --> |
| 49 | <sonar.coverage.jacoco.xmlReportPaths> |
| 50 | ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml |
| 51 | </sonar.coverage.jacoco.xmlReportPaths> |
vasraz | f8f5a26 | 2022-04-14 23:21:49 +0100 | [diff] [blame^] | 52 | <docker.api.version>1.41</docker.api.version> |
Lvbo163 | 091eb47 | 2017-09-15 17:36:41 +0800 | [diff] [blame] | 53 | </properties> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 54 | |
Tomasz Golabek | 9290ef8 | 2019-07-10 16:35:51 +0200 | [diff] [blame] | 55 | <parent> |
| 56 | <groupId>org.onap.oparent</groupId> |
| 57 | <artifactId>oparent</artifactId> |
vasraz | f8f5a26 | 2022-04-14 23:21:49 +0100 | [diff] [blame^] | 58 | <version>3.2.0</version> |
Tomasz Golabek | 9290ef8 | 2019-07-10 16:35:51 +0200 | [diff] [blame] | 59 | <relativePath/> |
| 60 | </parent> |
| 61 | |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 62 | <modules> |
vasraz | 6dc58fd | 2019-10-02 12:08:49 +0100 | [diff] [blame] | 63 | <module>sdc-workflow-designer-init</module> |
| 64 | <module>sdc-workflow-designer-be</module> |
| 65 | <module>sdc-workflow-designer-ui</module> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 66 | </modules> |
| 67 | |
Lvbo163 | 091eb47 | 2017-09-15 17:36:41 +0800 | [diff] [blame] | 68 | <build> |
| 69 | <pluginManagement> |
| 70 | <plugins> |
| 71 | <plugin> |
ayalaben | 75cdbb4 | 2018-09-27 14:27:45 +0300 | [diff] [blame] | 72 | <groupId>org.apache.maven.plugins</groupId> |
vasraz | f8f5a26 | 2022-04-14 23:21:49 +0100 | [diff] [blame^] | 73 | <artifactId>maven-compiler-plugin</artifactId> |
| 74 | <version>3.10.1</version> |
| 75 | </plugin> |
| 76 | <plugin> |
| 77 | <groupId>org.apache.maven.plugins</groupId> |
ayalaben | 75cdbb4 | 2018-09-27 14:27:45 +0300 | [diff] [blame] | 78 | <artifactId>maven-surefire-plugin</artifactId> |
vasraz | f8f5a26 | 2022-04-14 23:21:49 +0100 | [diff] [blame^] | 79 | <version>2.22.2</version> |
ayalaben | 75cdbb4 | 2018-09-27 14:27:45 +0300 | [diff] [blame] | 80 | </plugin> |
| 81 | <plugin> |
| 82 | <groupId>org.jacoco</groupId> |
| 83 | <artifactId>jacoco-maven-plugin</artifactId> |
vasraz | f8f5a26 | 2022-04-14 23:21:49 +0100 | [diff] [blame^] | 84 | <version>0.8.8</version> |
ayalaben | 75cdbb4 | 2018-09-27 14:27:45 +0300 | [diff] [blame] | 85 | </plugin> |
| 86 | <plugin> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 87 | <groupId>io.fabric8</groupId> |
| 88 | <artifactId>docker-maven-plugin</artifactId> |
vasraz | f8f5a26 | 2022-04-14 23:21:49 +0100 | [diff] [blame^] | 89 | <version>0.38.0</version> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 90 | <configuration> |
vempo | c678947 | 2018-12-31 17:19:50 +0200 | [diff] [blame] | 91 | <verbose>false</verbose> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 92 | <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> |
Lvbo163 | 091eb47 | 2017-09-15 17:36:41 +0800 | [diff] [blame] | 116 | </plugin> |
vasraz | f8f5a26 | 2022-04-14 23:21:49 +0100 | [diff] [blame^] | 117 | <plugin> |
| 118 | <groupId>org.apache.maven.plugins</groupId> |
| 119 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 120 | <version>3.1.2</version> |
| 121 | </plugin> |
Lvbo163 | 091eb47 | 2017-09-15 17:36:41 +0800 | [diff] [blame] | 122 | </plugins> |
| 123 | </pluginManagement> |
vempo | e0f514c | 2018-07-25 17:27:49 +0300 | [diff] [blame] | 124 | <plugins> |
| 125 | <plugin> |
vasraz | f8f5a26 | 2022-04-14 23:21:49 +0100 | [diff] [blame^] | 126 | <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 Golabek | 9290ef8 | 2019-07-10 16:35:51 +0200 | [diff] [blame] | 136 | <artifactId>maven-checkstyle-plugin</artifactId> |
Tomasz Golabek | 9290ef8 | 2019-07-10 16:35:51 +0200 | [diff] [blame] | 137 | <configuration> |
| 138 | <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation> |
| 139 | <suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression> |
| 140 | </configuration> |
| 141 | </plugin> |
| 142 | <plugin> |
ayalaben | 75cdbb4 | 2018-09-27 14:27:45 +0300 | [diff] [blame] | 143 | <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 Sonsino | 9e8232b | 2020-02-16 18:57:06 +0200 | [diff] [blame] | 166 | <destFile>${sonar.jacoco.reportPath}</destFile> |
ayalaben | 75cdbb4 | 2018-09-27 14:27:45 +0300 | [diff] [blame] | 167 | </configuration> |
| 168 | </execution> |
| 169 | </executions> |
| 170 | </plugin> |
sebdet | 264a5c6 | 2020-06-16 12:10:00 +0200 | [diff] [blame] | 171 | <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; |
vasraz | 18fbc54 | 2022-04-04 23:27:19 +0100 | [diff] [blame] | 187 | if (project.properties['sdc.project.version'] != null) { |
sebdet | 264a5c6 | 2020-06-16 12:10:00 +0200 | [diff] [blame] | 188 | versionArray = project.properties['sdc.project.version'].split('\\.'); |
| 189 | } |
| 190 | |
vasraz | 18fbc54 | 2022-04-04 23:27:19 +0100 | [diff] [blame] | 191 | 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']); |
sebdet | 264a5c6 | 2020-06-16 12:10:00 +0200 | [diff] [blame] | 194 | } else { |
vasraz | 18fbc54 | 2022-04-04 23:27:19 +0100 | [diff] [blame] | 195 | 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']); |
sebdet | 264a5c6 | 2020-06-16 12:10:00 +0200 | [diff] [blame] | 197 | } |
| 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> |
vempo | e0f514c | 2018-07-25 17:27:49 +0300 | [diff] [blame] | 205 | </plugins> |
Lvbo163 | 091eb47 | 2017-09-15 17:36:41 +0800 | [diff] [blame] | 206 | </build> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 207 | |
| 208 | <repositories> |
| 209 | <repository> |
vempo | b4e1091 | 2018-07-26 12:10:37 +0300 | [diff] [blame] | 210 | <id>ecomp-releases</id> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 211 | <name>Release Repository</name> |
| 212 | <url>${nexus.proxy}/content/repositories/releases/</url> |
| 213 | </repository> |
| 214 | <repository> |
vempo | b4e1091 | 2018-07-26 12:10:37 +0300 | [diff] [blame] | 215 | <id>ecomp-snapshots</id> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 216 | <name>Snapshots Repository</name> |
| 217 | <url>${nexus.proxy}/content/repositories/snapshots/</url> |
| 218 | </repository> |
| 219 | <repository> |
vempo | b4e1091 | 2018-07-26 12:10:37 +0300 | [diff] [blame] | 220 | <id>ecomp-public</id> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 221 | <name>Public Repository</name> |
| 222 | <url>${nexus.proxy}/content/repositories/public/</url> |
| 223 | </repository> |
| 224 | </repositories> |
| 225 | <distributionManagement> |
| 226 | <repository> |
vempo | b4e1091 | 2018-07-26 12:10:37 +0300 | [diff] [blame] | 227 | <id>ecomp-releases</id> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 228 | <name>Release Repository</name> |
| 229 | <url>${nexus.proxy}/content/repositories/releases/</url> |
| 230 | </repository> |
| 231 | <snapshotRepository> |
vempo | b4e1091 | 2018-07-26 12:10:37 +0300 | [diff] [blame] | 232 | <id>ecomp-snapshots</id> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 233 | <name>Snapshot Repository</name> |
| 234 | <url>${nexus.proxy}/content/repositories/snapshots/</url> |
| 235 | </snapshotRepository> |
| 236 | <site> |
vempo | b4e1091 | 2018-07-26 12:10:37 +0300 | [diff] [blame] | 237 | <id>ecomp-site</id> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 238 | <url>dav:${nexus.proxy}${sitePath}</url> |
| 239 | </site> |
| 240 | </distributionManagement> |
| 241 | |
vasraz | f8f5a26 | 2022-04-14 23:21:49 +0100 | [diff] [blame^] | 242 | </project> |