Update for Guilin mtce release
[ccsdk/features.git] / sdnr / wt / odlux / apps / apiDemo / 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
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     <parent>
27         <groupId>org.onap.ccsdk.parent</groupId>
28         <artifactId>odlparent</artifactId>
29         <version>2.0.4</version>
30         <relativePath/>
31     </parent>
32
33     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
34     <artifactId>sdnr-wt-odlux-app-apiDemo</artifactId>
35     <version>1.0.4-SNAPSHOT</version>
36     <packaging>bundle</packaging>
37
38     <name>ccsdk-features :: ${project.artifactId}</name>
39     <licenses>
40         <license>
41             <name>Apache License, Version 2.0</name>
42             <url>http://www.apache.org/licenses/LICENSE-2.0</url>
43         </license>
44     </licenses>
45
46     <properties>
47         <maven.javadoc.skip>true</maven.javadoc.skip>
48         <checkstyle.skip>true</checkstyle.skip>
49     </properties>
50
51     <dependencies>
52         <dependency>
53             <groupId>${project.groupId}</groupId>
54             <artifactId>sdnr-wt-odlux-core-model</artifactId>
55             <version>${project.version}</version>
56         </dependency>
57         <dependency>
58             <groupId>${project.groupId}</groupId>
59             <artifactId>sdnr-wt-odlux-core-provider</artifactId>
60             <version>${project.version}</version>
61             <scope>test</scope>
62         </dependency>
63         <dependency>
64             <groupId>junit</groupId>
65             <artifactId>junit</artifactId>
66             <scope>test</scope>
67         </dependency>
68         <dependency>
69             <groupId>org.osgi</groupId>
70             <artifactId>org.osgi.core</artifactId>
71         </dependency>
72         <dependency>
73             <groupId>org.osgi</groupId>
74             <artifactId>org.osgi.compendium</artifactId>
75         </dependency>
76     </dependencies>
77
78     <build>
79         <sourceDirectory>src2/main/java</sourceDirectory>
80         <resources>
81             <resource>
82                 <directory>dist</directory>
83                 <targetPath>odlux</targetPath>
84             </resource>
85             <resource>
86                 <directory>src2/main/resources</directory>
87             </resource>
88             <resource>
89                 <directory>src2/test/resources</directory>
90             </resource>
91         </resources>
92         <plugins>
93             <plugin>
94                 <artifactId>maven-clean-plugin</artifactId>
95                 <configuration>
96                     <filesets>
97                         <fileset>
98                             <directory>dist</directory>
99                             <followSymlinks>false</followSymlinks>
100                         </fileset>
101                         <fileset>
102                             <directory>node</directory>
103                             <followSymlinks>false</followSymlinks>
104                         </fileset>
105                         <fileset>
106                             <directory>node_modules</directory>
107                             <followSymlinks>false</followSymlinks>
108                         </fileset>
109                         <fileset>
110                             <directory>../node_modules</directory>
111                             <followSymlinks>false</followSymlinks>
112                         </fileset>
113                         <!-- eclipse bug build bin folder in basedir -->
114                         <fileset>
115                             <directory>bin</directory>
116                             <followSymlinks>false</followSymlinks>
117                         </fileset>
118                     </filesets>
119                 </configuration>
120             </plugin>
121             <plugin>
122                 <groupId>org.codehaus.mojo</groupId>
123                 <artifactId>build-helper-maven-plugin</artifactId>
124                 <executions>
125                     <execution>
126                         <id>add-test-source</id>
127                         <phase>generate-test-sources</phase>
128                         <goals>
129                             <goal>add-test-source</goal>
130                         </goals>
131                         <configuration>
132                             <sources>
133                                 <source>src2/test/java</source>
134                             </sources>
135                         </configuration>
136                     </execution>
137                 </executions>
138             </plugin>
139             <plugin>
140                 <groupId>de.jacks-it-lab</groupId>
141                 <artifactId>frontend-maven-plugin</artifactId>
142                 <version>1.7.2</version>
143                 <executions>
144                     <execution>
145                         <id>install node and yarn</id>
146                         <goals>
147                             <goal>install-node-and-yarn</goal>
148                         </goals>
149                         <!-- optional: default phase is "generate-resources" -->
150                         <phase>initialize</phase>
151                         <configuration>
152                             <nodeVersion>v10.16.3</nodeVersion>
153                             <yarnVersion>v1.19.0</yarnVersion>
154                         </configuration>
155                     </execution>
156                     <execution>
157                         <id>yarn build</id>
158                         <goals>
159                             <goal>yarn</goal>
160                         </goals>
161                         <configuration>
162                             <arguments>run build</arguments>
163                         </configuration>
164                     </execution>
165                 </executions>
166             </plugin>
167             <plugin>
168                 <groupId>org.apache.maven.plugins</groupId>
169                 <artifactId>maven-jar-plugin</artifactId>
170             </plugin>
171             <plugin>
172                 <groupId>org.apache.felix</groupId>
173                 <artifactId>maven-bundle-plugin</artifactId>
174                 <extensions>true</extensions>
175                 <configuration>
176                     <instructions>
177                         <Import-Package>org.onap.ccsdk.features.sdnr.wt.odlux.model.*,com.opensymphony.*</Import-Package>
178                         <Private-Package/>
179                     </instructions>
180                 </configuration>
181             </plugin>
182         </plugins>
183     </build>
184 </project>