update pom and change aaf config
[portal.git] / portal-FE-os / 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         <groupId>org.onap.portal</groupId>
6         <artifactId>portal-FE-os</artifactId>
7         <version>3.4.0</version>
8
9         <properties>
10                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
11                 <skipnode>false</skipnode>
12                 <skipcopy>false</skipcopy>
13                 <skipTests>false</skipTests>
14                 <sonar.typescript.lcov.reportPaths>coverage/lcov.info</sonar.typescript.lcov.reportPaths>
15         <sonar.sources>src</sonar.sources>
16                 <sonar.projectKey>portal-FE-os</sonar.projectKey>
17                 <sonar.projectName>portal-FE-os</sonar.projectName> 
18                 <sonar.exclusions>**/node_modules/**,**/*.spec.ts,**/*.module.ts,**/environment.prod.ts,**/*.js,**/main.ts,**/header-interceptor.ts,**/dynamic-widget.component.ts</sonar.exclusions>
19                 <sonar.test.inclusions>**/*.spec.ts</sonar.test.inclusions>
20                 <sonar.tests>src</sonar.tests>
21                 <sonar.sourceEncoding>UTF-8</sonar.sourceEncoding>
22                 <sonar.nodejs.executable>${project.basedir}\node\</sonar.nodejs.executable>
23         </properties>
24
25         <build>
26                 <plugins>
27
28                         <plugin>
29                                 <artifactId>maven-clean-plugin</artifactId>
30                                 <version>3.0.0</version>
31                                 <configuration>
32                                         <filesets>
33                                                 <fileset>
34                                                         <directory>${basedir}/dist</directory>
35                                                 </fileset>
36                                                 <!--
37                                                 <fileset>
38                                                         <directory>${basedir}/node</directory>
39                                                 </fileset>
40                                                 <fileset>
41                                                         <directory>${basedir}/node_modules</directory>
42                                                 </fileset>
43                                                 -->
44                                         </filesets>
45                                 </configuration>
46                         </plugin>
47
48                         <plugin>
49                                 <groupId>org.apache.maven.plugins</groupId>
50                                 <artifactId>maven-resources-plugin</artifactId>
51                                 <version>3.0.2</version>
52                                 <executions>
53
54                                         <execution>
55                                                 <id>copy-common</id>
56                                                 <phase>generate-resources</phase>
57                                                 <goals>
58                                                         <goal>copy-resources</goal>
59                                                 </goals>
60                                                 <configuration>
61                                                         <outputDirectory>${basedir}/src</outputDirectory>
62                                                         <overwrite>false</overwrite>
63                                                         <skip>${skipcopy}</skip>
64                                                         <resources>
65                                                                 <resource>
66                                                                         <directory>../portal-FE-common/src</directory>
67                                                                 </resource>
68                                                         </resources>
69                                                 </configuration>
70                                         </execution>
71
72                                 </executions>
73                         </plugin>
74                         
75                         <plugin>
76                                 <groupId>com.github.eirslett</groupId>
77                                 <artifactId>frontend-maven-plugin</artifactId>
78                                 <!-- Use the latest released version: https://repo1.maven.org/maven2/com/github/eirslett/frontend-maven-plugin/ -->
79                                 <version>1.3</version>
80                                 <configuration>
81                                         <skip>${skipnode}</skip>
82                                         <nodeVersion>v10.13.0</nodeVersion>
83                                         <nodeDownloadRoot>https://nodejs.org/dist/</nodeDownloadRoot>
84                                         <npmDownloadRoot>https://nodejs.org/dist/npm/</npmDownloadRoot>
85                                         <installDirectory>./</installDirectory>
86                                 </configuration>
87                                 <executions>
88                                         <execution>
89                                                 <!-- optional: you don't really need execution ids, but it looks nice 
90                                                         in your build log. -->
91                                                 <id>install node and npm</id>
92                                                 <goals>
93                                                         <goal>install-node-and-npm</goal>
94                                                 </goals>
95                                                 <phase>generate-resources</phase>
96                                         </execution>
97
98                                         <execution>
99                                                 <id>npm install</id>
100                                                 <goals>
101                                                         <goal>npm</goal>
102                                                 </goals>
103
104                                                 <phase>generate-resources</phase>
105
106                                                 <configuration>
107                                                         <arguments>install</arguments>
108                                                 </configuration>
109                                         </execution>
110                                           
111                                         <execution>
112                                                 <id>npm run test</id>
113                                                 <goals>
114                                                         <goal>npm</goal>
115                                                 </goals>
116
117                                                 <phase>generate-resources</phase>
118
119                                                 <configuration>
120                                                         <arguments>run-script test</arguments>
121                                                         <skip>${skipTests}</skip>
122                                                 </configuration>
123                                         </execution>
124
125                                         <execution>
126                                                 <id>npm build</id>
127                                                 <goals>
128                                                         <goal>npm</goal>
129                                                 </goals>
130
131                                                 <phase>generate-resources</phase>
132
133                                                 <configuration>
134                                                         <arguments>run-script build</arguments>
135                                                 </configuration>
136                                         </execution>
137
138                                 </executions>
139                         </plugin>
140                         
141                 </plugins>
142         </build>
143 </project>