blob: 467101759a66d5d3dae805e6e6346c30f591837d [file] [log] [blame]
herberte6d0d672019-12-14 01:05:47 +01001<?xml version="1.0" encoding="UTF-8"?>
2<project xmlns="http://maven.apache.org/POM/4.0.0"
3 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">
4
5 <parent>
6 <groupId>org.onap.ccsdk.parent</groupId>
7 <artifactId>odlparent</artifactId>
8 <version>1.5.1-SNAPSHOT</version>
9 <relativePath/>
10 </parent>
11 <modelVersion>4.0.0</modelVersion>
12 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
13 <artifactId>sdnr-wt-odlux-framework</artifactId>
14 <version>0.7.0-SNAPSHOT</version>
15 <packaging>jar</packaging>
16 <name>sdnr-wt-odlux-framework</name>
17 <properties>
18 <buildtime>${maven.build.timestamp}</buildtime>
19 <distversion>ONAP Frankfurt (Neon, mdsal ${odl.mdsal.version})</distversion>
20 <buildno>36.1a30021(19/12/12)</buildno>
21 <odlux.version>ONAP SDN-R | ONF Wireless for ${distversion} - Build: ${buildtime} ${buildno} ${project.version}</odlux.version>
22 </properties>
23 <licenses>
24 <license>
25 <name>Apache License, Version 2.0</name>
26 <url>http://www.apache.org/licenses/LICENSE-2.0</url>
27 </license>
28 </licenses>
29
30 <build>
31 <plugins>
32 <plugin>
33 <artifactId>maven-clean-plugin</artifactId>
34 <configuration>
35 <filesets>
36 <fileset>
37 <directory>dist</directory>
38 <followSymlinks>false</followSymlinks>
39 </fileset>
40 <fileset>
41 <directory>node</directory>
42 <followSymlinks>false</followSymlinks>
43 </fileset>
44 <fileset>
45 <directory>node_modules</directory>
46 <followSymlinks>false</followSymlinks>
47 </fileset>
48 <fileset>
49 <directory>../node_modules</directory>
50 <followSymlinks>false</followSymlinks>
51 </fileset>
52 <!-- eclipse bug build bin folder in basedir -->
53 <fileset>
54 <directory>bin</directory>
55 <followSymlinks>false</followSymlinks>
56 </fileset>
57 </filesets>
58 </configuration>
59 </plugin>
60 <plugin>
61 <groupId>de.jacks-it-lab</groupId>
62 <artifactId>frontend-maven-plugin</artifactId>
63 <version>1.7.1</version>
64 <executions>
65 <execution>
66 <id>install node and yarn</id>
67 <goals>
68 <goal>install-node-and-yarn</goal>
69 </goals>
70 <!-- optional: default phase is "generate-resources" -->
71 <phase>initialize</phase>
72 <configuration>
73 <nodeVersion>v10.16.3</nodeVersion>
74 <yarnVersion>v1.19.0</yarnVersion>
75 </configuration>
76 </execution>
77 <execution>
78 <id>clear cache</id>
79 <goals>
80 <goal>yarn</goal>
81 </goals>
82 <phase>initialize</phase>
83 <configuration>
84 <arguments>cache clean</arguments>
85 <installDirectory>${project.basedir}</installDirectory>
86 <workingDirectory>${project.basedir}/../</workingDirectory>
87 </configuration>
88 </execution>
89 <execution>
90 <id>install lerna</id>
91 <goals>
92 <goal>yarn</goal>
93 </goals>
94 <phase>initialize</phase>
95 <configuration>
96 <arguments>add lerna@3.13.1 -W --exact</arguments>
97 <installDirectory>${project.basedir}</installDirectory>
98 <workingDirectory>${project.basedir}/../</workingDirectory>
99 </configuration>
100 </execution>
101 <execution>
102 <id>exec lerna bootstrap</id>
103 <goals>
104 <goal>lerna</goal>
105 </goals>
106 <phase>initialize</phase>
107 <configuration>
108 <lernaInheritsProxyConfigFromMaven>false</lernaInheritsProxyConfigFromMaven>
109 <arguments>bootstrap</arguments>
110 <installDirectory>${project.basedir}</installDirectory>
111 <workingDirectory>${project.basedir}/../</workingDirectory>
112 </configuration>
113 </execution>
114 <execution>
115 <id>yarn build</id>
116 <goals>
117 <goal>yarn</goal>
118 </goals>
119 <configuration>
120 <arguments>run build</arguments>
121 </configuration>
122 </execution>
123 </executions>
124 </plugin>
125 <plugin>
126 <groupId>org.apache.maven.plugins</groupId>
127 <artifactId>maven-jar-plugin</artifactId>
128 </plugin>
129 <plugin>
130 <groupId>com.google.code.maven-replacer-plugin</groupId>
131 <artifactId>replacer</artifactId>
132 <version>1.5.2</version>
133 <executions>
134 <execution>
135 <id>replace version</id>
136 <phase>prepare-package</phase>
137 <goals>
138 <goal>replace</goal>
139 </goals>
140 </execution>
141 </executions>
142 <configuration>
143 <basedir>${project.build.directory}/classes/odlux</basedir>
144 <includes>
145 <include>app.js</include>
146 </includes>
147 <replacements>
148 <replacement>
149 <token>##odlux.version##</token>
150 <value>${odlux.version}</value>
151 </replacement>
152 </replacements>
153 </configuration>
154 </plugin>
155 </plugins>
156 <resources>
157 <resource>
158 <directory>dist</directory>
159 <targetPath>odlux</targetPath>
160 </resource>
161 </resources>
162 </build>
163</project>