blob: 22abfe9f53b585e8b6ea1919ab73bf8f420bfb21 [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
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>
ilanapad3c41b2018-04-25 13:39:19 +030050 <fileset>
51 <directory>${basedir}</directory>
52 <includes>
53 <include>jenkinsConfig.json</include>
54 </includes>
55 </fileset>
56
ilanap637206b2018-02-04 17:06:22 +020057 </filesets>
58 </configuration>
59 </execution>
60 </executions>
61 </plugin>
62
dfx19715a0a74f2018-05-30 15:14:22 +030063
64 <plugin>
65 <artifactId>maven-antrun-plugin</artifactId>
66 <executions>
67 <execution>
68 <id>create-reporting-folders</id>
69 <phase>generate-sources</phase>
70 <configuration>
71 <tasks>
72 <echo message="Generate reports and downloads folders"/>
73 <mkdir dir="${basedir}/report"/>
74 <mkdir dir="${basedir}/resources/downloads"/>
75 </tasks>
76 </configuration>
77 <goals>
78 <goal>run</goal>
79 </goals>
80 </execution>
81 </executions>
82 </plugin>
83
ilanap637206b2018-02-04 17:06:22 +020084 <!-- ============================================= -->
85 <!-- Build the UI module node code -->
86 <!-- ============================================= -->
87 <plugin>
88 <groupId>com.github.eirslett</groupId>
89 <artifactId>frontend-maven-plugin</artifactId>
90 <version>1.6</version>
91
92 <configuration>
93 <installDirectory>${project.parent.parent.basedir}</installDirectory>
94 </configuration>
95
96 <executions>
97
98 <execution>
99 <id>install node and yarn</id>
100 <goals>
101 <goal>install-node-and-yarn</goal>
102 </goals>
103 <configuration>
104 <nodeVersion>v9.4.0</nodeVersion>
105 <yarnVersion>v1.3.2</yarnVersion>
106 </configuration>
107 </execution>
108
109 <execution>
110 <id>yarn run install</id>
111 <goals>
112 <goal>yarn</goal>
113 </goals>
114 <configuration>
115 <arguments>install</arguments>
116 </configuration>
117 </execution>
118 <execution>
119 <id>yarn run cucumber docs</id>
120 <goals>
121 <goal>yarn</goal>
122 </goals>
123 <configuration>
124 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
125 <arguments>run cucumber-docs</arguments>
126 </configuration>
127 </execution>
128
129 <execution>
130 <id>yarn run cucumber test</id>
131 <goals>
132 <goal>yarn</goal>
133 </goals>
134 <configuration>
135 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
136 <arguments>run test-and-report</arguments>
137 </configuration>
138 <phase>test</phase>
139 </execution>
140
141
142 </executions>
143 </plugin>
144
ilanapad3c41b2018-04-25 13:39:19 +0300145 <plugin>
146 <artifactId>maven-resources-plugin</artifactId>
147 <version>2.6</version>
148 <executions>
149 <execution>
150 <id>copy-config</id>
151 <phase>validate</phase>
152 <goals>
153 <goal>copy-resources</goal>
154 </goals>
155 <configuration>
156 <outputDirectory>${basedir}</outputDirectory>
157 <resources>
158 <resource>
159 <directory>${basedir}/resources</directory>
160 <includes>
161 <include>jenkinsConfig.json</include>
162 </includes>
163 <filtering>true</filtering>
164 </resource>
165 </resources>
166 </configuration>
167 </execution>
168 </executions>
169 </plugin>
170
ilanap637206b2018-02-04 17:06:22 +0200171 </plugins>
172 </build>
173
174</project>