35261a76b2d6e889e8b24767576761a33646adc8
[ccsdk/features.git] / sdnr / wt / odlux / framework / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ ============LICENSE_START=======================================================
4   ~ ONAP : ccsdk features
5   ~ ================================================================================
6   ~ Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
7   ~ ================================================================================
8   ~ Licensed under the Apache License, Version 2.0 (the "License");
9   ~ you may not use this file except in compliance with the License.
10   ~ You may obtain a copy of the License at
11   ~
12   ~     http://www.apache.org/licenses/LICENSE-2.0
13   ~
14   ~ Unless required by applicable law or agreed to in writing, software
15   ~ distributed under the License is distributed on an "AS IS" BASIS,
16   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   ~ See the License for the specific language governing permissions and
18   ~ limitations under the License.
19   ~ ============LICENSE_END=======================================================
20   ~
21   -->
22 <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">
23     <modelVersion>4.0.0</modelVersion>
24
25     <parent>
26         <groupId>org.onap.ccsdk.parent</groupId>
27         <artifactId>odlparent</artifactId>
28         <version>2.3.3</version>
29         <relativePath/>
30     </parent>
31
32     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
33     <artifactId>sdnr-wt-odlux-framework</artifactId>
34     <version>1.3.1-SNAPSHOT</version>
35     <packaging>jar</packaging>
36
37     <name>ccsdk-features :: ${project.artifactId}</name>
38     <licenses>
39         <license>
40             <name>Apache License, Version 2.0</name>
41             <url>http://www.apache.org/licenses/LICENSE-2.0</url>
42         </license>
43     </licenses>
44
45     <properties>
46         <buildtime>${maven.build.timestamp}</buildtime>
47         <distversion>ONAP Frankfurt (Neon, mdsal ${odl.mdsal.version})</distversion>
48         <buildno>142.63ceae1(22/01/31)</buildno>
49         <odlux.version>ONAP SDN-R | ONF Wireless for ${distversion} - Build: ${buildtime} ${buildno} ${project.version}</odlux.version>
50     </properties>
51
52     <build>
53         <resources>
54             <resource>
55                 <directory>dist</directory>
56                 <targetPath>odlux</targetPath>
57             </resource>
58             <resource>
59                 <directory>src2/main/resources</directory>
60                 <targetPath>odlux</targetPath>
61             </resource>
62         </resources>
63         <plugins>
64             <plugin>
65                 <artifactId>maven-clean-plugin</artifactId>
66                 <configuration>
67                     <filesets>
68                         <fileset>
69                             <directory>dist</directory>
70                             <followSymlinks>false</followSymlinks>
71                         </fileset>
72                         <fileset>
73                             <directory>node</directory>
74                             <followSymlinks>false</followSymlinks>
75                         </fileset>
76                         <fileset>
77                             <directory>node_modules</directory>
78                             <followSymlinks>false</followSymlinks>
79                         </fileset>
80                         <fileset>
81                             <directory>../node_modules</directory>
82                             <followSymlinks>false</followSymlinks>
83                         </fileset>
84                         <!-- eclipse bug build bin folder in basedir -->
85                         <fileset>
86                             <directory>bin</directory>
87                             <followSymlinks>false</followSymlinks>
88                         </fileset>
89                     </filesets>
90                 </configuration>
91             </plugin>
92             <plugin>
93                 <groupId>de.jacks-it-lab</groupId>
94                 <artifactId>frontend-maven-plugin</artifactId>
95                 <version>1.7.2</version>
96                 <executions>
97                     <execution>
98                         <id>install node and yarn</id>
99                         <goals>
100                             <goal>install-node-and-yarn</goal>
101                         </goals>
102                         <!-- optional: default phase is "generate-resources" -->
103                         <phase>initialize</phase>
104                         <configuration>
105                             <nodeVersion>v12.13.0</nodeVersion>
106                             <yarnVersion>v1.22.10</yarnVersion>
107                         </configuration>
108                     </execution>
109                     <execution>
110                         <id>clear cache</id>
111                         <goals>
112                             <goal>yarn</goal>
113                         </goals>
114                         <phase>initialize</phase>
115                         <configuration>
116                             <arguments>cache clean</arguments>
117                             <installDirectory>${project.basedir}</installDirectory>
118                             <workingDirectory>${project.basedir}/../</workingDirectory>
119                         </configuration>
120                     </execution>
121                     <execution>
122                         <id>install lerna</id>
123                         <goals>
124                             <goal>yarn</goal>
125                         </goals>
126                         <phase>initialize</phase>
127                         <configuration>
128                             <arguments>add lerna@3.22.1 -W --exact</arguments>
129                             <installDirectory>${project.basedir}</installDirectory>
130                             <workingDirectory>${project.basedir}/../</workingDirectory>
131                         </configuration>
132                     </execution>
133                     <execution>
134                         <id>exec lerna bootstrap</id>
135                         <goals>
136                             <goal>lerna</goal>
137                         </goals>
138                         <phase>initialize</phase>
139                         <configuration>
140                             <lernaInheritsProxyConfigFromMaven>false</lernaInheritsProxyConfigFromMaven>
141                             <arguments>bootstrap</arguments>
142                             <installDirectory>${project.basedir}</installDirectory>
143                             <workingDirectory>${project.basedir}/../</workingDirectory>
144                         </configuration>
145                     </execution>
146                     <execution>
147                         <id>yarn build</id>
148                         <goals>
149                             <goal>yarn</goal>
150                         </goals>
151                         <configuration>
152                             <arguments>run build</arguments>
153                         </configuration>
154                     </execution>
155                 </executions>
156             </plugin>
157             <plugin>
158                 <groupId>org.apache.maven.plugins</groupId>
159                 <artifactId>maven-jar-plugin</artifactId>
160             </plugin>
161              <plugin>
162                 <groupId>org.codehaus.mojo</groupId>
163                 <artifactId>properties-maven-plugin</artifactId>
164                 <version>1.0.0</version>
165                 <executions>
166                     <execution>
167                         <phase>initialize</phase>
168                         <goals>
169                             <goal>read-project-properties</goal>
170                         </goals>
171                         <configuration>
172                             <files>
173                                 <file>${basedir}/../odlux.properties</file>
174                             </files>
175                         </configuration>
176                     </execution>
177                 </executions>
178             </plugin>
179             <plugin>
180                 <groupId>com.google.code.maven-replacer-plugin</groupId>
181                 <artifactId>replacer</artifactId>
182                 <version>1.5.2</version>
183                 <executions>
184                     <execution>
185                         <id>replace version</id>
186                         <phase>prepare-package</phase>
187                         <goals>
188                             <goal>replace</goal>
189                         </goals>
190                     </execution>
191                 </executions>
192                 <configuration>
193                     <basedir>${project.build.directory}/classes/odlux</basedir>
194                     <includes>
195                         <include>app.js</include>
196                         <include>version.json</include>
197                     </includes>
198                     <replacements>
199                         <replacement>
200                             <token>##odlux.version##</token>
201                             <value>${odlux.version}</value>
202                         </replacement>
203                         <replacement>
204                             <token>##buildno##</token>
205                             <value>${buildno}</value>
206                         </replacement>
207                         <replacement>
208                             <token>##build-timestamp##</token>
209                             <value>${buildtime}</value>
210                         </replacement>
211                         <replacement>
212                             <token>##odlux.framework.buildno##</token>
213                             <value>${odlux.framework.buildno}</value>
214                         </replacement>
215                         <replacement>
216                             <token>##odlux.apps.configurationApp.buildno##</token>
217                             <value>${odlux.apps.configurationApp.buildno}</value>
218                         </replacement>
219                         <replacement>
220                             <token>##odlux.apps.connectApp.buildno##</token>
221                             <value>${odlux.apps.connectApp.buildno}</value>
222                         </replacement>
223                         <replacement>
224                             <token>##odlux.apps.eventLogApp.buildno##</token>
225                             <value>${odlux.apps.eventLogApp.buildno}</value>
226                         </replacement>
227                         <replacement>
228                             <token>##odlux.apps.faultApp.buildno##</token>
229                             <value>${odlux.apps.faultApp.buildno}</value>
230                         </replacement>
231                         <replacement>
232                             <token>##odlux.apps.helpApp.buildno##</token>
233                             <value>${odlux.apps.helpApp.buildno}</value>
234                         </replacement>
235                         <replacement>
236                             <token>##odlux.apps.inventoryApp.buildno##</token>
237                             <value>${odlux.apps.inventoryApp.buildno}</value>
238                         </replacement>
239                         <replacement>
240                             <token>##odlux.apps.linkCalculationApp.buildno##</token>
241                             <value>${odlux.apps.linkCalculationApp.buildno}</value>
242                         </replacement>
243                         <replacement>
244                             <token>##odlux.apps.maintenanceApp.buildno##</token>
245                             <value>${odlux.apps.maintenanceApp.buildno}</value>
246                         </replacement>
247                         <replacement>
248                             <token>##odlux.apps.mediatorApp.buildno##</token>
249                             <value>${odlux.apps.mediatorApp.buildno}</value>
250                         </replacement>
251                         <replacement>
252                             <token>##odlux.apps.networkMapApp.buildno##</token>
253                             <value>${odlux.apps.networkMapApp.buildno}</value>
254                         </replacement>
255                         <replacement>
256                             <token>##odlux.apps.permanceHistoryApp.buildno##</token>
257                             <value>${odlux.apps.permanceHistoryApp.buildno}</value>
258                         </replacement>
259                     </replacements>
260                 </configuration>
261             </plugin>
262         </plugins>
263     </build>
264 </project>