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