blob: 78eb97c57b98dc2d1e12b2b482f898008ee6c19e [file] [log] [blame]
Michael Landoefa037d2017-02-19 12:57:33 +02001<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
AviZi280f8012017-06-09 02:39:56 +03002 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
Michael Landoefa037d2017-02-19 12:57:33 +02004
AviZi280f8012017-06-09 02:39:56 +03005 <groupId>org.openecomp.sdc</groupId>
6 <artifactId>onboarding-fe</artifactId>
7 <name>onboarding-ui-war</name>
8 <packaging>war</packaging>
Michael Landoefa037d2017-02-19 12:57:33 +02009
AviZi280f8012017-06-09 02:39:56 +030010 <parent>
11 <groupId>org.openecomp.sdc</groupId>
12 <artifactId>sdc-onboarding</artifactId>
13 <version>1.1.0-SNAPSHOT</version>
14 <relativePath>../onboarding</relativePath>
15 </parent>
Michael Landoefa037d2017-02-19 12:57:33 +020016
AviZi280f8012017-06-09 02:39:56 +030017 <build>
18 <plugins>
19 <!-- ============================================= -->
20 <!-- Clean dist folder -->
21 <!-- ============================================= -->
22 <plugin>
23 <artifactId>maven-clean-plugin</artifactId>
24 <version>2.6.1</version>
25 <executions>
26 <execution>
27 <id>clean.dist.folder</id>
28 <phase>clean</phase>
29 <goals>
30 <goal>clean</goal>
31 </goals>
32 <configuration>
33 <filesets>
34 <fileset>
35 <directory>${basedir}/dist</directory>
36 </fileset>
37 <fileset>
38 <directory>${basedir}/node_modules</directory>
39 </fileset>
40 <fileset>
41 <directory>${basedir}/../dox-sequence-diagram-ui/dist</directory>
42 </fileset>
43 <fileset>
44 <directory>${basedir}/../dox-sequence-diagram-ui/node_modules</directory>
45 </fileset>
46 </filesets>
47 </configuration>
48 </execution>
49 </executions>
50 </plugin>
ml636r72e56e42017-02-27 12:36:59 +020051
AviZi280f8012017-06-09 02:39:56 +030052 <!-- ============================================= -->
53 <!-- Build the UI module node code -->
54 <!-- ============================================= -->
55 <plugin>
56 <groupId>com.github.eirslett</groupId>
57 <artifactId>frontend-maven-plugin</artifactId>
58 <version>1.4</version>
59
60 <executions>
61
62 <execution>
63 <id>install node and npm in dox-sequence-diagram-ui</id>
64 <goals>
65 <goal>install-node-and-npm</goal>
66 </goals>
67 <configuration>
68 <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui</workingDirectory>
69 <nodeVersion>v6.9.5</nodeVersion>
70 <npmVersion>3.10.10</npmVersion>
71 </configuration>
72 </execution>
ml636r5d2f54c2017-02-19 23:56:00 +020073
AviZi280f8012017-06-09 02:39:56 +030074 <execution>
75 <id>install node and npm</id>
76 <goals>
77 <goal>install-node-and-npm</goal>
78 </goals>
79 <configuration>
80 <nodeVersion>v6.9.5</nodeVersion>
81 <npmVersion>3.10.10</npmVersion>
82 </configuration>
83 </execution>
84
85 <execution>
86 <id>npm install in dox-sequence-diagram-ui</id>
87 <goals>
88 <goal>npm</goal>
89 </goals>
90 <configuration>
91 <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui</workingDirectory>
92 <arguments>install</arguments>
93 </configuration>
94 </execution>
95
96 <execution>
97 <id>npm install</id>
98 <goals>
99 <goal>npm</goal>
100 </goals>
101 <configuration>
102 <arguments>install</arguments>
103 </configuration>
104 </execution>
105
106 <execution>
107 <id>npm run build</id>
108 <goals>
109 <goal>npm</goal>
110 </goals>
111 <configuration>
112 <arguments>run build</arguments>
113 </configuration>
114 </execution>
115 </executions>
116 </plugin>
ml636r5d2f54c2017-02-19 23:56:00 +0200117
AviZi280f8012017-06-09 02:39:56 +0300118 <plugin>
119 <artifactId>maven-antrun-plugin</artifactId>
120 <executions>
121 <execution>
122 <id>repack war</id>
123 <phase>prepare-package</phase>
124 <configuration>
125 <tasks>
126 <echo message="Building test environment"/>
127 <unzip src="dist/onboarding.war" dest="${basedir}/target/dist">
128 <patternset>
129 <include name="**/*"/>
130 </patternset>
131 </unzip>
132 </tasks>
133 </configuration>
134 <goals>
135 <goal>run</goal>
136 </goals>
137 </execution>
138 </executions>
139 </plugin>
ml636r5d2f54c2017-02-19 23:56:00 +0200140
AviZi280f8012017-06-09 02:39:56 +0300141 <plugin>
142 <groupId>org.apache.maven.plugins</groupId>
143 <artifactId>maven-war-plugin</artifactId>
144 <version>3.0.0</version>
145 <configuration>
146 <webResources>
147 <resource>
148 <directory>${basedir}/target/dist</directory>
149 </resource>
150 </webResources>
151 </configuration>
152 </plugin>
153 </plugins>
154 </build>
Michael Landoefa037d2017-02-19 12:57:33 +0200155
Michael Landoefa037d2017-02-19 12:57:33 +0200156</project>