a7892d2c7552521cd5f8f629e797b5844aef97d0
[ccsdk/apps.git] / sdnr / wireless-transport / code-Carbon-SR1 / apps / dlux / loader / impl / 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   <parent>
5     <groupId>org.opendaylight.dlux</groupId>
6     <artifactId>dlux-parent</artifactId>
7     <version>0.5.1-Carbon</version>
8     <relativePath>../../</relativePath>
9   </parent>
10   <artifactId>loader.implementation</artifactId>
11   <packaging>bundle</packaging>
12   <dependencies>
13     <dependency>
14       <groupId>org.opendaylight.dlux</groupId>
15       <artifactId>dlux-web</artifactId>
16       <version>${project.parent.version}</version>
17     </dependency>
18     <dependency>
19       <groupId>org.opendaylight.dlux</groupId>
20       <artifactId>loader</artifactId>
21       <version>${project.parent.version}</version>
22     </dependency>
23     <dependency>
24       <groupId>org.osgi</groupId>
25       <artifactId>org.osgi.core</artifactId>
26     </dependency>
27     <dependency>
28       <groupId>org.osgi</groupId>
29       <artifactId>org.osgi.compendium</artifactId>
30     </dependency>
31     <dependency>
32         <groupId>org.slf4j</groupId>
33         <artifactId>slf4j-api</artifactId>
34     </dependency>
35     <dependency>
36         <groupId>com.google.guava</groupId>
37         <artifactId>guava</artifactId>
38     </dependency>
39     <dependency>
40       <groupId>javax.servlet</groupId>
41       <artifactId>javax.servlet-api</artifactId>
42       <version>${javax.servlet-api.version}</version>
43     </dependency>
44     <dependency>
45       <groupId>org.opendaylight.dlux</groupId>
46       <artifactId>dlux.loader.resources</artifactId>
47       <version>${loader.resources.version}</version>
48     </dependency>
49       <dependency>
50           <groupId>junit</groupId>
51           <artifactId>junit</artifactId>
52           <scope>test</scope>
53       </dependency>
54       <dependency>
55           <groupId>org.slf4j</groupId>
56           <artifactId>slf4j-simple</artifactId>
57           <scope>test</scope>
58       </dependency>
59   </dependencies>
60  <build>
61     <resources>
62       <resource>
63         <directory>target/generated-resources</directory>
64       </resource>
65       <resource>
66         <directory>src/main/resources</directory>
67       </resource>
68     </resources>
69     <plugins>
70       <!--Clean extracted resources-->
71       <plugin>
72           <artifactId>maven-clean-plugin</artifactId>
73           <version>2.5</version>
74           <configuration>
75             <filesets>
76               <fileset>
77                 <directory>${project.basedir}/src/main/resources/</directory>
78                 <includes>
79                               <include>dlux/</include>
80                               <include>index/</include>
81                             </includes>
82                 <excludes></excludes>
83                 <followSymlinks>false</followSymlinks>
84               </fileset>
85             </filesets>
86           </configuration>
87       </plugin>
88       <!--Copy resources from the dlux-web/build dir-->
89       <plugin>
90         <artifactId>maven-resources-plugin</artifactId>
91         <version>2.6</version>
92         <executions>
93           <execution>
94             <id>copy-src-resources</id>
95             <phase>validate</phase>
96             <goals>
97               <goal>copy-resources</goal>
98             </goals>
99             <configuration>
100               <outputDirectory>${project.basedir}/target/generated-resources/dlux</outputDirectory>
101               <resources>
102                 <resource>
103                   <directory>${project.basedir}/../../dlux-web/build/</directory>
104                     <includes>
105                       <include>src/main.js</include>
106                       <include>src/app/app.controller.js</include>
107                       <include>src/app/app.module.js</include>
108                       <include>src/app/routingConfig.js</include>
109                       <include>src/common/config/env.module.js</include>
110                       <include>vendor/**</include>
111                       <include>assets/**</include>
112                     </includes>
113                     <excludes>
114                       <exclude>assets/yang2xml/</exclude>
115                     </excludes>
116                   <filtering>false</filtering>
117                 </resource>
118               </resources>
119             </configuration>
120           </execution>
121           <execution>
122             <id>copy-index</id>
123             <phase>validate</phase>
124             <goals>
125               <goal>copy-resources</goal>
126             </goals>
127             <configuration>
128               <outputDirectory>${project.basedir}/target/generated-resources/index</outputDirectory>
129               <resources>
130                 <resource>
131                   <directory>${project.basedir}/../../dlux-web/build/</directory>
132                     <includes>
133                       <include>index.html</include>
134                     </includes>
135                   <filtering>false</filtering>
136                 </resource>
137               </resources>
138             </configuration>
139           </execution>
140         </executions>
141       </plugin>
142     <!-- <plugin>
143         <groupId>org.apache.maven.plugins</groupId>
144         <artifactId>maven-dependency-plugin</artifactId>
145         <version>2.6</version>
146         <executions>
147           <execution>
148             <id>unpack-loader-resources</id>
149             <goals>
150               <goal>unpack-dependencies</goal>
151             </goals>
152             <phase>generate-resources</phase>
153             <configuration>
154               <outputDirectory>${project.build.directory}/generated-resources</outputDirectory>
155               <groupId>org.opendaylight.dlux</groupId>
156               <includeArtifactIds>dlux.loader.resources</includeArtifactIds>
157               <excludes>META-INF\/**</excludes>
158               <excludeTransitive>true</excludeTransitive>
159               <ignorePermissions>false</ignorePermissions>
160             </configuration>
161           </execution>
162         </executions>
163       </plugin> -->
164     <plugin>
165
166       <groupId>org.apache.maven.plugins</groupId>
167       <artifactId>maven-checkstyle-plugin</artifactId>
168         <configuration>
169           <!-- Exclusion doesn't seem to work for the yang.xml files within the resources folders -->
170           <excludes>**/*</excludes>
171         </configuration>
172      </plugin>
173       <plugin>
174         <groupId>org.apache.felix</groupId>
175         <artifactId>maven-bundle-plugin</artifactId>
176         <version>2.4.0</version>
177         <extensions>true</extensions>
178         <configuration>
179           <instructions>
180             <Import-Package>org.osgi.framework,
181                             org.opendaylight.dlux.loader,
182                             org.osgi.service.http,
183                             javax.servlet,
184                             javax.servlet.http,*
185                             </Import-Package>
186             <Export-Package>org.opendaylight.dlux.loader.implementation</Export-Package>
187           </instructions>
188         </configuration>
189       </plugin>
190     </plugins>
191   </build>
192   <scm>
193     <connection>scm:git:ssh://git.opendaylight.org:29418/dlux.git</connection>
194     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/dlux.git</developerConnection>
195     <tag>HEAD</tag>
196     <url>https://wiki.opendaylight.org/view/OpenDaylight_dlux:Main</url>
197   </scm>
198 </project>