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