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