579e1f79eba0c51bec4858f4a7a0d4a661aa401f
[sdc.git] / openecomp-ui / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2         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>
4
5         <parent>
6                 <groupId>org.openecomp.sdc</groupId>
7                 <artifactId>sdc-main</artifactId>
8                 <version>1.0.0-SNAPSHOT</version>
9         </parent>
10
11         <groupId>org.openecomp.sdc.onboarding</groupId>
12         <artifactId>onboarding-fe</artifactId>
13         <name>onboarding-ui-war</name>
14         <packaging>pom</packaging>
15
16         <build>
17                 <plugins>
18
19
20                         <plugin>
21                                 <groupId>io.wcm.maven.plugins</groupId>
22                                 <artifactId>nodejs-maven-plugin</artifactId>
23                                 <executions>
24                                         <execution>
25                                                 <phase>compile</phase>
26                                                 <goals>
27                                                         <goal>run</goal>
28                                                 </goals>
29                                         </execution>
30                                 </executions>
31                                 <configuration>
32                                         <tasks>
33                                                 <npmInstallTask>
34                                                         <workingDirectory>${session.executionRootDirectory}/dox-sequence-diagram-ui</workingDirectory>
35                                                 </npmInstallTask>
36                                                 <nodeJsTask>
37                                                         <workingDirectory>${session.executionRootDirectory}/dox-sequence-diagram-ui</workingDirectory>
38                                                         <moduleName>webpack</moduleName>
39                                                 </nodeJsTask>
40                                                 <npmInstallTask>
41                                                         <workingDirectory>${project.basedir}</workingDirectory>
42                                                 </npmInstallTask>
43                                                 <nodeJsTask>
44                                                         <workingDirectory>${project.basedir}</workingDirectory>
45                                                         <moduleName>gulp</moduleName>
46                                                         <arguments>
47                                                                 <argument>build</argument>
48                                                         </arguments>
49                                                 </nodeJsTask>
50                                         </tasks>
51                                 </configuration>
52                         </plugin>
53
54                         <plugin>
55         <groupId>com.coderplus.maven.plugins</groupId>
56         <artifactId>copy-rename-maven-plugin</artifactId>
57         <version>1.0</version>
58         <executions>
59           <execution>
60             <id>copy-file</id>
61             <phase>compile</phase>
62             <goals>
63               <goal>copy</goal>
64             </goals>
65             <configuration>
66               <sourceFile>${project.basedir}/dist/onboarding.war</sourceFile>
67               <destinationFile>${project.basedir}/target/onboarding-fe-${project.version}.war</destinationFile>
68             </configuration>
69           </execution>
70         </executions>
71       </plugin>
72
73       <plugin>
74         <groupId>org.codehaus.mojo</groupId>
75         <artifactId>build-helper-maven-plugin</artifactId>
76         <version>1.7</version>
77         <executions>
78                 <execution>
79                         <id>attach-artifacts</id>
80                         <phase>compile</phase>
81                         <goals>
82                                 <goal>attach-artifact</goal>
83                         </goals>
84                         <configuration>
85                                 <artifacts>
86                                         <artifact>
87                                                 <file>${project.basedir}/target/onboarding-fe-${project.version}.war</file>
88                                                 <type>war</type>                           
89                                         </artifact>
90                                 </artifacts>
91                         </configuration>
92                 </execution>
93         </executions>
94       </plugin>
95
96 <!--                    <plugin>
97                                 <artifactId>maven-war-plugin</artifactId>
98                                 <configuration>
99                                         <webXml>webapp-onboarding\WEB-INF\web.xml</webXml>
100                                 </configuration>
101                         </plugin> -->
102                 </plugins>
103         </build>
104
105 </project>