11bf306f2e3256cbd7d129f105fdb8f1f6d97b3a
[ccsdk/features.git] / sdnr / wt / odlux / apps / apiDemo / pom.xml
1 <?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-app-apiDemo</artifactId>
14     <version>0.7.0-SNAPSHOT</version>
15     <packaging>bundle</packaging>
16     <name>sdnr-wt-odlux-app-apiDemo</name>
17     <licenses>
18         <license>
19             <name>Apache License, Version 2.0</name>
20             <url>http://www.apache.org/licenses/LICENSE-2.0</url>
21         </license>
22     </licenses>
23     <dependencies>
24         <dependency>
25             <groupId>${project.groupId}</groupId>
26             <artifactId>sdnr-wt-odlux-core-model</artifactId>
27             <version>${project.version}</version>
28         </dependency>
29         <dependency>
30             <groupId>${project.groupId}</groupId>
31             <artifactId>sdnr-wt-odlux-core-provider</artifactId>
32             <version>${project.version}</version>
33             <scope>test</scope>
34         </dependency>
35         <dependency>
36             <groupId>junit</groupId>
37             <artifactId>junit</artifactId>
38             <scope>test</scope>
39         </dependency>
40         <dependency>
41             <groupId>org.osgi</groupId>
42             <artifactId>org.osgi.core</artifactId>
43         </dependency>
44         <dependency>
45             <groupId>org.osgi</groupId>
46             <artifactId>org.osgi.compendium</artifactId>
47         </dependency>
48     </dependencies>
49     <build>
50         <sourceDirectory>src2/main/java</sourceDirectory>
51         <plugins>
52             <plugin>
53                 <artifactId>maven-clean-plugin</artifactId>
54                 <configuration>
55                     <filesets>
56                         <fileset>
57                             <directory>dist</directory>
58                             <followSymlinks>false</followSymlinks>
59                         </fileset>
60                         <fileset>
61                             <directory>node</directory>
62                             <followSymlinks>false</followSymlinks>
63                         </fileset>
64                         <fileset>
65                             <directory>node_modules</directory>
66                             <followSymlinks>false</followSymlinks>
67                         </fileset>
68                         <fileset>
69                             <directory>../node_modules</directory>
70                             <followSymlinks>false</followSymlinks>
71                         </fileset>
72                         <!-- eclipse bug build bin folder in basedir -->
73                         <fileset>
74                             <directory>bin</directory>
75                             <followSymlinks>false</followSymlinks>
76                         </fileset>
77                     </filesets>
78                 </configuration>
79             </plugin>
80             <plugin>
81                 <groupId>org.codehaus.mojo</groupId>
82                 <artifactId>build-helper-maven-plugin</artifactId>
83                 <executions>
84                     <execution>
85                         <id>add-test-source</id>
86                         <phase>generate-test-sources</phase>
87                         <goals>
88                             <goal>add-test-source</goal>
89                         </goals>
90                         <configuration>
91                             <sources>
92                                 <source>src2/test/java</source>
93                             </sources>
94                         </configuration>
95                     </execution>
96                 </executions>
97             </plugin>
98             <plugin>
99                         <groupId>de.jacks-it-lab</groupId>
100                                 <artifactId>frontend-maven-plugin</artifactId>
101                                 <version>1.7.1</version>
102                 <executions>
103                     <execution>
104                         <id>install node and yarn</id>
105                         <goals>
106                             <goal>install-node-and-yarn</goal>
107                         </goals>
108                         <!-- optional: default phase is "generate-resources" -->
109                         <phase>initialize</phase>
110                         <configuration>
111                             <nodeVersion>v10.16.3</nodeVersion>
112                             <yarnVersion>v1.19.0</yarnVersion>
113                         </configuration>
114                     </execution>
115                     <execution>
116                         <id>yarn build</id>
117                         <goals>
118                             <goal>yarn</goal>
119                         </goals>
120                         <configuration>
121                             <arguments>run build</arguments>
122                         </configuration>
123                     </execution>
124                 </executions>
125             </plugin>
126             <plugin>
127                 <groupId>org.apache.maven.plugins</groupId>
128                 <artifactId>maven-jar-plugin</artifactId>
129             </plugin>
130             <plugin>
131                 <groupId>org.apache.felix</groupId>
132                 <artifactId>maven-bundle-plugin</artifactId>
133                 <extensions>true</extensions>
134                 <configuration>
135                     <instructions>
136                         <Import-Package>org.onap.ccsdk.features.sdnr.wt.odlux.model.*,com.opensymphony.*</Import-Package>
137                         <Private-Package/>
138                     </instructions>
139                 </configuration>
140             </plugin>
141         </plugins>
142         <resources>
143             <resource>
144                 <directory>dist</directory>
145                 <targetPath>odlux</targetPath>
146             </resource>
147             <resource>
148                 <directory>src2/main/resources</directory>
149             </resource>
150             <resource>
151                 <directory>src2/test/resources</directory>
152             </resource>
153         </resources>
154     </build>
155 </project>