aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-ui/pom.xml
blob: 400ad9a5336654c3de139a0e6ee9fed7b3e57ddf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<parent>
		<groupId>org.openecomp.sdc</groupId>
		<artifactId>sdc-main</artifactId>
		<version>1.0.0-SNAPSHOT</version>
	</parent>

	<groupId>org.openecomp.sdc.onboarding</groupId>
	<artifactId>onboarding-fe</artifactId>
	<name>onboarding-ui-war</name>
	<packaging>pom</packaging>

	<properties>
		<sonar.skip>true</sonar.skip>
	</properties>

	<build>
		<plugins>


			<plugin>
				<groupId>io.wcm.maven.plugins</groupId>
				<artifactId>nodejs-maven-plugin</artifactId>
				<executions>
					<execution>
						<phase>compile</phase>
						<goals>
							<goal>run</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<tasks>
						<npmInstallTask>
							<workingDirectory>${session.executionRootDirectory}/dox-sequence-diagram-ui</workingDirectory>
						</npmInstallTask>
						<nodeJsTask>
							<workingDirectory>${session.executionRootDirectory}/dox-sequence-diagram-ui</workingDirectory>
							<moduleName>webpack</moduleName>
						</nodeJsTask>
						<npmInstallTask>
							<workingDirectory>${project.basedir}</workingDirectory>
						</npmInstallTask>
						<nodeJsTask>
							<workingDirectory>${project.basedir}</workingDirectory>
							<moduleName>gulp</moduleName>
							<arguments>
								<argument>build</argument>
							</arguments>
						</nodeJsTask>
					</tasks>
				</configuration>
			</plugin>

			<plugin>
        <groupId>com.coderplus.maven.plugins</groupId>
        <artifactId>copy-rename-maven-plugin</artifactId>
        <version>1.0</version>
        <executions>
          <execution>
            <id>copy-file</id>
            <phase>compile</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <sourceFile>${project.basedir}/dist/onboarding.war</sourceFile>
              <destinationFile>${project.basedir}/target/onboarding-fe-${project.version}.war</destinationFile>
            </configuration>
          </execution>
        </executions>
      </plugin>

      <plugin>
      	<groupId>org.codehaus.mojo</groupId>
      	<artifactId>build-helper-maven-plugin</artifactId>
      	<version>1.7</version>
      	<executions>
      		<execution>
      			<id>attach-artifacts</id>
      			<phase>compile</phase>
      			<goals>
      				<goal>attach-artifact</goal>
      			</goals>
      			<configuration>
      				<artifacts>
      					<artifact>
      						<file>${project.basedir}/target/onboarding-fe-${project.version}.war</file>
      						<type>war</type>                           
      					</artifact>
      				</artifacts>
      			</configuration>
      		</execution>
      	</executions>
      </plugin>

<!-- 			<plugin>
				<artifactId>maven-war-plugin</artifactId>
				<configuration>
					<webXml>webapp-onboarding\WEB-INF\web.xml</webXml>
				</configuration>
			</plugin> -->
		</plugins>
	</build>

</project>