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