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 |
| 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 | 6dc58fd | 2019-10-02 12:08:49 +0100 | [diff] [blame] | 32 | <version>1.7.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> |
Tomasz Golabek | 9290ef8 | 2019-07-10 16:35:51 +0200 | [diff] [blame] | 36 | <maven-checkstyle-plugin.version>2.17</maven-checkstyle-plugin.version> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 37 | <maven.compiler.source>1.8</maven.compiler.source> |
| 38 | <maven.compiler.target>1.8</maven.compiler.target> |
sebdet | 264a5c6 | 2020-06-16 12:10:00 +0200 | [diff] [blame^] | 39 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 40 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 41 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
sebdet | 264a5c6 | 2020-06-16 12:10:00 +0200 | [diff] [blame^] | 42 | <sdc.project.version>${project.version}</sdc.project.version> |
| 43 | <sdc.build.timestamp>${maven.build.timestamp}</sdc.build.timestamp> |
vempo | e2d8384 | 2018-10-25 07:28:35 +0300 | [diff] [blame] | 44 | <onap.version>1.3.0</onap.version> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 45 | <docker.optimize>true</docker.optimize> |
| 46 | <docker.username>docker</docker.username> |
| 47 | <docker.password>docker</docker.password> |
| 48 | <nexus.registry>nexus3.onap.org:10001</nexus.registry> |
| 49 | <nexus.proxy>https://nexus.onap.org</nexus.proxy> |
| 50 | <sitePath>/content/sites/site/org/onap/sdc/workflow/${project.version}</sitePath> |
Ofir Sonsino | 9e8232b | 2020-02-16 18:57:06 +0200 | [diff] [blame] | 51 | <!-- Sonar properties --> |
| 52 | <sonar.coverage.jacoco.xmlReportPaths> |
| 53 | ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml |
| 54 | </sonar.coverage.jacoco.xmlReportPaths> |
Lvbo163 | 091eb47 | 2017-09-15 17:36:41 +0800 | [diff] [blame] | 55 | </properties> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 56 | |
Tomasz Golabek | 9290ef8 | 2019-07-10 16:35:51 +0200 | [diff] [blame] | 57 | <parent> |
| 58 | <groupId>org.onap.oparent</groupId> |
| 59 | <artifactId>oparent</artifactId> |
| 60 | <version>2.0.0</version> |
| 61 | <relativePath/> |
| 62 | </parent> |
| 63 | |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 64 | <modules> |
vasraz | 6dc58fd | 2019-10-02 12:08:49 +0100 | [diff] [blame] | 65 | <module>sdc-workflow-designer-init</module> |
| 66 | <module>sdc-workflow-designer-be</module> |
| 67 | <module>sdc-workflow-designer-ui</module> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 68 | </modules> |
| 69 | |
Lvbo163 | 091eb47 | 2017-09-15 17:36:41 +0800 | [diff] [blame] | 70 | <build> |
| 71 | <pluginManagement> |
| 72 | <plugins> |
| 73 | <plugin> |
ayalaben | 75cdbb4 | 2018-09-27 14:27:45 +0300 | [diff] [blame] | 74 | <groupId>org.apache.maven.plugins</groupId> |
| 75 | <artifactId>maven-surefire-plugin</artifactId> |
| 76 | <version>2.22.0</version> |
| 77 | </plugin> |
| 78 | <plugin> |
| 79 | <groupId>org.jacoco</groupId> |
| 80 | <artifactId>jacoco-maven-plugin</artifactId> |
| 81 | <version>0.8.2</version> |
| 82 | </plugin> |
| 83 | <plugin> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 84 | <groupId>io.fabric8</groupId> |
| 85 | <artifactId>docker-maven-plugin</artifactId> |
avigaffa | 9ba698b | 2018-12-27 15:18:07 +0200 | [diff] [blame] | 86 | <version>0.28.0</version> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 87 | <configuration> |
vempo | c678947 | 2018-12-31 17:19:50 +0200 | [diff] [blame] | 88 | <verbose>false</verbose> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 89 | <registry>${nexus.registry}</registry> |
| 90 | <authConfig> |
| 91 | <pull> |
| 92 | <username>${docker.username}</username> |
| 93 | <password>${docker.password}</password> |
| 94 | </pull> |
| 95 | </authConfig> |
| 96 | </configuration> |
| 97 | <executions> |
| 98 | <execution> |
| 99 | <id>docker-build</id> |
| 100 | <phase>install</phase> |
| 101 | <goals> |
| 102 | <goal>build</goal> |
| 103 | </goals> |
| 104 | </execution> |
| 105 | <execution> |
| 106 | <id>push-images</id> |
| 107 | <phase>deploy</phase> |
| 108 | <goals> |
| 109 | <goal>push</goal> |
| 110 | </goals> |
| 111 | </execution> |
| 112 | </executions> |
Lvbo163 | 091eb47 | 2017-09-15 17:36:41 +0800 | [diff] [blame] | 113 | </plugin> |
| 114 | </plugins> |
| 115 | </pluginManagement> |
vempo | e0f514c | 2018-07-25 17:27:49 +0300 | [diff] [blame] | 116 | <plugins> |
| 117 | <plugin> |
Tomasz Golabek | 9290ef8 | 2019-07-10 16:35:51 +0200 | [diff] [blame] | 118 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 119 | <version>${maven-checkstyle-plugin.version}</version> |
| 120 | <configuration> |
| 121 | <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation> |
| 122 | <suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression> |
| 123 | </configuration> |
| 124 | </plugin> |
| 125 | <plugin> |
ayalaben | 75cdbb4 | 2018-09-27 14:27:45 +0300 | [diff] [blame] | 126 | <groupId>org.jacoco</groupId> |
| 127 | <artifactId>jacoco-maven-plugin</artifactId> |
| 128 | <executions> |
| 129 | <execution> |
| 130 | <id>default-prepare-agent</id> |
| 131 | <goals> |
| 132 | <goal>prepare-agent</goal> |
| 133 | </goals> |
| 134 | </execution> |
| 135 | <execution> |
| 136 | <id>report</id> |
| 137 | <phase>prepare-package</phase> |
| 138 | <goals> |
| 139 | <goal>report</goal> |
| 140 | </goals> |
| 141 | </execution> |
| 142 | <execution> |
| 143 | <id>post-unit-test</id> |
| 144 | <phase>test</phase> |
| 145 | <goals> |
| 146 | <goal>report</goal> |
| 147 | </goals> |
| 148 | <configuration> |
Ofir Sonsino | 9e8232b | 2020-02-16 18:57:06 +0200 | [diff] [blame] | 149 | <destFile>${sonar.jacoco.reportPath}</destFile> |
ayalaben | 75cdbb4 | 2018-09-27 14:27:45 +0300 | [diff] [blame] | 150 | </configuration> |
| 151 | </execution> |
| 152 | </executions> |
| 153 | </plugin> |
sebdet | 264a5c6 | 2020-06-16 12:10:00 +0200 | [diff] [blame^] | 154 | <plugin> |
| 155 | <groupId>org.codehaus.groovy.maven</groupId> |
| 156 | <artifactId>gmaven-plugin</artifactId> |
| 157 | <version>1.0</version> |
| 158 | <inherited>true</inherited> |
| 159 | <executions> |
| 160 | <execution> |
| 161 | <id>docker-tags</id> |
| 162 | <phase>validate</phase> |
| 163 | <goals> |
| 164 | <goal>execute</goal> |
| 165 | </goals> |
| 166 | <configuration> |
| 167 | <source> |
| 168 | println 'Docker Tagging Script:' + project.properties['sdc.project.version'] + '/' + project.properties['sdc.build.timestamp']; |
| 169 | def versionArray; |
| 170 | if ( project.properties['sdc.project.version'] != null ) { |
| 171 | versionArray = project.properties['sdc.project.version'].split('\\.'); |
| 172 | } |
| 173 | |
| 174 | if ( project.properties['sdc.project.version'].endsWith("-SNAPSHOT") ) { |
| 175 | project.properties.setProperty('project.docker.latesttag.version',versionArray[0] + '.' + versionArray[1] + "-SNAPSHOT-latest"); |
| 176 | project.properties.setProperty('project.docker.latesttagtimestamp.version',versionArray[0] + '.' + versionArray[1] + "-SNAPSHOT-"+project.properties['sdc.build.timestamp']); |
| 177 | } else { |
| 178 | project.properties.setProperty('project.docker.latesttag.version',versionArray[0] + '.' + versionArray[1] + "-STAGING-latest"); |
| 179 | project.properties.setProperty('project.docker.latesttagtimestamp.version',versionArray[0] + '.' + versionArray[1] + "-STAGING-"+project.properties['sdc.build.timestamp']); |
| 180 | } |
| 181 | |
| 182 | println 'New Tags for docker:' + project.properties['project.docker.latesttag.version'] + '/' + project.properties['project.docker.latesttagtimestamp.version']; |
| 183 | </source> |
| 184 | </configuration> |
| 185 | </execution> |
| 186 | </executions> |
| 187 | </plugin> |
vempo | e0f514c | 2018-07-25 17:27:49 +0300 | [diff] [blame] | 188 | </plugins> |
Lvbo163 | 091eb47 | 2017-09-15 17:36:41 +0800 | [diff] [blame] | 189 | </build> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 190 | |
| 191 | <repositories> |
| 192 | <repository> |
vempo | b4e1091 | 2018-07-26 12:10:37 +0300 | [diff] [blame] | 193 | <id>ecomp-releases</id> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 194 | <name>Release Repository</name> |
| 195 | <url>${nexus.proxy}/content/repositories/releases/</url> |
| 196 | </repository> |
| 197 | <repository> |
vempo | b4e1091 | 2018-07-26 12:10:37 +0300 | [diff] [blame] | 198 | <id>ecomp-snapshots</id> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 199 | <name>Snapshots Repository</name> |
| 200 | <url>${nexus.proxy}/content/repositories/snapshots/</url> |
| 201 | </repository> |
| 202 | <repository> |
vempo | b4e1091 | 2018-07-26 12:10:37 +0300 | [diff] [blame] | 203 | <id>ecomp-public</id> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 204 | <name>Public Repository</name> |
| 205 | <url>${nexus.proxy}/content/repositories/public/</url> |
| 206 | </repository> |
| 207 | </repositories> |
| 208 | <distributionManagement> |
| 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 | <snapshotRepository> |
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>Snapshot Repository</name> |
| 217 | <url>${nexus.proxy}/content/repositories/snapshots/</url> |
| 218 | </snapshotRepository> |
| 219 | <site> |
vempo | b4e1091 | 2018-07-26 12:10:37 +0300 | [diff] [blame] | 220 | <id>ecomp-site</id> |
vempo | a52d50e | 2018-07-24 17:34:04 +0300 | [diff] [blame] | 221 | <url>dav:${nexus.proxy}${sitePath}</url> |
| 222 | </site> |
| 223 | </distributionManagement> |
| 224 | |
| 225 | </project> |