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>
5 <groupId>org.onap.portal</groupId>
6 <artifactId>portal-FE-os</artifactId>
7 <version>3.1.0</version>
10 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
11 <skipnode>false</skipnode>
12 <skipcopy>false</skipcopy>
13 <sonar.typescript.lcov.reportPaths>coverage/lcov.info</sonar.typescript.lcov.reportPaths>
14 <sonar.sources>src</sonar.sources>
15 <sonar.projectKey>portal-FE-os</sonar.projectKey>
16 <sonar.projectName>portal-FE-os</sonar.projectName>
17 <sonar.exclusions>**/node_modules/**,**/*.spec.ts,**/*.module.ts,**/environment.prod.ts,**/*.js,**/main.ts,**/header-interceptor.ts,**/dynamic-widget.component.ts</sonar.exclusions>
18 <sonar.test.inclusions>**/*.spec.ts</sonar.test.inclusions>
19 <sonar.tests>src</sonar.tests>
20 <sonar.sourceEncoding>UTF-8</sonar.sourceEncoding>
27 <artifactId>maven-clean-plugin</artifactId>
28 <version>3.0.0</version>
32 <directory>${basedir}/dist</directory>
36 <directory>${basedir}/node</directory>
39 <directory>${basedir}/node_modules</directory>
47 <groupId>org.apache.maven.plugins</groupId>
48 <artifactId>maven-resources-plugin</artifactId>
49 <version>3.0.2</version>
54 <phase>generate-resources</phase>
56 <goal>copy-resources</goal>
59 <outputDirectory>${basedir}/src</outputDirectory>
60 <overwrite>false</overwrite>
61 <skip>${skipcopy}</skip>
64 <directory>../portal-FE-common/src</directory>
74 <groupId>com.github.eirslett</groupId>
75 <artifactId>frontend-maven-plugin</artifactId>
76 <!-- Use the latest released version: https://repo1.maven.org/maven2/com/github/eirslett/frontend-maven-plugin/ -->
77 <version>1.3</version>
79 <skip>${skipnode}</skip>
80 <nodeVersion>v10.13.0</nodeVersion>
81 <nodeDownloadRoot>https://nodejs.org/dist/</nodeDownloadRoot>
82 <npmDownloadRoot>https://nodejs.org/dist/npm/</npmDownloadRoot>
83 <installDirectory>./</installDirectory>
87 <!-- optional: you don't really need execution ids, but it looks nice
88 in your build log. -->
89 <id>install node and npm</id>
91 <goal>install-node-and-npm</goal>
93 <phase>generate-resources</phase>
102 <phase>generate-resources</phase>
105 <arguments>install</arguments>
110 <id>npm run test</id>
115 <phase>generate-resources</phase>
118 <arguments>run-script test</arguments>
128 <phase>generate-resources</phase>
131 <arguments>run-script build</arguments>