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> |
ilanap | ad3c41b | 2018-04-25 13:39:19 +0300 | [diff] [blame] | 50 | <fileset> |
| 51 | <directory>${basedir}</directory> |
| 52 | <includes> |
| 53 | <include>jenkinsConfig.json</include> |
| 54 | </includes> |
| 55 | </fileset> |
| 56 | |
ilanap | 637206b | 2018-02-04 17:06:22 +0200 | [diff] [blame] | 57 | </filesets> |
| 58 | </configuration> |
| 59 | </execution> |
| 60 | </executions> |
| 61 | </plugin> |
| 62 | |
| 63 | <!-- ============================================= --> |
| 64 | <!-- Build the UI module node code --> |
| 65 | <!-- ============================================= --> |
| 66 | <plugin> |
| 67 | <groupId>com.github.eirslett</groupId> |
| 68 | <artifactId>frontend-maven-plugin</artifactId> |
| 69 | <version>1.6</version> |
| 70 | |
| 71 | <configuration> |
| 72 | <installDirectory>${project.parent.parent.basedir}</installDirectory> |
| 73 | </configuration> |
| 74 | |
| 75 | <executions> |
| 76 | |
| 77 | <execution> |
| 78 | <id>install node and yarn</id> |
| 79 | <goals> |
| 80 | <goal>install-node-and-yarn</goal> |
| 81 | </goals> |
| 82 | <configuration> |
| 83 | <nodeVersion>v9.4.0</nodeVersion> |
| 84 | <yarnVersion>v1.3.2</yarnVersion> |
| 85 | </configuration> |
| 86 | </execution> |
| 87 | |
| 88 | <execution> |
| 89 | <id>yarn run install</id> |
| 90 | <goals> |
| 91 | <goal>yarn</goal> |
| 92 | </goals> |
| 93 | <configuration> |
| 94 | <arguments>install</arguments> |
| 95 | </configuration> |
| 96 | </execution> |
| 97 | <execution> |
| 98 | <id>yarn run cucumber docs</id> |
| 99 | <goals> |
| 100 | <goal>yarn</goal> |
| 101 | </goals> |
| 102 | <configuration> |
| 103 | <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven> |
| 104 | <arguments>run cucumber-docs</arguments> |
| 105 | </configuration> |
| 106 | </execution> |
| 107 | |
| 108 | <execution> |
| 109 | <id>yarn run cucumber test</id> |
| 110 | <goals> |
| 111 | <goal>yarn</goal> |
| 112 | </goals> |
| 113 | <configuration> |
| 114 | <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven> |
| 115 | <arguments>run test-and-report</arguments> |
| 116 | </configuration> |
| 117 | <phase>test</phase> |
| 118 | </execution> |
| 119 | |
| 120 | |
| 121 | </executions> |
| 122 | </plugin> |
| 123 | |
ilanap | ad3c41b | 2018-04-25 13:39:19 +0300 | [diff] [blame] | 124 | <plugin> |
| 125 | <artifactId>maven-resources-plugin</artifactId> |
| 126 | <version>2.6</version> |
| 127 | <executions> |
| 128 | <execution> |
| 129 | <id>copy-config</id> |
| 130 | <phase>validate</phase> |
| 131 | <goals> |
| 132 | <goal>copy-resources</goal> |
| 133 | </goals> |
| 134 | <configuration> |
| 135 | <outputDirectory>${basedir}</outputDirectory> |
| 136 | <resources> |
| 137 | <resource> |
| 138 | <directory>${basedir}/resources</directory> |
| 139 | <includes> |
| 140 | <include>jenkinsConfig.json</include> |
| 141 | </includes> |
| 142 | <filtering>true</filtering> |
| 143 | </resource> |
| 144 | </resources> |
| 145 | </configuration> |
| 146 | </execution> |
| 147 | </executions> |
| 148 | </plugin> |
| 149 | |
ilanap | 637206b | 2018-02-04 17:06:22 +0200 | [diff] [blame] | 150 | </plugins> |
| 151 | </build> |
| 152 | |
| 153 | </project> |