ilanap | 637206b | 2018-02-04 17:06:22 +0200 | [diff] [blame] | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 2 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 4 | <modelVersion>4.0.0</modelVersion> |
| 5 | |
| 6 | <groupId>org.openecomp.sdc</groupId> |
| 7 | <artifactId>onboarding-cucumber</artifactId> |
| 8 | <name>cucumber-report</name> |
| 9 | <version>1.2.0-SNAPSHOT</version> |
| 10 | |
| 11 | <parent> |
| 12 | <groupId>org.openecomp.sdc</groupId> |
| 13 | <artifactId>sdc-onboarding</artifactId> |
| 14 | <version>1.2.0-SNAPSHOT</version> |
| 15 | <relativePath>../onboarding</relativePath> |
| 16 | </parent> |
| 17 | |
| 18 | <build> |
| 19 | <plugins> |
| 20 | <plugin> |
| 21 | <artifactId>maven-clean-plugin</artifactId> |
| 22 | <version>2.6.1</version> |
| 23 | <executions> |
| 24 | <execution> |
| 25 | <id>clean.dist.folder</id> |
| 26 | <phase>clean</phase> |
| 27 | <goals> |
| 28 | <goal>clean</goal> |
| 29 | </goals> |
| 30 | <configuration> |
| 31 | <filesets> |
| 32 | <fileset> |
| 33 | <directory>${basedir}/report</directory> |
| 34 | <includes> |
| 35 | <include>**/*</include> |
| 36 | </includes> |
| 37 | </fileset> |
| 38 | <fileset> |
| 39 | <directory>${basedir}/resources/downloads</directory> |
| 40 | <includes> |
| 41 | <include>**/*</include> |
| 42 | </includes> |
| 43 | </fileset> |
| 44 | <fileset> |
| 45 | <directory>${basedir}/docs</directory> |
| 46 | <includes> |
| 47 | <include>**/*</include> |
| 48 | </includes> |
| 49 | </fileset> |
| 50 | </filesets> |
| 51 | </configuration> |
| 52 | </execution> |
| 53 | </executions> |
| 54 | </plugin> |
| 55 | |
| 56 | <!-- ============================================= --> |
| 57 | <!-- Build the UI module node code --> |
| 58 | <!-- ============================================= --> |
| 59 | <plugin> |
| 60 | <groupId>com.github.eirslett</groupId> |
| 61 | <artifactId>frontend-maven-plugin</artifactId> |
| 62 | <version>1.6</version> |
| 63 | |
| 64 | <configuration> |
| 65 | <installDirectory>${project.parent.parent.basedir}</installDirectory> |
| 66 | </configuration> |
| 67 | |
| 68 | <executions> |
| 69 | |
| 70 | <execution> |
| 71 | <id>install node and yarn</id> |
| 72 | <goals> |
| 73 | <goal>install-node-and-yarn</goal> |
| 74 | </goals> |
| 75 | <configuration> |
| 76 | <nodeVersion>v9.4.0</nodeVersion> |
| 77 | <yarnVersion>v1.3.2</yarnVersion> |
| 78 | </configuration> |
| 79 | </execution> |
| 80 | |
| 81 | <execution> |
| 82 | <id>yarn run install</id> |
| 83 | <goals> |
| 84 | <goal>yarn</goal> |
| 85 | </goals> |
| 86 | <configuration> |
| 87 | <arguments>install</arguments> |
| 88 | </configuration> |
| 89 | </execution> |
| 90 | <execution> |
| 91 | <id>yarn run cucumber docs</id> |
| 92 | <goals> |
| 93 | <goal>yarn</goal> |
| 94 | </goals> |
| 95 | <configuration> |
| 96 | <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven> |
| 97 | <arguments>run cucumber-docs</arguments> |
| 98 | </configuration> |
| 99 | </execution> |
| 100 | |
| 101 | <execution> |
| 102 | <id>yarn run cucumber test</id> |
| 103 | <goals> |
| 104 | <goal>yarn</goal> |
| 105 | </goals> |
| 106 | <configuration> |
| 107 | <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven> |
| 108 | <arguments>run test-and-report</arguments> |
| 109 | </configuration> |
| 110 | <phase>test</phase> |
| 111 | </execution> |
| 112 | |
| 113 | |
| 114 | </executions> |
| 115 | </plugin> |
| 116 | |
| 117 | </plugins> |
| 118 | </build> |
| 119 | |
| 120 | </project> |