blob: a922606da3ac36e46d12212c6eade77a749d0507 [file] [log] [blame]
ilanap637206b2018-02-04 17:06:22 +02001<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
ilanap637206b2018-02-04 17:06:22 +02006 <artifactId>onboarding-cucumber</artifactId>
7 <name>cucumber-report</name>
ilanap637206b2018-02-04 17:06:22 +02008
9 <parent>
10 <groupId>org.openecomp.sdc</groupId>
11 <artifactId>sdc-onboarding</artifactId>
Michael Lando04a5bef2018-10-23 01:32:15 +030012 <version>1.3.1-SNAPSHOT</version>
vempo9de469a2018-08-09 17:48:50 +030013 <relativePath>../onboarding/pom.xml</relativePath>
ilanap637206b2018-02-04 17:06:22 +020014 </parent>
15
16 <build>
17 <plugins>
18 <plugin>
19 <artifactId>maven-clean-plugin</artifactId>
20 <version>2.6.1</version>
21 <executions>
22 <execution>
23 <id>clean.dist.folder</id>
24 <phase>clean</phase>
25 <goals>
26 <goal>clean</goal>
27 </goals>
28 <configuration>
29 <filesets>
30 <fileset>
31 <directory>${basedir}/report</directory>
32 <includes>
33 <include>**/*</include>
34 </includes>
35 </fileset>
36 <fileset>
37 <directory>${basedir}/resources/downloads</directory>
38 <includes>
39 <include>**/*</include>
40 </includes>
41 </fileset>
42 <fileset>
43 <directory>${basedir}/docs</directory>
44 <includes>
45 <include>**/*</include>
46 </includes>
47 </fileset>
ilanapad3c41b2018-04-25 13:39:19 +030048 <fileset>
49 <directory>${basedir}</directory>
50 <includes>
51 <include>jenkinsConfig.json</include>
52 </includes>
53 </fileset>
54
ilanap637206b2018-02-04 17:06:22 +020055 </filesets>
56 </configuration>
57 </execution>
58 </executions>
59 </plugin>
60
dfx19715a0a74f2018-05-30 15:14:22 +030061
62 <plugin>
63 <artifactId>maven-antrun-plugin</artifactId>
64 <executions>
65 <execution>
66 <id>create-reporting-folders</id>
67 <phase>generate-sources</phase>
68 <configuration>
69 <tasks>
70 <echo message="Generate reports and downloads folders"/>
71 <mkdir dir="${basedir}/report"/>
72 <mkdir dir="${basedir}/resources/downloads"/>
73 </tasks>
74 </configuration>
75 <goals>
76 <goal>run</goal>
77 </goals>
78 </execution>
79 </executions>
80 </plugin>
81
ilanap637206b2018-02-04 17:06:22 +020082 <!-- ============================================= -->
83 <!-- Build the UI module node code -->
84 <!-- ============================================= -->
85 <plugin>
86 <groupId>com.github.eirslett</groupId>
87 <artifactId>frontend-maven-plugin</artifactId>
88 <version>1.6</version>
89
90 <configuration>
91 <installDirectory>${project.parent.parent.basedir}</installDirectory>
92 </configuration>
93
94 <executions>
95
96 <execution>
97 <id>install node and yarn</id>
98 <goals>
99 <goal>install-node-and-yarn</goal>
100 </goals>
101 <configuration>
102 <nodeVersion>v9.4.0</nodeVersion>
103 <yarnVersion>v1.3.2</yarnVersion>
104 </configuration>
105 </execution>
106
107 <execution>
108 <id>yarn run install</id>
109 <goals>
110 <goal>yarn</goal>
111 </goals>
112 <configuration>
113 <arguments>install</arguments>
114 </configuration>
115 </execution>
116 <execution>
117 <id>yarn run cucumber docs</id>
118 <goals>
119 <goal>yarn</goal>
120 </goals>
121 <configuration>
122 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
123 <arguments>run cucumber-docs</arguments>
124 </configuration>
125 </execution>
126
127 <execution>
128 <id>yarn run cucumber test</id>
129 <goals>
130 <goal>yarn</goal>
131 </goals>
132 <configuration>
133 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
134 <arguments>run test-and-report</arguments>
135 </configuration>
136 <phase>test</phase>
137 </execution>
138
139
140 </executions>
141 </plugin>
142
ilanapad3c41b2018-04-25 13:39:19 +0300143 <plugin>
144 <artifactId>maven-resources-plugin</artifactId>
145 <version>2.6</version>
146 <executions>
147 <execution>
148 <id>copy-config</id>
149 <phase>validate</phase>
150 <goals>
151 <goal>copy-resources</goal>
152 </goals>
153 <configuration>
154 <outputDirectory>${basedir}</outputDirectory>
155 <resources>
156 <resource>
157 <directory>${basedir}/resources</directory>
158 <includes>
159 <include>jenkinsConfig.json</include>
160 </includes>
161 <filtering>true</filtering>
162 </resource>
163 </resources>
164 </configuration>
165 </execution>
166 </executions>
167 </plugin>
168
ilanap637206b2018-02-04 17:06:22 +0200169 </plugins>
170 </build>
171
172</project>