ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 1 | <?xml version="1.0"?> |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 5 | <modelVersion>4.0.0</modelVersion> |
| 6 | <parent> |
| 7 | <groupId>org.openecomp.sdc</groupId> |
| 8 | <artifactId>sdc-main</artifactId> |
Ofir Sonsino | 145e960 | 2019-10-29 11:07:28 +0200 | [diff] [blame] | 9 | <version>1.6.0-SNAPSHOT</version> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 10 | </parent> |
| 11 | <artifactId>cucumber-bdd</artifactId> |
| 12 | <name>cucumber-bdd</name> |
Ofir Sonsino | 145e960 | 2019-10-29 11:07:28 +0200 | [diff] [blame] | 13 | <version>1.6.0-SNAPSHOT</version> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 14 | <packaging>jar</packaging> |
| 15 | <build> |
| 16 | <plugins> |
| 17 | <plugin> |
| 18 | <artifactId>maven-clean-plugin</artifactId> |
| 19 | <version>2.6.1</version> |
| 20 | <executions> |
| 21 | <execution> |
| 22 | <id>clean.dist.folder</id> |
| 23 | <phase>clean</phase> |
| 24 | <goals> |
| 25 | <goal>clean</goal> |
| 26 | </goals> |
| 27 | <configuration> |
| 28 | <filesets> |
| 29 | <fileset> |
ilanap | 061ca93 | 2019-08-04 10:16:33 +0300 | [diff] [blame] | 30 | <directory>${basedir}/node_modules</directory> |
| 31 | <includes> |
| 32 | <include>**/*</include> |
| 33 | </includes> |
| 34 | </fileset> |
| 35 | <fileset> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 36 | <directory>${basedir}/report</directory> |
| 37 | <includes> |
| 38 | <include>**/*</include> |
| 39 | </includes> |
| 40 | </fileset> |
| 41 | <fileset> |
| 42 | <directory>${basedir}/resources/downloads</directory> |
| 43 | <includes> |
| 44 | <include>**/*</include> |
| 45 | </includes> |
| 46 | </fileset> |
| 47 | <fileset> |
| 48 | <directory>${basedir}/docs</directory> |
| 49 | <includes> |
| 50 | <include>**/*</include> |
| 51 | </includes> |
| 52 | </fileset> |
| 53 | <fileset> |
| 54 | <directory>${basedir}</directory> |
| 55 | <includes> |
| 56 | <include>jenkinsConfig.json</include> |
| 57 | </includes> |
| 58 | </fileset> |
| 59 | </filesets> |
| 60 | </configuration> |
| 61 | </execution> |
| 62 | </executions> |
| 63 | </plugin> |
ilanap | 54ea496 | 2019-02-04 12:10:30 +0200 | [diff] [blame] | 64 | <plugin> |
| 65 | <artifactId>maven-resources-plugin</artifactId> |
| 66 | <version>2.7</version> |
| 67 | <configuration> |
| 68 | </configuration> |
| 69 | </plugin> |
ilanap | 061ca93 | 2019-08-04 10:16:33 +0300 | [diff] [blame] | 70 | <plugin> |
| 71 | <groupId>com.github.eirslett</groupId> |
| 72 | <artifactId>frontend-maven-plugin</artifactId> |
ilanap | 061ca93 | 2019-08-04 10:16:33 +0300 | [diff] [blame] | 73 | |
| 74 | <configuration> |
| 75 | <installDirectory>${project.parent.parent.basedir}</installDirectory> |
| 76 | </configuration> |
| 77 | |
| 78 | <executions> |
| 79 | <execution> |
| 80 | <id>install node and npm</id> |
| 81 | <goals> |
| 82 | <goal>install-node-and-npm</goal> |
| 83 | </goals> |
| 84 | <phase>generate-resources</phase> |
| 85 | <configuration> |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 86 | <nodeVersion>v10.17.0</nodeVersion> |
| 87 | <npmVersion>6.11.3</npmVersion> |
ilanap | 061ca93 | 2019-08-04 10:16:33 +0300 | [diff] [blame] | 88 | </configuration> |
| 89 | </execution> |
| 90 | <execution> |
| 91 | <id>npm run install</id> |
| 92 | <goals> |
| 93 | <goal>npm</goal> |
| 94 | </goals> |
| 95 | <configuration> |
| 96 | <arguments>install</arguments> |
| 97 | </configuration> |
| 98 | </execution> |
| 99 | </executions> |
| 100 | </plugin> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 101 | </plugins> |
| 102 | <resources> |
ilanap | 54ea496 | 2019-02-04 12:10:30 +0200 | [diff] [blame] | 103 | <resource> |
| 104 | <directory>${basedir}/docker</directory> |
| 105 | <targetPath>${project.build.directory}/docker_assembly</targetPath> |
| 106 | <filtering>false</filtering> |
| 107 | </resource> |
ilanap | 54ea496 | 2019-02-04 12:10:30 +0200 | [diff] [blame] | 108 | </resources> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 109 | </build> |
| 110 | <profiles> |
| 111 | <profile> |
ilanap | 061ca93 | 2019-08-04 10:16:33 +0300 | [diff] [blame] | 112 | <id>dev</id> |
| 113 | <activation> |
| 114 | <activeByDefault>false</activeByDefault> |
| 115 | </activation> |
| 116 | <build> |
| 117 | <plugins> |
| 118 | <plugin> |
| 119 | <artifactId>maven-antrun-plugin</artifactId> |
| 120 | <executions> |
| 121 | <execution> |
| 122 | <id>create-reporting-folders</id> |
| 123 | <phase>initialize</phase> |
| 124 | <configuration> |
| 125 | <tasks> |
| 126 | <echo message="Generate reports and downloads folders"/> |
| 127 | <mkdir dir="${basedir}/report"/> |
| 128 | <mkdir dir="${basedir}/resources/downloads"/> |
| 129 | </tasks> |
| 130 | </configuration> |
| 131 | </execution> |
| 132 | </executions> |
| 133 | </plugin> |
| 134 | <plugin> |
| 135 | <groupId>com.github.eirslett</groupId> |
| 136 | <artifactId>frontend-maven-plugin</artifactId> |
ilanap | 061ca93 | 2019-08-04 10:16:33 +0300 | [diff] [blame] | 137 | |
| 138 | <configuration> |
| 139 | <workingDirectory>${project.basedir}</workingDirectory> |
| 140 | <installDirectory>${project.parent.parent.basedir}</installDirectory> |
| 141 | </configuration> |
| 142 | |
| 143 | <executions> |
| 144 | |
| 145 | <execution> |
| 146 | <id>npm run install</id> |
| 147 | <goals> |
| 148 | <goal>npm</goal> |
| 149 | </goals> |
| 150 | <configuration> |
| 151 | <arguments>install</arguments> |
| 152 | </configuration> |
| 153 | </execution> |
| 154 | |
| 155 | <execution> |
| 156 | <id>npm run cucumber test</id> |
| 157 | <goals> |
| 158 | <goal>npm</goal> |
| 159 | </goals> |
| 160 | <configuration> |
| 161 | <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven> |
| 162 | <arguments>run test-and-report</arguments> |
| 163 | </configuration> |
| 164 | <phase>test</phase> |
| 165 | </execution> |
| 166 | |
| 167 | <execution> |
| 168 | <id>npm run documentation</id> |
| 169 | <goals> |
| 170 | <goal>npm</goal> |
| 171 | </goals> |
| 172 | <configuration> |
| 173 | <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven> |
| 174 | <arguments>run cucumber-docs</arguments> |
| 175 | </configuration> |
| 176 | <phase>install</phase> |
| 177 | </execution> |
| 178 | |
| 179 | </executions> |
| 180 | </plugin> |
| 181 | </plugins> |
| 182 | </build> |
| 183 | </profile> |
| 184 | <profile> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 185 | <id>docker</id> |
| 186 | <activation> |
| 187 | <activeByDefault>false</activeByDefault> |
| 188 | </activation> |
| 189 | <build> |
| 190 | <plugins> |
| 191 | <plugin> |
ilanap | 061ca93 | 2019-08-04 10:16:33 +0300 | [diff] [blame] | 192 | <artifactId>maven-resources-plugin</artifactId> |
| 193 | <version>3.0.2</version> |
| 194 | <executions> |
| 195 | <execution> |
| 196 | <id>copy-resources</id> |
| 197 | <phase>package</phase> |
| 198 | <goals> |
| 199 | <goal>copy-resources</goal> |
| 200 | </goals> |
| 201 | <configuration> |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 202 | <outputDirectory>${project.build.directory}/docker_assembly/cucumber |
| 203 | </outputDirectory> |
ilanap | 061ca93 | 2019-08-04 10:16:33 +0300 | [diff] [blame] | 204 | <resources> |
| 205 | <resource> |
| 206 | <directory>${basedir}</directory> |
| 207 | <includes> |
| 208 | <include>features/**/*</include> |
| 209 | <include>stepDefinitions/**/*</include> |
| 210 | <include>plugins/**/*</include> |
| 211 | <include>resources/**/*</include> |
| 212 | <include>node_modules/**/*</include> |
| 213 | <include>cucumber-common/**/*</include> |
| 214 | <include>*.js*</include> |
| 215 | </includes> |
| 216 | <filtering>false</filtering> |
| 217 | </resource> |
| 218 | </resources> |
| 219 | </configuration> |
| 220 | </execution> |
| 221 | </executions> |
| 222 | </plugin> |
| 223 | <plugin> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 224 | <groupId>io.fabric8</groupId> |
| 225 | <artifactId>docker-maven-plugin</artifactId> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 226 | <configuration> |
| 227 | <verbose>true</verbose> |
| 228 | <apiVersion>1.23</apiVersion> |
| 229 | <registry>nexus3.onap.org:10001</registry> |
| 230 | <authConfig> |
| 231 | <pull> |
| 232 | <username>docker</username> |
| 233 | <password>docker</password> |
| 234 | </pull> |
| 235 | </authConfig> |
| 236 | <images> |
| 237 | <!-- Build sanity image --> |
| 238 | <image> |
ilanap | 31742c9 | 2019-01-03 14:36:38 +0200 | [diff] [blame] | 239 | <name>onap/cucumber-sdc-api-tests</name> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 240 | <alias>cucumber-sdc-api-tests</alias> |
| 241 | <build> |
| 242 | <cleanup>try</cleanup> |
| 243 | <dockerFileDir>${project.build.directory}/docker_assembly</dockerFileDir> |
| 244 | <tags> |
| 245 | <tag>${docker.tag}</tag> |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 246 | <tag> |
| 247 | ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest |
| 248 | </tag> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 249 | </tags> |
| 250 | </build> |
| 251 | </image> |
| 252 | </images> |
| 253 | </configuration> |
| 254 | <executions> |
| 255 | <execution> |
| 256 | <id>clean-images</id> |
| 257 | <phase>pre-clean</phase> |
| 258 | <goals> |
| 259 | <goal>remove</goal> |
| 260 | </goals> |
| 261 | <configuration> |
| 262 | <removeAll>true</removeAll> |
vasraz | bbe2a93 | 2019-12-05 13:53:51 +0000 | [diff] [blame] | 263 | <image>onap/cucumber-sdc-api-tests</image> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 264 | </configuration> |
| 265 | </execution> |
| 266 | <execution> |
| 267 | <id>generate-images</id> |
| 268 | <phase>install</phase> |
| 269 | <goals> |
| 270 | <goal>build</goal> |
| 271 | </goals> |
| 272 | </execution> |
| 273 | <execution> |
| 274 | <id>push-images</id> |
| 275 | <phase>deploy</phase> |
| 276 | <goals> |
| 277 | <goal>push</goal> |
| 278 | </goals> |
| 279 | <configuration> |
vasraz | bbe2a93 | 2019-12-05 13:53:51 +0000 | [diff] [blame] | 280 | <image>onap/cucumber-sdc-api-tests</image> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 281 | </configuration> |
| 282 | </execution> |
| 283 | </executions> |
| 284 | </plugin> |
| 285 | </plugins> |
| 286 | </build> |
| 287 | </profile> |
| 288 | </profiles> |
| 289 | </project> |